summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/dts/bindings/i2c/i2c-keys.yaml17
-rw-r--r--zephyr/projects/volteer/boards/arm/volteer/volteer.dts29
2 files changed, 46 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/i2c/i2c-keys.yaml b/zephyr/dts/bindings/i2c/i2c-keys.yaml
new file mode 100644
index 0000000000..08add12b32
--- /dev/null
+++ b/zephyr/dts/bindings/i2c/i2c-keys.yaml
@@ -0,0 +1,17 @@
+# Copyright (c) 2020 The Chromium OS Authors
+# SPDX-License-Identifier: Apache-2.0
+
+description: I2C KEYS parent node
+
+compatible: "i2c-keys"
+
+child-binding:
+ description: I2C KEYS child node
+ properties:
+ i2c-port:
+ type: phandle
+ required: true
+ label:
+ required: true
+ type: string
+ description: Human readable string describing the device (used as device_get_binding() argument) \ No newline at end of file
diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
index b3c076e6a2..0d8b3d9af8 100644
--- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
+++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
@@ -28,6 +28,35 @@
zephyr,flash = &flash0;
};
+ named-i2c-ports {
+ compatible = "i2c-keys";
+
+ sensor {
+ i2c-port = <&i2c0_0>;
+ label = "SENSOR";
+ };
+ usb-c0 {
+ i2c-port = <&i2c1_0>;
+ label = "USB_C0";
+ };
+ usb-c1 {
+ i2c-port = <&i2c2_0>;
+ label = "USB_C1";
+ };
+ usb1-mix {
+ i2c-port = <&i2c3_0>;
+ label = "USB_1_MIX";
+ };
+ power {
+ i2c-port = <&i2c5_0>;
+ label = "POWER";
+ };
+ eeprom {
+ i2c-port = <&i2c7_0>;
+ label = "EEPROM";
+ };
+ };
+
named-gpios {
compatible = "gpio-keys";