Path: blob/master/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ChromeOS EC USB Type-C cable and accessories detection78maintainers:9- Benson Leung <bleung@chromium.org>1011description: |12On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is13able to detect the state of external accessories such as display adapters14or USB devices when said accessories are attached or detached.15The node for this device must be under a cros-ec node like google,cros-ec-spi16or google,cros-ec-i2c.1718properties:19compatible:20const: google,extcon-usbc-cros-ec2122google,usb-port-id:23$ref: /schemas/types.yaml#/definitions/uint3224description: the port id25minimum: 026maximum: 2552728required:29- compatible30- google,usb-port-id3132additionalProperties: false3334examples:35- |36spi {37#address-cells = <1>;38#size-cells = <0>;39cros-ec@0 {40compatible = "google,cros-ec-spi";41reg = <0>;42interrupts = <44 0>;4344usbc_extcon0: extcon0 {45compatible = "google,extcon-usbc-cros-ec";46google,usb-port-id = <0>;47};4849usbc_extcon1: extcon1 {50compatible = "google,extcon-usbc-cros-ec";51google,usb-port-id = <1>;52};53};54};555657