[PATCH v2 1/2] dt-bindings: gpio: Add Siflower SF19A2890 GPIO controller
From: Joseph Telaak via B4 Relay
Date: Mon Nov 09 2026 - 15:10:23 EST
From: Chuanhong Guo <gch981213@xxxxxxxxx>
Document the GPIO controller of the Siflower SF19A2890. Siflower's SF21
RISC-V SoCs have the same controller, and will get compatibles of their
own with their device trees.
Signed-off-by: Chuanhong Guo <gch981213@xxxxxxxxx>
[Joseph Telaak:
- take it from Chuanhong's siflower-7.1 branch
- list myself as the binding's maintainer
- use GPL-2.0-only instead of the deprecated GPL-2.0 SPDX
identifier
- indent the example by four spaces
- drop the ngpios property, which the compatible implies, take
exactly four interrupts, and order the properties as in required
- commit message and subject]
Signed-off-by: Joseph Telaak <joseph@xxxxxxxxxx>
---
.../bindings/gpio/siflower,sf19a2890-gpio.yaml | 76 ++++++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 82 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpio/siflower,sf19a2890-gpio.yaml b/Documentation/devicetree/bindings/gpio/siflower,sf19a2890-gpio.yaml
new file mode 100644
index 000000000..830a049ae
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/siflower,sf19a2890-gpio.yaml
@@ -0,0 +1,76 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/siflower,sf19a2890-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Siflower SF19A2890 GPIO controller
+
+maintainers:
+ - Joseph Telaak <joseph@xxxxxxxxxx>
+
+properties:
+ compatible:
+ const: siflower,sf19a2890-gpio
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ description: One interrupt per group of 16 GPIOs.
+ maxItems: 4
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+
+ gpio-ranges: true
+
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 2
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - resets
+ - gpio-controller
+ - "#gpio-cells"
+ - gpio-ranges
+ - interrupt-controller
+ - "#interrupt-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/interrupt-controller/mips-gic.h>
+
+ gpio@19d00000 {
+ compatible = "siflower,sf19a2890-gpio";
+ reg = <0x19d00000 0x100000>;
+ interrupts = <GIC_SHARED 246 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SHARED 247 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SHARED 248 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SHARED 249 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&gpioclk 0>;
+ resets = <&gpiorst 0>;
+
+ gpio-controller;
+ #gpio-cells = <2>;
+ gpio-ranges = <&pinctrl 0 0 49>;
+
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index b5a6dc379..4193b433c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25706,6 +25706,12 @@ N: sifive
K: fu[57]40
K: [^@]sifive
+SIFLOWER GPIO DRIVER
+M: Joseph Telaak <joseph@xxxxxxxxxx>
+L: linux-gpio@xxxxxxxxxxxxxxx
+S: Maintained
+F: Documentation/devicetree/bindings/gpio/siflower,sf19a2890-gpio.yaml
+
SILEAD TOUCHSCREEN DRIVER
M: Hans de Goede <hansg@xxxxxxxxxx>
L: linux-input@xxxxxxxxxxxxxxx
--
Git-155)