···11+ChromeOS EC USB Type-C cable and accessories detection22+33+On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is44+able to detect the state of external accessories such as display adapters55+or USB devices when said accessories are attached or detached.66+77+The node for this device must be under a cros-ec node like google,cros-ec-spi88+or google,cros-ec-i2c.99+1010+Required properties:1111+- compatible: Should be "google,extcon-usbc-cros-ec".1212+- google,usb-port-id: Specifies the USB port ID to use.1313+1414+Example:1515+ cros-ec@0 {1616+ compatible = "google,cros-ec-i2c";1717+1818+ ...1919+2020+ extcon {2121+ compatible = "google,extcon-usbc-cros-ec";2222+ google,usb-port-id = <0>;2323+ };2424+ }
+7
drivers/extcon/Kconfig
···150150 Say Y here to enable GPIO based USB cable detection extcon support.151151 Used typically if GPIO is used for USB ID pin detection.152152153153+config EXTCON_USBC_CROS_EC154154+ tristate "ChromeOS Embedded Controller EXTCON support"155155+ depends on MFD_CROS_EC156156+ help157157+ Say Y here to enable USB Type C cable detection extcon support when158158+ using Chrome OS EC based USB Type-C ports.159159+153160endif