1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Google Chrome OS EC(Embedded Controller) Type C port driver. 8 9maintainers: 10 - Benson Leung <[email protected]> 11 - Prashant Malani <[email protected]> 12 13description: 14 Chrome OS devices have an Embedded Controller(EC) which has access to 15 Type C port state. This node is intended to allow the host to read and 16 control the Type C ports. The node for this device should be under a 17 cros-ec node like google,cros-ec-spi. 18 19properties: 20 compatible: 21 const: google,cros-ec-typec 22 23 connector: 24 $ref: /schemas/connector/usb-connector.yaml# 25 26required: 27 - compatible 28 29examples: 30 - |+ 31 spi0 { 32 #address-cells = <1>; 33 #size-cells = <0>; 34 35 cros_ec: ec@0 { 36 compatible = "google,cros-ec-spi"; 37 reg = <0>; 38 39 typec { 40 compatible = "google,cros-ec-typec"; 41 42 #address-cells = <1>; 43 #size-cells = <0>; 44 45 connector@0 { 46 compatible = "usb-c-connector"; 47 reg = <0>; 48 power-role = "dual"; 49 data-role = "dual"; 50 try-power-role = "source"; 51 }; 52 }; 53 }; 54 }; 55