xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/loongson,ls1x-gpio.yaml (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
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
7title: Loongson-1 GPIO controller
8
9maintainers:
10  - Keguang Zhang <keguang.zhang@gmail.com>
11
12properties:
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
28required:
29  - compatible
30  - reg
31  - gpio-controller
32  - "#gpio-cells"
33  - ngpios
34
35additionalProperties: false
36
37examples:
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...
50