/* Copyright 2021 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include /* * Kingler and Steelix use the same dts, take care of this when modify it. */ / { named-i2c-ports { compatible = "named-i2c-ports"; i2c_sensor: sensor { i2c-port = <&i2c0_0>; enum-names = "I2C_PORT_SENSOR"; }; i2c_usb_c0: usb-c0 { i2c-port = <&i2c1_0>; remote-port = <7>; enum-names = "I2C_PORT_USB_C0"; }; i2c_usb_c1: usb-c1 { i2c-port = <&i2c2_0>; enum-names = "I2C_PORT_USB_C1", "I2C_PORT_USB_C1_TCPC", "I2C_PORT_USB_C1_PPC"; }; i2c_charger: charger { i2c-port = <&i2c3_0>; enum-names = "I2C_PORT_POWER", "I2C_PORT_EEPROM"; }; battery { i2c-port = <&i2c5_0>; remote-port = <1>; enum-names = "I2C_PORT_BATTERY", "I2C_PORT_VIRTUAL_BATTERY"; }; }; }; &i2c0_0 { label = "I2C_SENSOR"; status = "okay"; clock-frequency = ; pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>; pinctrl-names = "default"; }; &i2c_ctrl0 { status = "okay"; }; &i2c1_0 { label = "I2C_USB_C0"; status = "okay"; clock-frequency = ; pinctrl-0 = <&i2c1_0_sda_scl_gp87_90>; pinctrl-names = "default"; bc12_port0: pi3usb9201@5f { compatible = "pericom,pi3usb9201"; status = "okay"; reg = <0x5f>; irq = <&int_usb_c0_bc12>; }; tcpc_port0: anx7447-tcpc@2c { compatible = "analogix,anx7447-tcpc"; status = "okay"; reg = <0x2c>; tcpc-flags = <( TCPC_FLAGS_VBUS_MONITOR | TCPC_FLAGS_ALERT_OD | TCPC_FLAGS_CONTROL_VCONN | TCPC_FLAGS_CONTROL_FRS)>; /* a duplicate of the <&gpio_usb_c0_tcpc_int_odl> node in * "named-gpios". This is the Zephyr preferred style, * the "named-gpios" node will be dealt with at a later date. */ irq-gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; /* a duplicate of the <&gpio_usb_c0_tcpc_rst> node in * "named-gpios". This is the Zephyr preferred style, * the "named-gpios" node will be dealt with at a later date. */ rst-gpios = <&gpioc 0 GPIO_ACTIVE_HIGH>; }; ppc_port0: nx20p348x@72 { compatible = "nxp,nx20p348x"; status = "okay"; reg = <0x72>; }; }; &i2c_ctrl1 { status = "okay"; }; &i2c2_0 { label = "I2C_USB_C1"; status = "okay"; clock-frequency = ; pinctrl-0 = <&i2c2_0_sda_scl_gp91_92>; pinctrl-names = "default"; bc12_port1: rt1718s-bc12@40 { compatible = "richtek,rt1718s-bc12"; status = "okay"; reg = <0x40>; }; tcpc_port1: rt1718s-tcpc@40 { compatible = "richtek,rt1718s-tcpc"; reg = <0x40>; tcpc-flags = <( TCPC_FLAGS_ALERT_OD | TCPC_FLAGS_CONTROL_VCONN | TCPC_FLAGS_CONTROL_FRS)>; /* a duplicate of the <&gpio_usb_c1_tcpc_int_odl> node in * "named-gpios". This is the Zephyr preferred style, * the "named-gpios" node will be dealt with at a later date. */ irq-gpios = <&gpioe 1 GPIO_ACTIVE_LOW>; }; ppc_port1: nx20p348x@72 { compatible = "nxp,nx20p348x"; status = "okay"; reg = <0x72>; }; ps8743_mux_1: ps8743-mux-1@10 { compatible = "parade,ps8743"; reg = <0x10>; board-init = "ps8743_mux_1_board_init"; }; }; &i2c_ctrl2 { status = "okay"; }; &i2c3_0 { label = "I2C_PWR_CBI"; status = "okay"; clock-frequency = ; pinctrl-0 = <&i2c3_0_sda_scl_gpd0_d1>; pinctrl-names = "default"; charger: isl923x@9 { compatible = "intersil,isl923x"; status = "okay"; reg = <0x9>; }; cbi_eeprom: eeprom@50 { compatible = "atmel,at24"; reg = <0x50>; size = <2048>; pagesize = <16>; address-width = <8>; timeout = <5>; }; }; &i2c_ctrl3 { status = "okay"; }; &i2c5_0 { label = "I2C_BATTERY"; status = "okay"; clock-frequency = ; pinctrl-0 = <&i2c5_0_sda_scl_gp33_36>; pinctrl-names = "default"; }; &i2c_ctrl5 { status = "okay"; };