Skip to contentSkip to conversation

dt-bindings: gpio: cavium,thunder-8890: Convert to DT schema

PATCH In review Shi Hao 3 participants 4 messages Mar 30 – Apr 7

Subsystems (2)
lore
Share & tools
lore

Shi Hao

author
#0 lore raw

PATCH v2 1/1 dt-bindings: gpio: cavium,thunder-8890: Convert to DT schema

Convert Cavium ThunderX GPIO bindings to DT schema.

---

v2:
- Rename schema file based on compatible string
- Wrap commit message body as per kernel patch guidelines
- Use appropriate maintainer name and email address in DT schema.
- Change commit subject as per guidelines
- Fix $id path
- Rebased on linux-next

Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

---
 .../gpio/cavium,thunder-8890-gpio.yaml        | 45 +++++++++++++++++++
 .../bindings/gpio/gpio-thunderx.txt           | 27 -----------
 2 files changed, 45 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 +45 -0
new file mode 100644
index 000000000000..0d42ddaeb23a
@@ -0,0 +1,45 @@
+# 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/OCTEON-TX GPIO Controller
+
+maintainers:
+  - Robert Richter <[email protected]>
+
+properties:
+  compatible:
+    const: cavium,thunder-8890-gpio
+
+  reg:
+    maxItems: 1
+
+  gpio-controller: true
+
+  '#gpio-cells':
+    const: 2
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 2
+
+required:
+  - 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
deleted file mode 100644
index 3f883ae29d11..000000000000
@@ -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>;
-};
Signature · 1 line
2.53.0
#1 lore raw
Quoted 13 lines · Shi Hao

Convert Cavium ThunderX GPIO bindings to DT schema.

---

v2:
- Rename schema file based on compatible string
- Wrap commit message body as per kernel patch guidelines
- Use appropriate maintainer name and email address in DT schema.
- Change commit subject as per guidelines
- Fix $id path
- Rebased on linux-next

Quoted 6 lines

Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

---
 .../gpio/cavium,thunder-8890-gpio.yaml        | 45 +++++++++++++++++++
 .../bindings/gpio/gpio-thunderx.txt           | 27 -----------

This binding is odd and not used, so you should follow guidelines I gave more than a year ago and updated recently and NOT convert it.

Or rather answer - why this cannot be removed instead? What is the benefit of this binding? Is any other project using it?

Best regards,
Krzysztof

author
#2 lore raw
Quoted 11 lines · Krzysztof Kozlowski

This binding is odd and not used, so you should follow guidelines I gave more than a year ago and updated recently and NOT convert it.

Or rather answer - why this cannot be removed instead? What is the benefit of this binding? Is any other project using it?

Best regards,
Krzysztof

Indeed this binding has no active user and i think it is good to be removed entirely because no driver no dts sources are using it , it seems abandoned. Please let me know if I need to resend it if it needs to be removed.Thanks for your time.

Best regards,
Seihae no driver no dts sources are using it , it seens abandoned. Please let me know if i need to resend it if it neeeds to be removed.Thanks for your time.

maintainer
#3 lore raw
Quoted 10 lines · ShiHao
Quoted 8 lines · Krzysztof Kozlowski

This binding is odd and not used, so you should follow guidelines I gave more than a year ago and updated recently and NOT convert it.

Or rather answer - why this cannot be removed instead? What is the benefit of this binding? Is any other project using it?

Quoted 8 lines
Quoted 3 lines

Best regards,
Krzysztof

Indeed this binding has no active user and i think it is good to be removed entirely because no driver no dts sources are using it , it seems abandoned. Please let me know if I need to resend it if it needs to be removed.Thanks for your time.

Please send a patch removing it. Thanks.

Rob