Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1ChromeOS EC USB Type-C cable and accessories detection
2
3On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is
4able to detect the state of external accessories such as display adapters
5or USB devices when said accessories are attached or detached.
6
7The node for this device must be under a cros-ec node like google,cros-ec-spi
8or google,cros-ec-i2c.
9
10Required properties:
11- compatible: Should be "google,extcon-usbc-cros-ec".
12- google,usb-port-id: Specifies the USB port ID to use.
13
14Example:
15 cros-ec@0 {
16 compatible = "google,cros-ec-i2c";
17
18 ...
19
20 extcon {
21 compatible = "google,extcon-usbc-cros-ec";
22 google,usb-port-id = <0>;
23 };
24 }