/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include / { aliases { gpio-wp = &ec_wp_l; gpio-kbd-kso2 = &gpio_ec_kso_02_inv; }; named-gpios { compatible = "named-gpios"; ec_wp_l: write-protect { gpios = <&gpioa 0 GPIO_INPUT>; }; gpio_ec_entering_rw: ec_entering_rw { enum-name = "GPIO_ENTERING_RW"; }; ioex_usb_c0_sbu_fault_odl: usb_c0_sbu_fault_odl { gpios = <&ioex_c0_port1 2 GPIO_INPUT>; }; ioex_usb_c0_rt_rst_ls_l: usb_c0_rt_rst_ls_l { gpios = <&ioex_c0_port0 7 GPIO_OUTPUT>; }; ioex_usb_c0_frs_en: usb_c0_frs_en { gpios = <&ioex_c0_port0 6 GPIO_OUTPUT_LOW>; }; /* Need to designate 1.8V for I2C buses on the 1800mV rail */ ec-i2c-sensor-scl { gpios = <&gpiob 5 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; ec-i2c-sensor-sda { gpios = <&gpiob 4 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; ec-i2c-c0-rt-scl { gpios = <&gpiod 1 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; ec-i2c-c0-rt-sda { gpios = <&gpiod 0 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; }; usba-port-enable-list { compatible = "cros-ec,usba-port-enable-pins"; enable-pins = <&gpio_en_pp5000_usba_r>; }; }; /* host interface */ &espi0 { status = "okay"; pinctrl-0 = <&espi_lpc_gp46_47_51_52_53_54_55_57>; pinctrl-names = "default"; }; /* Power switch logic input pads */ &psl_in1_gpd2 { /* LID_OPEN */ psl-in-mode = "edge"; psl-in-pol = "high-rising"; }; &psl_in2_gp00 { /* ACOK_OD */ psl-in-mode = "edge"; psl-in-pol = "high-rising"; }; &psl_in4_gp02 { /* MECH_PWR_BTN_ODL */ psl-in-mode = "edge"; psl-in-pol = "low-falling"; }; /* Power domain device controlled by PSL (Power Switch Logic) IO pads */ &power_ctrl_psl { status = "okay"; pinctrl-names = "sleep"; pinctrl-0 = <&psl_in1_gpd2 &psl_in2_gp00 &psl_in3_gp01 &psl_in4_gp02>; }; /* ADC and GPIO alt-function specifications */ &adc0 { pinctrl-0 = <&adc0_chan0_gp45 &adc0_chan1_gp44 &adc0_chan8_gpf1 &adc0_chan7_gpe1>; pinctrl-names = "default"; }; &i2c0_0 { label = "I2C_SENSOR"; clock-frequency = ; pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>; pinctrl-names = "default"; }; &i2c1_0 { label = "I2C_USB_C0_TCPC"; clock-frequency = ; pinctrl-0 = <&i2c1_0_sda_scl_gp87_90>; pinctrl-names = "default"; tcpc_port0: nct38xx@70 { compatible = "nuvoton,nct38xx"; gpio-dev = <&nct3807_C0>; reg = <0x70>; tcpc-flags = <(TCPC_FLAGS_TCPCI_REV2_0)>; }; nct3807_C0:nct3807_C0@70 { #address-cells = <1>; #size-cells = <0>; compatible = "nuvoton,nct38xx-gpio"; reg = <0x70>; label = "NCT3807_C0"; ioex_c0_port0:gpio@0 { compatible = "nuvoton,nct38xx-gpio-port"; reg = <0x0>; label = "NCT3807_C0_GPIO0"; gpio-controller; #gpio-cells = <2>; ngpios = <8>; pin_mask = <0xff>; pinmux_mask = <0xf7>; }; ioex_c0_port1:gpio@1 { compatible = "nuvoton,nct38xx-gpio-port"; reg = <0x1>; label = "NCT3807_C0_GPIO1"; gpio-controller; #gpio-cells = <2>; ngpios = <8>; pin_mask = <0xff>; }; }; nct3808_alert_0 { compatible = "nuvoton,nct38xx-gpio-alert"; irq-gpios = <&gpioe 0 GPIO_ACTIVE_LOW>; nct38xx-dev = <&nct3807_C0>; label = "NCT3807_ALERT_0"; }; }; &i2c2_0 { label = "I2C_PPC0"; clock-frequency = ; pinctrl-0 = <&i2c2_0_sda_scl_gp91_92>; pinctrl-names = "default"; bc12_port0: pi3usb9201@5f { compatible = "pericom,pi3usb9201"; status = "okay"; reg = <0x5f>; irq = <&int_usb_c0_bc12>; }; ppc_port0_syv: ppc_syv@40 { compatible = "silergy,syv682x"; status = "okay"; reg = <0x40>; frs_en_gpio = <&ioex_usb_c0_frs_en>; }; }; &i2c3_0 { label = "I2C_USB_C0_RT"; clock-frequency = ; pinctrl-0 = <&i2c3_0_sda_scl_gpd0_d1>; pinctrl-names = "default"; usb_c0_hb_retimer: jhl8040r-c0@56 { compatible = "intel,jhl8040r"; reg = <0x56>; ls-en-pin = <&gpio_usb_c0_rt_3p3_sx_en>; int-pin = <&gpio_usb_c0_rt_int_odl>; reset-pin = <&ioex_usb_c0_rt_rst_ls_l>; }; }; &i2c4_1 { label = "I2_USB_C1_TCPC"; clock-frequency = ; pinctrl-0 = <&i2c4_1_sda_scl_gpf2_f3>; pinctrl-names = "default"; tcpc_port1: ps8xxx@b { compatible = "parade,ps8xxx"; reg = <0xb>; tcpc-flags = <( TCPC_FLAGS_TCPCI_REV2_0 | TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V | TCPC_FLAGS_CONTROL_VCONN | TCPC_FLAGS_CONTROL_FRS)>; }; }; &i2c5_0 { label = "I2C__BATTERY"; clock-frequency = ; pinctrl-0 = <&i2c5_0_sda_scl_gp33_36>; pinctrl-names = "default"; }; &i2c6_1 { label = "I2C_USB_1_MIX"; clock-frequency = ; pinctrl-0 = <&i2c6_1_sda_scl_gpe3_e4>; pinctrl-names = "default"; bc12_port1: pi3usb9201@5f { compatible = "pericom,pi3usb9201"; status = "okay"; reg = <0x5f>; irq = <&int_usb_c1_bc12>; }; ppc_port1_nxp: nx20p348x@72 { compatible = "nxp,nx20p348x"; status = "okay"; reg = <0x72>; }; }; &i2c7_0 { label = "I2C_CHARGER"; clock-frequency = ; pinctrl-0 = <&i2c7_0_sda_scl_gpb2_b3>; pinctrl-names = "default"; cbi_eeprom: eeprom@50 { compatible = "atmel,at24"; reg = <0x50>; size = <2048>; pagesize = <16>; address-width = <8>; timeout = <5>; }; charger: isl9241@9 { compatible = "intersil,isl9241"; status = "okay"; reg = <0x09>; }; };