Skip to content

Commit 48a9cf9

Browse files
robherringBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Convert abilis,tb10x-gpio to DT schema
Convert the Abilis TB10x GPIO binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250714202934.3013189-1-robh@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 672d644 commit 48a9cf9

2 files changed

Lines changed: 63 additions & 35 deletions

File tree

Documentation/devicetree/bindings/gpio/abilis,tb10x-gpio.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/abilis,tb10x-gpio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Abilis TB10x GPIO controller
8+
9+
maintainers:
10+
- Christian Ruppert <christian.ruppert@abilis.com>
11+
12+
properties:
13+
compatible:
14+
const: abilis,tb10x-gpio
15+
16+
reg:
17+
maxItems: 1
18+
19+
gpio-controller: true
20+
21+
'#gpio-cells':
22+
const: 2
23+
24+
gpio-ranges: true
25+
26+
gpio-ranges-group-names: true
27+
28+
interrupt-controller: true
29+
30+
'#interrupt-cells':
31+
const: 1
32+
description: Interrupts are triggered on both edges
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
abilis,ngpio:
38+
description: Number of GPIO pins this driver controls
39+
$ref: /schemas/types.yaml#/definitions/uint32
40+
41+
required:
42+
- compatible
43+
- reg
44+
- gpio-controller
45+
- '#gpio-cells'
46+
- abilis,ngpio
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
gpio@ff140000 {
53+
compatible = "abilis,tb10x-gpio";
54+
interrupt-controller;
55+
#interrupt-cells = <1>;
56+
interrupts = <27 2>;
57+
reg = <0xff140000 0x1000>;
58+
gpio-controller;
59+
#gpio-cells = <2>;
60+
abilis,ngpio = <3>;
61+
gpio-ranges = <&iomux 0 0 0>;
62+
gpio-ranges-group-names = "gpioa_pins";
63+
};

0 commit comments

Comments
 (0)