Linux 6.7-rc7
[linux-modified.git] / Documentation / devicetree / bindings / gpio / loongson,ls1x-gpio.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/gpio/loongson,ls1x-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Loongson-1 GPIO controller
8
9 maintainers:
10   - Keguang Zhang <keguang.zhang@gmail.com>
11
12 properties:
13   compatible:
14     const: loongson,ls1x-gpio
15
16   reg:
17     maxItems: 1
18
19   gpio-controller: true
20
21   "#gpio-cells":
22     const: 2
23
24   ngpios:
25     minimum: 1
26     maximum: 32
27
28 required:
29   - compatible
30   - reg
31   - gpio-controller
32   - "#gpio-cells"
33   - ngpios
34
35 additionalProperties: false
36
37 examples:
38   - |
39     gpio0: gpio@1fd010c0 {
40         compatible = "loongson,ls1x-gpio";
41         reg = <0x1fd010c0 0x4>;
42
43         gpio-controller;
44         #gpio-cells = <2>;
45
46         ngpios = <32>;
47     };
48
49 ...