Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/gpio/gpio-pca9570.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: PCA9570 I2C GPO expander |
| 8 | |
| 9 | maintainers: |
| 10 | - Sungbo Eo <mans0n@gorani.run> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - dlg,slg7xl45106 |
| 16 | - nxp,pca9570 |
| 17 | - nxp,pca9571 |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | gpio-controller: true |
| 23 | |
| 24 | '#gpio-cells': |
| 25 | const: 2 |
| 26 | |
| 27 | gpio-line-names: |
| 28 | minItems: 4 |
| 29 | maxItems: 8 |
| 30 | |
| 31 | required: |
| 32 | - compatible |
| 33 | - reg |
| 34 | - gpio-controller |
| 35 | - "#gpio-cells" |
| 36 | |
| 37 | additionalProperties: false |
| 38 | |
| 39 | examples: |
| 40 | - | |
| 41 | i2c { |
| 42 | #address-cells = <1>; |
| 43 | #size-cells = <0>; |
| 44 | |
| 45 | gpio@24 { |
| 46 | compatible = "nxp,pca9570"; |
| 47 | reg = <0x24>; |
| 48 | gpio-controller; |
| 49 | #gpio-cells = <2>; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | ... |