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