summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt
blob: 8e8625c00dfac9926743f0d3f8441519021797e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>;
		};
	}