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
7title: PCA9570 I2C GPO expander
8
9maintainers:
10  - Sungbo Eo <mans0n@gorani.run>
11
12properties:
13  compatible:
14    enum:
15      - nxp,pca9570
16      - nxp,pca9571
17
18  reg:
19    maxItems: 1
20
21  gpio-controller: true
22
23  '#gpio-cells':
24    const: 2
25
26required:
27  - compatible
28  - reg
29  - gpio-controller
30  - "#gpio-cells"
31
32additionalProperties: false
33
34examples:
35  - |
36    i2c0 {
37        #address-cells = <1>;
38        #size-cells = <0>;
39
40        gpio@24 {
41            compatible = "nxp,pca9570";
42            reg = <0x24>;
43            gpio-controller;
44            #gpio-cells = <2>;
45        };
46    };
47
48...
49