/* Copyright 2023 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include #include / { aliases { i2c-0 = &i2c0_0; i2c-1 = &i2c1_0; i2c-2 = &i2c2_0; i2c-3 = &i2c3_0; i2c-4 = &i2c4_1; i2c-5 = &i2c5_0; i2c-6 = &i2c6_0; i2c-7 = &i2c7_0; }; named-i2c-ports { compatible = "named-i2c-ports"; i2c_tcpc0: tcpc0 { i2c-port = <&i2c0_0>; enum-names = "I2C_PORT_TCPC0"; }; i2c_tcpc1: tcpc1 { i2c-port = <&i2c1_0>; enum-names = "I2C_PORT_TCPC1"; }; battery { i2c-port = <&i2c2_0>; remote-port = <0>; enum-names = "I2C_PORT_BATTERY"; }; usb-mux { i2c-port = <&i2c3_0>; enum-names = "I2C_PORT_USB_MUX"; }; i2c_charger: charger { i2c-port = <&i2c4_1>; enum-names = "I2C_PORT_CHARGER"; }; eeprom { i2c-port = <&i2c5_0>; enum-names = "I2C_PORT_EEPROM"; }; i2c_sensor: sensor { i2c-port = <&i2c6_1>; enum-names = "I2C_PORT_SENSOR"; }; i2c_soc_thermal: soc-thermal { i2c-port = <&i2c7_0>; enum-names = "I2C_PORT_THERMAL_AP"; }; }; }; &i2c0_0 { status = "okay"; label = "I2C_TCPC0"; clock-frequency = ; pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>; pinctrl-names = "default"; tcpc_port0: rt1716@70 { compatible = "richtek,rt1716"; reg = <0x70>; tcpc-flags = <( TCPC_FLAGS_TCPCI_REV2_0 | TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V)>; irq-gpios = <&gpioe 0 GPIO_ACTIVE_LOW>; }; ppc_port0: ktu1125@38 { compatible = "kinetic,ktu1125"; status = "okay"; reg = <0x38>; }; }; &i2c_ctrl0 { status = "okay"; }; &i2c1_0 { status = "okay"; label = "I2C_TCPC1"; clock-frequency = ; pinctrl-0 = <&i2c1_0_sda_scl_gp87_90>; pinctrl-names = "default"; bc12_port1: rt1718s-bc12@40 { compatible = "richtek,rt1718s-bc12"; status = "okay"; reg = <0x40>; }; tcpc_rt1718_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 = <&gpio3 4 GPIO_ACTIVE_LOW>; is-alt; }; ppc_nx20p_port1: nx20p348x@71 { compatible = "nxp,nx20p348x"; status = "okay"; reg = <0x71>; is-alt; }; tcpc_ps8815_port1: ps8xxx@b { compatible = "parade,ps8xxx"; reg = <0xb>; is-alt; }; ppc_ktu1125_port1: ktu1125@38 { compatible = "kinetic,ktu1125"; status = "okay"; reg = <0x38>; is-alt; }; }; &i2c_ctrl1 { status = "okay"; }; &i2c2_0 { status = "okay"; label = "I2C_BATTERY"; clock-frequency = ; pinctrl-0 = <&i2c2_0_sda_scl_gp91_92>; pinctrl-names = "default"; }; &i2c_ctrl2 { status = "okay"; }; &i2c3_0 { status = "okay"; label = "I2C_USB_MUX"; clock-frequency = ; pinctrl-0 = <&i2c3_0_sda_scl_gpd0_d1>; pinctrl-names = "default"; amd_fp6_port0: amd_fp6@5c { compatible = "amd,usbc-mux-amd-fp6"; status = "okay"; reg = <0x5c>; }; amd_fp6_port1: amd_fp6@52 { compatible = "amd,usbc-mux-amd-fp6"; status = "okay"; reg = <0x52>; }; }; &i2c_ctrl3 { status = "okay"; }; &i2c4_1 { status = "okay"; label = "I2C_CHARGER"; clock-frequency = ; pinctrl-0 = <&i2c4_1_sda_scl_gpf2_f3>; pinctrl-names = "default"; charger: isl9241@9 { compatible = "intersil,isl9241"; status = "okay"; reg = <0x9>; }; }; &i2c_ctrl4 { status = "okay"; }; &i2c5_0 { status = "okay"; label = "I2C_EEPROM"; clock-frequency = ; pinctrl-0 = <&i2c5_0_sda_scl_gp33_36>; pinctrl-names = "default"; cbi_eeprom: eeprom@50 { compatible = "atmel,at24"; reg = <0x50>; size = <2048>; pagesize = <16>; address-width = <8>; timeout = <5>; }; }; &i2c_ctrl5 { status = "okay"; }; &i2c6_1 { status = "okay"; label = "I2C_SENSOR"; clock-frequency = ; pinctrl-0 = <&i2c6_1_sda_scl_gpe3_e4>; pinctrl-names = "default"; soc_pct2075: soc-pct2075@48 { compatible = "nxp,pct2075"; reg = <0x48>; }; amb_pct2075: amb-pct2075@4f { compatible = "nxp,pct2075"; reg = <0x4f>; }; }; &i2c_ctrl6 { status = "okay"; }; &i2c7_0 { status = "okay"; label = "I2C_THERMAL_AP"; clock-frequency = ; pinctrl-0 = <&i2c7_0_sda_scl_gpb2_b3>; pinctrl-names = "default"; temp_cpu: cpu@4c { compatible = "amd,sb-tsi"; reg = <0x4c>; }; }; &i2c_ctrl7 { status = "okay"; };