diff options
Diffstat (limited to 'zephyr/projects/nissa/i2c_nivviks.dts')
-rw-r--r-- | zephyr/projects/nissa/i2c_nivviks.dts | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/i2c_nivviks.dts b/zephyr/projects/nissa/i2c_nivviks.dts new file mode 100644 index 0000000000..e7fdea2b08 --- /dev/null +++ b/zephyr/projects/nissa/i2c_nivviks.dts @@ -0,0 +1,85 @@ +/* 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. + */ + +/ { + named-i2c-ports { + compatible = "named-i2c-ports"; + eeprom { + i2c-port = <&i2c0_0>; + enum-name = "I2C_PORT_EEPROM"; + label = "EEPROM"; + }; + i2c_sensor: sensor { + i2c-port = <&i2c1_0>; + enum-name = "I2C_PORT_SENSOR"; + label = "SENSOR"; + }; + tcpc0 { + i2c-port = <&i2c3_0>; + enum-name = "I2C_PORT_USB_C0_TCPC"; + label = "TCPC0"; + }; + tcpc1 { + i2c-port = <&i2c5_1>; + enum-name = "I2C_PORT_USB_C1_TCPC"; + label = "TCPC1"; + }; + battery { + i2c-port = <&i2c7_0>; + enum-name = "I2C_PORT_BATTERY"; + label = "BATTERY"; + }; + }; +}; + +&i2c0_0 { + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; + label = "I2C_EEPROM"; +}; + +&i2c_ctrl0 { + status = "okay"; +}; + +&i2c1_0 { + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; + label = "I2C_SENSOR"; +}; + +&i2c_ctrl1 { + status = "okay"; +}; + +&i2c3_0 { + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST_PLUS>; + label = "I2C_USB_C0"; +}; + +&i2c_ctrl3 { + status = "okay"; +}; + +&i2c5_1 { + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST_PLUS>; + label = "I2C_SUB_USB_C1"; +}; + +&i2c_ctrl5 { + status = "okay"; +}; + +&i2c7_0 { + status = "okay"; + clock-frequency = <I2C_BITRATE_STANDARD>; + label = "I2C_BATTERY"; +}; + +&i2c_ctrl7 { + status = "okay"; +}; |