Re: [PATCH 1/2] dt-bindings: gpio: Add Siflower SF19A2890 GPIO controller
From: Conor Dooley
Date: Wed Nov 04 2026 - 19:25:07 EST
On Wed, Nov 04, 2026 at 02:21:37AM -0500, Joseph Telaak via B4 Relay wrote:
> From: Chuanhong Guo <gch981213@xxxxxxxxx>
>
> Document the GPIO controller found on the Siflower SF19A2890 and other
> Siflower MIPS and RISC-V SoCs.
FYI, these other devices need their own compatible strings when a dts
for them is added.
>
> Signed-off-by: Chuanhong Guo <gch981213@xxxxxxxxx>
> [jt: from Chuanhong's siflower-7.1 branch; Joseph Telaak as the binding's
> maintainer, GPL-2.0-only for the deprecated GPL-2.0 SPDX identifier,
> example indented by four spaces, commit message, subject]
> Signed-off-by: Joseph Telaak <joseph@xxxxxxxxxx>
> ---
> .../bindings/gpio/siflower,sf19a2890-gpio.yaml | 84 ++++++++++++++++++++++
> 1 file changed, 84 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..6708d92fe
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/siflower,sf19a2890-gpio.yaml
> @@ -0,0 +1,84 @@
> +# 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
> +
> + gpio-controller: true
> + "#gpio-cells":
> + const: 2
> +
> + gpio-ranges: true
> +
> + reg:
> + maxItems: 1
Move this below compatible.
> +
> + interrupts:
> + description:
> + Interrupt mapping, one interrupt per 16 GPIOs.
> + minItems: 1
> + maxItems: 10
> +
> + clocks:
> + maxItems: 1
> +
> + resets:
> + maxItems: 1
> +
> + interrupt-controller: true
> +
> + "#interrupt-cells":
> + const: 2
> +
> + ngpios:
> + description:
> + The number of GPIOs available on the controller implementation.
> + minimum: 1
With no maximum?
> +
> +required:
> + - compatible
> + - clocks
> + - gpio-controller
> + - gpio-ranges
> + - interrupt-controller
> + - interrupts
> + - ngpios
> + - reg
> + - resets
> + - "#gpio-cells"
> + - "#interrupt-cells"
Please fix the ordering here too.
pw-bot: changes-requested
Thanks,
Conor.
> +
> +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>;
> + ngpios = <49>;
> + gpio-ranges = <&pinctrl 0 0 49>;
> +
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
>
> --
> Git-155)
>
>
Attachment:
signature.asc
Description: PGP signature