summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/extcon/extcon-usbc-cros-ec.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Bindings/extcon/extcon-usbc-cros-ec.txt')
-rw-r--r--dts/Bindings/extcon/extcon-usbc-cros-ec.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/dts/Bindings/extcon/extcon-usbc-cros-ec.txt b/dts/Bindings/extcon/extcon-usbc-cros-ec.txt
new file mode 100644
index 0000000000..8e8625c00d
--- /dev/null
+++ b/dts/Bindings/extcon/extcon-usbc-cros-ec.txt
@@ -0,0 +1,24 @@
+ChromeOS EC USB Type-C cable and accessories detection
+
+On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is
+able to detect the state of external accessories such as display adapters
+or USB devices when said accessories are attached or detached.
+
+The node for this device must be under a cros-ec node like google,cros-ec-spi
+or google,cros-ec-i2c.
+
+Required properties:
+- compatible: Should be "google,extcon-usbc-cros-ec".
+- google,usb-port-id: Specifies the USB port ID to use.
+
+Example:
+ cros-ec@0 {
+ compatible = "google,cros-ec-i2c";
+
+ ...
+
+ extcon {
+ compatible = "google,extcon-usbc-cros-ec";
+ google,usb-port-id = <0>;
+ };
+ }