dt-bindings: gpio: convert Cavium ThunderX GPIO binding to YAML
Subsystems (2)
PATCH 1/1 dt-bindings: gpio: convert Cavium ThunderX GPIO binding to YAML
Convert Cavium ThunderX GPIO text based device tree node to YAML schema format, ensuring validation and consistency across Device Tree.
--- .../gpio/cavium-thunder-8890-gpio.yaml | 52 +++++++++++++++++++ .../bindings/gpio/gpio-thunderx.txt | 27 ---------- 2 files changed, 52 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-thunderx.txt
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +52 -0
@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/cavium-thunder-8890-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cavium ThunderX GPIO controller + +description: | + Device Tree binding for the GPIO controller found in + Cavium ThunderX and OCTEON-TX SoCs. + +maintainers: + - Linus Walleij <[email protected]> + - Rob Herring <[email protected]> + +properties: + compatible: + enum: + - cavium,thunder-8890-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +examples: + - | + gpio_6_0: gpio@6,0 { + compatible = "cavium,thunder-8890-gpio"; + reg = <0x3000 0x100>; /* DEVFN = 0x30 (6:0) */ + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + };
Documentation/devicetree/bindings/gpio/gpio-thunderx.txt deleted +0 -27
@@ -1,27 +0,0 @@ -Cavium ThunderX/OCTEON-TX GPIO controller bindings - -Required Properties: -- reg: The controller bus address. -- gpio-controller: Marks the device node as a GPIO controller. -- #gpio-cells: Must be 2. - - First cell is the GPIO pin number relative to the controller. - - Second cell is a standard generic flag bitfield as described in gpio.txt. - -Optional Properties: -- compatible: "cavium,thunder-8890-gpio", unused as PCI driver binding is used. -- interrupt-controller: Marks the device node as an interrupt controller. -- #interrupt-cells: Must be present and have value of 2 if - "interrupt-controller" is present. - - First cell is the GPIO pin number relative to the controller. - - Second cell is triggering flags as defined in interrupts.txt. - -Example: - -gpio_6_0: gpio@6,0 { - compatible = "cavium,thunder-8890-gpio"; - reg = <0x3000 0 0 0 0>; /* DEVFN = 0x30 (6:0) */ - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; -};
--
2.53.0
Quoted 3 lines · Shi Hao
Convert Cavium ThunderX GPIO text based device tree node to YAML schema format, ensuring validation and consistency across Device Tree.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
Is this part of some LFX/GSoC program and thus should be first reviewed by your mentors?
Quoted 7 lines
Signed-off-by Shi Hao <[email protected]>--- .../gpio/cavium-thunder-8890-gpio.yaml | 52 +++++++++++++++++++ .../bindings/gpio/gpio-thunderx.txt | 27 ---------- 2 files changed, 52 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml
Filename based on compatible,
Quoted 8 lines
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-thunderx.txtDocumentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +0
-0
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml line 9
Quoted 9 lines
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +9
-0@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/cavium-thunder-8890-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cavium ThunderX GPIO controller + +description: |
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml line 10
Quoted 1 line
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +1
-0+ Device Tree binding for the GPIO controller found in
s/Device Tree binding for// because we do not need description of DT binding that it is a DT binding.
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml line 15
Quoted 5 lines
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +5
-0+ Cavium ThunderX and OCTEON-TX SoCs. + +maintainers: + - Linus Walleij <[email protected]> + - Rob Herring <[email protected]>
You cannot have here subsystem maintainers. This needs platform or driver maintainers.
Quoted 14 lines
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +14
-0+ +properties: + compatible: + enum: + - cavium,thunder-8890-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 +
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml line 39
Quoted 10 lines
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +10
-0+ interrupt-controller: true + + "#interrupt-cells": + const: 2 + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells'
Use consistent quotes, either ' or "
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml line 47
Quoted 8 lines
Documentation/devicetree/bindings/gpio/cavium-thunder-8890-gpio.yaml new file +8
-0+ +additionalProperties: false + +examples: + - | + gpio_6_0: gpio@6,0 { + compatible = "cavium,thunder-8890-gpio"; + reg = <0x3000 0x100>; /* DEVFN = 0x30 (6:0) */
I have doubts this was checked with W=1.
Best regards,
Krzysztof
Quoted 11 lines · Krzysztof Kozlowski
Quoted 3 lines · Shi Hao
Convert Cavium ThunderX GPIO text based device tree node to YAML schema format, ensuring validation and consistency across Device Tree.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597Is this part of some LFX/GSoC program and thus should be first reviewed by your mentors?
I see GSoC:
https://lore.kernel.org/all/aapjuiq0JSVWfmWA@fedora/
so which mentors reviewed this patch?
One more thing - subject: there is no YAML here. Please read submitting patches in DT dir.
Best regards,
Krzysztof
Quoted 9 lines · Shi Hao
Convert Cavium ThunderX GPIO text based device tree node to YAML schema format, ensuring validation and consistency across Device Tree.
Signed-off-by Shi Hao <[email protected]>--- .../gpio/cavium-thunder-8890-gpio.yaml | 52 +++++++++++++++++++ .../bindings/gpio/gpio-thunderx.txt | 27 ---------- 2 files changed, 52 insertions(+), 27 deletions(-)
Also same mistakes here, no checkpatch.
There were no follow ups, no comments from your side. Do you read the replies people give you?
Best regards,
Krzysztof