* [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
@ 2024-05-22 15:16 Pratik Farkase
2024-05-25 19:04 ` Krzysztof Kozlowski
2024-05-27 14:53 ` Bartosz Golaszewski
0 siblings, 2 replies; 4+ messages in thread
From: Pratik Farkase @ 2024-05-22 15:16 UTC (permalink / raw)
Cc: Pratik Farkase, Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Pratik Farkase, linux-gpio,
devicetree, linux-kernel
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>
---
Changes in v4:
- Updated commit message to describe addition of `interrupt`
property
Changes in v3:
- Updated relative path filename to match actual path filename
- Added `interrupts` property
Changes in v2:
- Renamed file from `gpio-zevio.yaml` to `lsi,zevio-gpio.yaml`
- Fixed the space indentation in example
---
---
.../devicetree/bindings/gpio/gpio-zevio.txt | 16 -------
.../bindings/gpio/lsi,zevio-gpio.yaml | 44 +++++++++++++++++++
2 files changed, 44 insertions(+), 16 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-zevio.txt
create mode 100644 Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml
diff --git a/Documentation/devicetree/bindings/gpio/gpio-zevio.txt b/Documentation/devicetree/bindings/gpio/gpio-zevio.txt
deleted file mode 100644
index a37bd9ae2730..000000000000
--- a/Documentation/devicetree/bindings/gpio/gpio-zevio.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-Zevio GPIO controller
-
-Required properties:
-- compatible: Should be "lsi,zevio-gpio"
-- reg: Address and length of the register set for the device
-- #gpio-cells: Should be two. The first cell is the pin number and the
- second cell is used to specify optional parameters (currently unused).
-- gpio-controller: Marks the device node as a GPIO controller.
-
-Example:
- gpio: gpio@90000000 {
- compatible = "lsi,zevio-gpio";
- reg = <0x90000000 0x1000>;
- gpio-controller;
- #gpio-cells = <2>;
- };
diff --git a/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml b/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml
new file mode 100644
index 000000000000..37df0e6cfec5
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/lsi,zevio-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Zevio GPIO controller
+
+maintainers:
+ - Pratik Farkase <pratikfarkase94@gmail.com>
+
+properties:
+ compatible:
+ items:
+ - const: lsi,zevio-gpio
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ "#gpio-cells":
+ const: 2
+
+ gpio-controller: true
+
+required:
+ - compatible
+ - reg
+ - "#gpio-cells"
+ - gpio-controller
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ gpio@90000000 {
+ compatible = "lsi,zevio-gpio";
+ reg = <0x90000000 0x1000>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
2024-05-22 15:16 [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema Pratik Farkase
@ 2024-05-25 19:04 ` Krzysztof Kozlowski
2024-05-27 14:53 ` Bartosz Golaszewski
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-25 19:04 UTC (permalink / raw)
To: Pratik Farkase
Cc: Pratik Farkase, Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
On 22/05/2024 17:16, Pratik Farkase wrote:
> 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>
> ---
> Changes in v4:
> - Updated commit message to describe addition of `interrupt`
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
2024-05-22 15:16 [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema Pratik Farkase
2024-05-25 19:04 ` Krzysztof Kozlowski
@ 2024-05-27 14:53 ` Bartosz Golaszewski
[not found] ` <GVZP280MB0821C4746C5D27F84A8B9F8684F12@GVZP280MB0821.SWEP280.PROD.OUTLOOK.COM>
1 sibling, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-05-27 14:53 UTC (permalink / raw)
To: Pratik Farkase
Cc: Bartosz Golaszewski, Pratik Farkase, Linus Walleij,
Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-gpio, devicetree, linux-kernel
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Wed, 22 May 2024 17:16:13 +0200, Pratik Farkase wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
commit: e4608bbccf2b9331a4a43385ab15d06eab7761ac
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema
[not found] ` <GVZP280MB0821C4746C5D27F84A8B9F8684F12@GVZP280MB0821.SWEP280.PROD.OUTLOOK.COM>
@ 2024-05-28 10:51 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-28 10:51 UTC (permalink / raw)
To: Pratik Farkase, Bartosz Golaszewski, Pratik Farkase
Cc: Bartosz Golaszewski, Linus Walleij, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
On 28/05/2024 11:57, Pratik Farkase wrote:
> Hi Bartosz,
>
> May i know, which kernel tree have you applied the patch to? I am aware of Greg's tree hosted here: kernel/git/gregkh/tty.git<https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/>
See MAINTAINERS file in kernel repo.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-28 10:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-22 15:16 [PATCH v4] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema Pratik Farkase
2024-05-25 19:04 ` Krzysztof Kozlowski
2024-05-27 14:53 ` Bartosz Golaszewski
[not found] ` <GVZP280MB0821C4746C5D27F84A8B9F8684F12@GVZP280MB0821.SWEP280.PROD.OUTLOOK.COM>
2024-05-28 10:51 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).