Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <pratik.farkase@wsisweden.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240522151616.27397-1-pratik.farkase@wsisweden.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Pratik Farkase and committed by
Bartosz Golaszewski
e4608bbc d795848e

+43 -16
-16
Documentation/devicetree/bindings/gpio/gpio-zevio.txt
··· 1 - Zevio GPIO controller 2 - 3 - Required properties: 4 - - compatible: Should be "lsi,zevio-gpio" 5 - - reg: Address and length of the register set for the device 6 - - #gpio-cells: Should be two. The first cell is the pin number and the 7 - second cell is used to specify optional parameters (currently unused). 8 - - gpio-controller: Marks the device node as a GPIO controller. 9 - 10 - Example: 11 - gpio: gpio@90000000 { 12 - compatible = "lsi,zevio-gpio"; 13 - reg = <0x90000000 0x1000>; 14 - gpio-controller; 15 - #gpio-cells = <2>; 16 - };
+43
Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml
··· 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 <pratikfarkase94@gmail.com> 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 + };