xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-pca9570.yaml (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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
17  reg:
18    maxItems: 1
19
20  gpio-controller: true
21
22  '#gpio-cells':
23    const: 2
24
25required:
26  - compatible
27  - reg
28  - gpio-controller
29  - "#gpio-cells"
30
31additionalProperties: false
32
33examples:
34  - |
35    i2c0 {
36        #address-cells = <1>;
37        #size-cells = <0>;
38
39        gpio@24 {
40            compatible = "nxp,pca9570";
41            reg = <0x24>;
42            gpio-controller;
43            #gpio-cells = <2>;
44        };
45    };
46
47...
48