summaryrefslogtreecommitdiff
path: root/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts')
-rw-r--r--zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts45
1 files changed, 45 insertions, 0 deletions
diff --git a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
index f87376adce..e4f2e24b8e 100644
--- a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
+++ b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
@@ -154,12 +154,57 @@
channel = <5>;
};
};
+
+ named-i2c-ports {
+ compatible = "named-i2c-ports";
+
+ battery {
+ i2c-port = <&i2c2>;
+ enum-name = "I2C_PORT_BATTERY";
+ label = "BATTERY";
+ };
+ evb-1 {
+ i2c-port = <&i2c0>;
+ enum-name = "I2C_PORT_EVB_1";
+ label = "EVB_1";
+ };
+ evb-2 {
+ i2c-port = <&i2c1>;
+ enum-name = "I2C_PORT_EVB_2";
+ label = "EVB_2";
+ };
+ opt-4 {
+ i2c-port = <&i2c4>;
+ enum-name = "I2C_PORT_OPT_4";
+ label = "OPT_4";
+ };
+ };
};
&adc0 {
status = "okay";
};
+&i2c0 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+};
+
+&i2c1 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+};
+
+&i2c2 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+};
+
+&i2c4 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+};
+
&uart1 {
status = "okay";
current-speed = <115200>;