diff options
Diffstat (limited to 'zephyr/test/drivers/overlay.dts')
-rw-r--r-- | zephyr/test/drivers/overlay.dts | 106 |
1 files changed, 78 insertions, 28 deletions
diff --git a/zephyr/test/drivers/overlay.dts b/zephyr/test/drivers/overlay.dts index 96fc7de31a..569dedae78 100644 --- a/zephyr/test/drivers/overlay.dts +++ b/zephyr/test/drivers/overlay.dts @@ -59,6 +59,36 @@ enum-name = "GPIO_USB_C1_RT_RST_ODL"; label = "USB_C1_RT_RST_ODL"; }; + gpio_usb_c1_frs_en: usb_c1_frs_en { + gpios = <&gpio0 8 (GPIO_OUT_LOW)>; + enum-name = "GPIO_USB_C1_FRS_EN"; + label = "USB_C1_FRS_EN"; + }; + usb_c0_tcpc_int_odl: usb_c0_tcpc_int_odl { + gpios = <&gpio0 9 GPIO_INPUT>; + enum-name = "GPIO_USB_C0_TCPC_INT_ODL"; + label = "USB_C0_TCPC_INT_ODL"; + }; + usb_c1_tcpc_int_odl: usb_c1_tcpc_int_odl { + gpios = <&gpio0 10 GPIO_INPUT>; + enum-name = "GPIO_USB_C1_TCPC_INT_ODL"; + label = "USB_C1_TCPC_INT_ODL"; + }; + usb_c0_tcpc_rst_l { + gpios = <&gpio0 11 (GPIO_OUT_HIGH | GPIO_INPUT)>; + enum-name = "GPIO_USB_C0_TCPC_RST_L"; + label = "USB_C0_TCPC_RST_L"; + }; + usb_c1_tcpc_rst_l { + gpios = <&gpio0 12 (GPIO_OUT_HIGH | GPIO_INPUT)>; + enum-name = "GPIO_USB_C1_TCPC_RST_L"; + label = "USB_C1_TCPC_RST_L"; + }; + gpio_usb_c1_ppc_int: usb_c1_ppc_int { + gpios = <&gpio0 13 GPIO_INPUT>; + enum-name = "GPIO_USB_C1_PPC_INT_ODL"; + label = "GPIO_USB_C1_PPC_INT_ODL"; + }; }; named-i2c-ports { compatible = "named-i2c-ports"; @@ -69,7 +99,7 @@ label = "USB_C0"; }; usb-c1 { - i2c-port = <&i2c0>; + i2c-port = <&i2c1>; enum-name = "I2C_PORT_USB_C1"; label = "USB_C1"; }; @@ -432,8 +462,8 @@ }; /* - * Second i2c bus is required, because there is already device with - * address 0x68 on the first bus + * Second i2c bus is required, because there are already devices with + * addresses 0x68, 0xb and 0x9 on the first bus */ i2c1: i2c@400 { status = "okay"; @@ -444,15 +474,21 @@ reg = <0x400 4>; label = "I2C_1"; - accel_bmi160: bmi160@68 { - compatible = "zephyr,bmi"; - reg = <0x68>; - label = "BMI160"; - device-model = "BMI_EMUL_160"; - error-on-ro-write; - error-on-wo-read; - error-on-reserved-bit-write; - simulate-command-exec-time; + tcpci_ps8xxx_emul: tcpci_ps8xxx_emul@b { + compatible = "cros,tcpci-emul"; + status = "okay"; + reg = <0xb>; + label = "TCPCI_PS8XXX_EMUL"; + alert_gpio = <&usb_c1_tcpc_int_odl>; + }; + + ps8xxx_emul: ps8xxx_emul { + compatible = "cros,ps8xxx-emul"; + tcpci-i2c = <&tcpci_ps8xxx_emul>; + p0-i2c-addr = <0x8>; + p1-i2c-addr = <0x9>; + gpio-i2c-addr = <0x1a>; + label = "PS8XXX_EMUL"; }; tcs_emul: tcs@39 { @@ -463,6 +499,34 @@ error-on-reserved-bit-write; error-on-msb-first-access; }; + + syv682x_emul: syv682x@41 { + compatible = "zephyr,syv682x-emul"; + reg = <0x41>; + label = "SYV682X_EMUL"; + frs_en_gpio = <&gpio_usb_c1_frs_en>; + alert_gpio = <&gpio_usb_c1_ppc_int>; + }; + + usb_c1_bb_retimer_emul: bbretimer@42 { + compatible = "cros,bb-retimer-emul"; + reg = <0x42>; + label = "USB_C1_BB_RETIMER"; + vendor = "BB_RETIMER_VENDOR_ID_1"; + error-on-ro-write; + error-on-reserved-bit-write; + }; + + accel_bmi160: bmi160@68 { + compatible = "zephyr,bmi"; + reg = <0x68>; + label = "BMI160"; + device-model = "BMI_EMUL_160"; + error-on-ro-write; + error-on-wo-read; + error-on-reserved-bit-write; + simulate-command-exec-time; + }; }; clock: clock { @@ -481,7 +545,7 @@ }; &gpio0 { - ngpios = <8>; + ngpios = <14>; }; &i2c0 { @@ -526,12 +590,6 @@ label = "SN5S330_EMUL"; }; - syv682x_emul: syv682x@41 { - compatible = "zephyr,syv682x-emul"; - reg = <0x41>; - label = "SYV682X_EMUL"; - }; - accel_bmi260: bmi260@68 { compatible = "zephyr,bmi"; reg = <0x68>; @@ -543,15 +601,6 @@ simulate-command-exec-time; }; - usb_c1_bb_retimer_emul: bbretimer@42 { - compatible = "cros,bb-retimer-emul"; - reg = <0x42>; - label = "USB_C1_BB_RETIMER"; - vendor = "BB_RETIMER_VENDOR_ID_1"; - error-on-ro-write; - error-on-reserved-bit-write; - }; - ln9310: ln9310@80 { compatible = "cros,ln9310-emul"; status = "okay"; @@ -585,6 +634,7 @@ status = "okay"; reg = <0x82>; label = "TCPCI_EMUL"; + alert_gpio = <&usb_c0_tcpc_int_odl>; }; }; |