/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ / { 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-7 = &i2c7_0; }; named-i2c-ports { compatible = "named-i2c-ports"; power { i2c-port = <&i2c0_0>; enum-name = "I2C_PORT_POWER"; label = "POWER"; }; battery { i2c-port = <&i2c0_0>; remote-port = <0>; enum-name = "I2C_PORT_BATTERY"; label = "BATTERY"; }; virtual { i2c-port = <&i2c0_0>; enum-name = "I2C_PORT_VIRTUAL"; label = "VIRTUAL"; }; charger { i2c-port = <&i2c0_0>; enum-name = "I2C_PORT_CHARGER"; label = "CHARGER"; }; tcpc0 { i2c-port = <&i2c1_0>; enum-name = "I2C_PORT_TCPC0"; label = "TCPC0"; }; tcpc1 { i2c-port = <&i2c2_0>; enum-name = "I2C_PORT_TCPC1"; label = "TCPC1"; }; rtc { i2c-port = <&i2c4_1>; enum-name = "I2C_PORT_RTC"; label = "RTC"; }; eeprom { i2c-port = <&i2c5_0>; enum-name = "I2C_PORT_EEPROM"; label = "EEPROM"; }; i2c_sensor: sensor { i2c-port = <&i2c7_0>; enum-name = "I2C_PORT_SENSOR"; label = "SENSOR"; }; accel { i2c-port = <&i2c7_0>; enum-name = "I2C_PORT_ACCEL"; label = "ACCEL"; }; }; }; &i2c0_0 { status = "okay"; clock-frequency = ; isl9238: isl9238@9 { compatible = "intersil,isl9238"; reg = <0x09>; label = "ISL9238_CHARGER"; }; }; &i2c_ctrl0 { status = "okay"; }; &i2c1_0 { status = "okay"; /* * TODO(b/200280341): PS8805 SPI ROM access * * The PS8805 supports 1 MHz during normal operation, but only * 400 Khz during firmware updates. The I2C passthru commands don't * currently support changing the I2C frequency or notifying the EC * that a programming operation is going to start. Lower the clock * rate to 400 kHz for all accesses. */ clock-frequency = ; }; &i2c_ctrl1 { status = "okay"; }; &i2c2_0 { status = "okay"; /* TODO(b/200280341): PS8805 SPI ROM access */ clock-frequency = ; }; &i2c_ctrl2 { status = "okay"; }; &i2c3_0 { /* Not used as no WLC connected */ clock-frequency = ; }; &i2c_ctrl3 { status = "okay"; }; &i2c4_1 { status = "okay"; clock-frequency = ; pcf85063a: pcf85063a@51 { compatible = "nxp,rtc-pcf85063a"; reg = <0x51>; label = "RTC_PCF85063A"; int-gpios = <&gpio_rtc_ec_wake_odl>; }; }; &i2c_ctrl4 { status = "okay"; }; &i2c5_0 { status = "okay"; clock-frequency = ; }; &i2c_ctrl5 { status = "okay"; }; &i2c7_0 { status = "okay"; clock-frequency = ; }; &i2c_ctrl7 { status = "okay"; };