Skip to content

Commit e4608bb

Browse files
pratikfarkase94Bartosz Golaszewski
authored andcommitted
dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
Convert Zevio GPIO Controller from text to dtschema. Adding `interrupts` property fixes the following warning: linux/out/arch/arm/boot/dts/nspire/nspire-tp.dtb: gpio@90000000: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'` while executing `make dtbs_check` on Texas Instruments nspire boards. Signed-off-by: Pratik Farkase <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent d795848 commit e4608bb

File tree

2 files changed

+43
-16
lines changed

2 files changed

+43
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/lsi,zevio-gpio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Zevio GPIO controller
8+
9+
maintainers:
10+
- Pratik Farkase <[email protected]>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- const: lsi,zevio-gpio
16+
17+
reg:
18+
maxItems: 1
19+
20+
interrupts:
21+
maxItems: 1
22+
23+
"#gpio-cells":
24+
const: 2
25+
26+
gpio-controller: true
27+
28+
required:
29+
- compatible
30+
- reg
31+
- "#gpio-cells"
32+
- gpio-controller
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
gpio@90000000 {
39+
compatible = "lsi,zevio-gpio";
40+
reg = <0x90000000 0x1000>;
41+
gpio-controller;
42+
#gpio-cells = <2>;
43+
};

0 commit comments

Comments
 (0)