[PATCH v4 04/10] dt-bindings: gpio: cdns: add Axiado AX3000 GPIO variant

Harshit Shah posted 10 patches 3 months, 1 week ago
There is a newer version of this series
[PATCH v4 04/10] dt-bindings: gpio: cdns: add Axiado AX3000 GPIO variant
Posted by Harshit Shah 3 months, 1 week ago
Add binding for Axiado AX3000 GPIO controller. So far, no changes
are known, so it can fallback to default compatible.

Signed-off-by: Harshit Shah <hshah@axiado.com>
---
 Documentation/devicetree/bindings/gpio/cdns,gpio.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
index f1a64c17366500cb0e02a0ca90da691fd992fe7d..16c311a252921ba65d2f9f1b34a07a4a940432f3 100644
--- a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
@@ -11,7 +11,13 @@ maintainers:
 
 properties:
   compatible:
-    const: cdns,gpio-r1p02
+    oneOf:
+      - description: Cadence GPIO controller
+        const: cdns,gpio-r1p02
+      - description: Axiado AX3000 GPIO controller
+        items:
+          - const: axiado,ax3000-gpio
+          - const: cdns,gpio-r1p02
 
   reg:
     maxItems: 1

-- 
2.25.1
Re: [PATCH v4 04/10] dt-bindings: gpio: cdns: add Axiado AX3000 GPIO variant
Posted by Krzysztof Kozlowski 3 months, 1 week ago
On 01/07/2025 22:27, Harshit Shah wrote:
> Add binding for Axiado AX3000 GPIO controller. So far, no changes
> are known, so it can fallback to default compatible.
> 
> Signed-off-by: Harshit Shah <hshah@axiado.com>
> ---
>  Documentation/devicetree/bindings/gpio/cdns,gpio.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> index f1a64c17366500cb0e02a0ca90da691fd992fe7d..16c311a252921ba65d2f9f1b34a07a4a940432f3 100644
> --- a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> @@ -11,7 +11,13 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: cdns,gpio-r1p02
> +    oneOf:
> +      - description: Cadence GPIO controller
> +        const: cdns,gpio-r1p02
> +      - description: Axiado AX3000 GPIO controller

Drop both descriptions, obvious.

> +        items:
> +          - const: axiado,ax3000-gpio

This should be enum, it will grow.

> +          - const: cdns,gpio-r1p02
>  
>    reg:
>      maxItems: 1
> 


Best regards,
Krzysztof