Skip to content

Commit 722cfe4

Browse files
kelvincheungBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Add Loongson-1 GPIO
Add devicetree binding document for Loongson-1 GPIO. Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 31b6ec6 commit 722cfe4

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
...

0 commit comments

Comments
 (0)