Skip to content

Commit ae455b2

Browse files
robherringBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Convert qca,ar7100-gpio to DT schema
Convert the Qualcomm Atheros AR7xxx/AR9xxx GPIO binding to DT schema format. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250714202859.3012173-1-robh@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 07e858e commit ae455b2

3 files changed

Lines changed: 61 additions & 38 deletions

File tree

Documentation/devicetree/bindings/gpio/gpio-ath79.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/qca,ar7100-gpio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Atheros AR7xxx/AR9xxx GPIO controller
8+
9+
maintainers:
10+
- Alban Bedel <albeu@free.fr>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- const: qca,ar9132-gpio
17+
- const: qca,ar7100-gpio
18+
- enum:
19+
- qca,ar7100-gpio
20+
- qca,ar9340-gpio
21+
22+
reg:
23+
maxItems: 1
24+
25+
gpio-controller: true
26+
27+
'#gpio-cells':
28+
const: 2
29+
30+
ngpios: true
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
interrupt-controller: true
36+
37+
'#interrupt-cells':
38+
const: 2
39+
40+
required:
41+
- compatible
42+
- reg
43+
- gpio-controller
44+
- '#gpio-cells'
45+
- ngpios
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
gpio@18040000 {
52+
compatible = "qca,ar9132-gpio", "qca,ar7100-gpio";
53+
reg = <0x18040000 0x30>;
54+
interrupts = <2>;
55+
ngpios = <22>;
56+
gpio-controller;
57+
#gpio-cells = <2>;
58+
interrupt-controller;
59+
#interrupt-cells = <2>;
60+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ M: Alban Bedel <albeu@free.fr>
38153815
S: Maintained
38163816
W: https://github.com/AlbanBedel/linux
38173817
T: git git://github.com/AlbanBedel/linux
3818-
F: Documentation/devicetree/bindings/gpio/gpio-ath79.txt
3818+
F: Documentation/devicetree/bindings/gpio/qca,ar7100-gpio.yaml
38193819
F: drivers/gpio/gpio-ath79.c
38203820

38213821
ATHEROS 71XX/9XXX USB PHY DRIVER

0 commit comments

Comments
 (0)