| 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 |
|
| 7 |
title: Google Chrome OS EC(Embedded Controller) Type C port driver. |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Benson Leung <[email protected]> |
| 11 |
- Prashant Malani <[email protected]> |
| 12 |
|
| 13 |
description: |
| 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 |
|
| 19 |
properties: |
| 20 |
compatible: |
| 21 |
const: google,cros-ec-typec |
| 22 |
|
| 23 |
'#address-cells': |
| 24 |
const: 1 |
| 25 |
|
| 26 |
'#size-cells': |
| 27 |
const: 0 |
| 28 |
|
| 29 |
patternProperties: |
| 30 |
'^connector@[0-9a-f]+$': |
| 31 |
$ref: /schemas/connector/usb-connector.yaml# |
| 32 |
required: |
| 33 |
- reg |
| 34 |
|
| 35 |
required: |
| 36 |
- compatible |
| 37 |
|
| 38 |
additionalProperties: false |
| 39 |
|
| 40 |
examples: |
| 41 |
- |+ |
| 42 |
spi { |
| 43 |
#address-cells = <1>; |
| 44 |
#size-cells = <0>; |
| 45 |
|
| 46 |
cros_ec: ec@0 { |
| 47 |
compatible = "google,cros-ec-spi"; |
| 48 |
reg = <0>; |
| 49 |
interrupts = <35 0>; |
| 50 |
|
| 51 |
typec { |
| 52 |
compatible = "google,cros-ec-typec"; |
| 53 |
|
| 54 |
#address-cells = <1>; |
| 55 |
#size-cells = <0>; |
| 56 |
|
| 57 |
connector@0 { |
| 58 |
compatible = "usb-c-connector"; |
| 59 |
reg = <0>; |
| 60 |
power-role = "dual"; |
| 61 |
data-role = "dual"; |
| 62 |
try-power-role = "source"; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
}; |