summaryrefslogtreecommitdiff
path: root/zephyr/projects/guybrush/i2c.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/guybrush/i2c.dts')
-rw-r--r--zephyr/projects/guybrush/i2c.dts60
1 files changed, 60 insertions, 0 deletions
diff --git a/zephyr/projects/guybrush/i2c.dts b/zephyr/projects/guybrush/i2c.dts
index 699c4b9b7b..7b4c0753bc 100644
--- a/zephyr/projects/guybrush/i2c.dts
+++ b/zephyr/projects/guybrush/i2c.dts
@@ -17,17 +17,59 @@
named-i2c-ports {
compatible = "named-i2c-ports";
+ i2c_tcpc0: tcpc0 {
+ i2c-port = <&i2c0_0>;
+ enum-name = "I2C_PORT_TCPC0";
+ label = "TCPC0";
+ };
+
+ i2c_tcpc1: tcpc1 {
+ i2c-port = <&i2c1_0>;
+ enum-name = "I2C_PORT_TCPC1";
+ label = "TCPC1";
+ };
+
battery {
i2c-port = <&i2c2_0>;
remote-port = <0>;
enum-name = "I2C_PORT_BATTERY";
label = "BATTERY";
};
+
+ usb_mux {
+ i2c-port = <&i2c3_0>;
+ enum-name = "I2C_PORT_USB_MUX";
+ label = "USB_MUX";
+ };
+
+ charger {
+ i2c-port = <&i2c4_1>;
+ enum-name = "I2C_PORT_CHARGER";
+ label = "CHARGER";
+ };
};
};
+&i2c0_0 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_FAST>;
+};
+
+&i2c_ctrl0 {
+ status = "okay";
+};
+
+&i2c1_0 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_FAST>;
+};
+
+&i2c_ctrl1 {
+ status = "okay";
+};
+
&i2c2_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
@@ -36,3 +78,21 @@
&i2c_ctrl2 {
status = "okay";
};
+
+&i2c3_0 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_FAST>;
+};
+
+&i2c_ctrl3 {
+ status = "okay";
+};
+
+&i2c4_1 {
+ status = "okay";
+ clock-frequency = <I2C_BITRATE_FAST>;
+};
+
+&i2c_ctrl4 {
+ status = "okay";
+};