| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/misc/ti,fpc202.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: TI FPC202 dual port controller with expanded IOs |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Romain Gantois <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: /schemas/i2c/i2c-atr.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
const: ti,fpc202 |
| 18 |
|
| 19 |
reg: |
| 20 |
maxItems: 1 |
| 21 |
|
| 22 |
gpio-controller: true |
| 23 |
|
| 24 |
"#gpio-cells": |
| 25 |
const: 2 |
| 26 |
|
| 27 |
enable-gpios: |
| 28 |
description: |
| 29 |
Specifier for the GPIO connected to the EN pin. |
| 30 |
maxItems: 1 |
| 31 |
|
| 32 |
'#address-cells': |
| 33 |
const: 1 |
| 34 |
|
| 35 |
'#size-cells': |
| 36 |
const: 0 |
| 37 |
|
| 38 |
patternProperties: |
| 39 |
"^i2c@[0-1]$": |
| 40 |
$ref: /schemas/i2c/i2c-controller.yaml# |
| 41 |
description: Downstream device ports 0 and 1 |
| 42 |
|
| 43 |
properties: |
| 44 |
reg: |
| 45 |
maxItems: 1 |
| 46 |
description: |
| 47 |
Downstream port ID |
| 48 |
|
| 49 |
required: |
| 50 |
- "#address-cells" |
| 51 |
- "#size-cells" |
| 52 |
- reg |
| 53 |
|
| 54 |
unevaluatedProperties: false |
| 55 |
|
| 56 |
required: |
| 57 |
- compatible |
| 58 |
- reg |
| 59 |
- gpio-controller |
| 60 |
- "#gpio-cells" |
| 61 |
- "#address-cells" |
| 62 |
- "#size-cells" |
| 63 |
|
| 64 |
unevaluatedProperties: false |
| 65 |
|
| 66 |
examples: |
| 67 |
- | |
| 68 |
i2c { |
| 69 |
#address-cells = <1>; |
| 70 |
#size-cells = <0>; |
| 71 |
|
| 72 |
i2c-atr@f { |
| 73 |
compatible = "ti,fpc202"; |
| 74 |
reg = <0xf>; |
| 75 |
#address-cells = <1>; |
| 76 |
#size-cells = <0>; |
| 77 |
|
| 78 |
gpio-controller; |
| 79 |
#gpio-cells = <2>; |
| 80 |
|
| 81 |
i2c@0 { |
| 82 |
#address-cells = <1>; |
| 83 |
#size-cells = <0>; |
| 84 |
reg = <0>; |
| 85 |
}; |
| 86 |
|
| 87 |
i2c@1 { |
| 88 |
#address-cells = <1>; |
| 89 |
#size-cells = <0>; |
| 90 |
reg = <1>; |
| 91 |
}; |
| 92 |
}; |
| 93 |
}; |
| 94 |
... |