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