xref: /linux/Documentation/devicetree/bindings/gpio/adi,ds4520-gpio.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/adi,ds4520-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: DS4520 I2C GPIO expander
8
9maintainers:
10  - Okan Sahin <okan.sahin@analog.com>
11
12properties:
13  compatible:
14    enum:
15      - adi,ds4520-gpio
16
17  reg:
18    maxItems: 1
19
20  gpio-controller: true
21
22  "#gpio-cells":
23    const: 2
24
25  ngpios:
26    minimum: 1
27    maximum: 9
28
29required:
30  - compatible
31  - reg
32  - gpio-controller
33  - "#gpio-cells"
34  - ngpios
35
36additionalProperties: false
37
38examples:
39  - |
40    i2c {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        gpio@50 {
45            compatible = "adi,ds4520-gpio";
46            reg = <0x50>;
47            ngpios = <9>;
48            gpio-controller;
49            #gpio-cells = <2>;
50        };
51    };
52