[PATCH v5 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 v5 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, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
index f1a64c17366500cb0e02a0ca90da691fd992fe7d..ba55890d34bb41e14c3e8afde74111291e40ba7b 100644
--- a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
@@ -11,8 +11,12 @@ maintainers:
 
 properties:
   compatible:
-    const: cdns,gpio-r1p02
-
+    oneOf:
+      - const: cdns,gpio-r1p02
+      - items:
+          - enum:
+              - axiado,ax3000-gpio
+          - const: cdns,gpio-r1p02
   reg:
     maxItems: 1
 

-- 
2.25.1
Re: [PATCH v5 04/10] dt-bindings: gpio: cdns: add Axiado AX3000 GPIO variant
Posted by Krzysztof Kozlowski 3 months ago
On 03/07/2025 02:22, 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, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> index f1a64c17366500cb0e02a0ca90da691fd992fe7d..ba55890d34bb41e14c3e8afde74111291e40ba7b 100644
> --- a/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/cdns,gpio.yaml
> @@ -11,8 +11,12 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: cdns,gpio-r1p02
> -

Why? The blank space is the style we prefer, as visible in every binding.

> +    oneOf:
> +      - const: cdns,gpio-r1p02
> +      - items:
> +          - enum:
> +              - axiado,ax3000-gpio
> +          - const: cdns,gpio-r1p02
>    reg:

Best regards,
Krzysztof