diff options
-rw-r--r-- | zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml | 1 | ||||
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/i2c.dts | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml index caffdfacfa..3838ca6fc9 100644 --- a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml +++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml @@ -29,6 +29,7 @@ properties: - I2C_PORT_POWER - I2C_PORT_PPC0 - I2C_PORT_PPC1 + - I2C_PORT_RTC - I2C_PORT_SENSOR - I2C_PORT_TCPC0 - I2C_PORT_TCPC1 diff --git a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts index 1caba088c9..983f5af1f8 100644 --- a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts +++ b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts @@ -9,6 +9,7 @@ i2c-1 = &i2c1_0; i2c-2 = &i2c2_0; i2c-3 = &i2c3_0; + i2c-4 = &i2c4_1; i2c-5 = &i2c5_0; i2c-7 = &i2c7_0; }; @@ -47,6 +48,11 @@ 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"; @@ -93,6 +99,11 @@ clock-frequency = <I2C_BITRATE_FAST>; }; +&i2c4_1 { + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; +}; + &i2c5_0 { status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; |