All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
@ 2021-10-15  9:27 ` Michal Simek
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Simek @ 2021-10-15  9:27 UTC (permalink / raw)
  To: linux-kernel, monstr, michal.simek, git
  Cc: Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Shubhrajyoti Datta, Srinivas Neeli, devicetree, linux-arm-kernel,
	linux-gpio

Number of lines depends on compatible string from 58 to 174.
That's why it is checked based on it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
index da95b951c23e..29c27eadbac8 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
@@ -28,6 +28,11 @@ properties:
 
   gpio-controller: true
 
+  gpio-line-names:
+    description: strings describing the names of each gpio line
+    minItems: 58
+    maxItems: 174
+
   interrupt-controller: true
 
   "#interrupt-cells":
@@ -39,6 +44,51 @@ properties:
   power-domains:
     maxItems: 1
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,zynqmp-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 174
+          maxItems: 174
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,zynq-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 118
+          maxItems: 118
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,versal-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 58
+          maxItems: 58
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,pmc-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 116
+          maxItems: 116
+
 required:
   - compatible
   - reg
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
@ 2021-10-15  9:27 ` Michal Simek
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Simek @ 2021-10-15  9:27 UTC (permalink / raw)
  To: linux-kernel, monstr, michal.simek, git
  Cc: Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Shubhrajyoti Datta, Srinivas Neeli, devicetree, linux-arm-kernel,
	linux-gpio

Number of lines depends on compatible string from 58 to 174.
That's why it is checked based on it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
index da95b951c23e..29c27eadbac8 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
@@ -28,6 +28,11 @@ properties:
 
   gpio-controller: true
 
+  gpio-line-names:
+    description: strings describing the names of each gpio line
+    minItems: 58
+    maxItems: 174
+
   interrupt-controller: true
 
   "#interrupt-cells":
@@ -39,6 +44,51 @@ properties:
   power-domains:
     maxItems: 1
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,zynqmp-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 174
+          maxItems: 174
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,zynq-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 118
+          maxItems: 118
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,versal-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 58
+          maxItems: 58
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - xlnx,pmc-gpio-1.0
+    then:
+      properties:
+        gpio-line-names:
+          minItems: 116
+          maxItems: 116
+
 required:
   - compatible
   - reg
-- 
2.33.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
  2021-10-15  9:27 ` Michal Simek
@ 2021-10-26 21:20   ` Rob Herring
  -1 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2021-10-26 21:20 UTC (permalink / raw)
  To: Michal Simek
  Cc: devicetree, Linus Walleij, linux-gpio, Bartosz Golaszewski,
	monstr, linux-arm-kernel, git, Srinivas Neeli, Rob Herring,
	Shubhrajyoti Datta, linux-kernel

On Fri, 15 Oct 2021 11:27:23 +0200, Michal Simek wrote:
> Number of lines depends on compatible string from 58 to 174.
> That's why it is checked based on it.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
>  .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
@ 2021-10-26 21:20   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2021-10-26 21:20 UTC (permalink / raw)
  To: Michal Simek
  Cc: devicetree, Linus Walleij, linux-gpio, Bartosz Golaszewski,
	monstr, linux-arm-kernel, git, Srinivas Neeli, Rob Herring,
	Shubhrajyoti Datta, linux-kernel

On Fri, 15 Oct 2021 11:27:23 +0200, Michal Simek wrote:
> Number of lines depends on compatible string from 58 to 174.
> That's why it is checked based on it.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
>  .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
  2021-10-15  9:27 ` Michal Simek
@ 2022-05-16 14:52   ` Michal Simek
  -1 siblings, 0 replies; 6+ messages in thread
From: Michal Simek @ 2022-05-16 14:52 UTC (permalink / raw)
  To: LKML, Michal Simek, git
  Cc: Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Shubhrajyoti Datta, Srinivas Neeli, DTML, linux-arm,
	open list:GPIO SUBSYSTEM

pá 15. 10. 2021 v 11:27 odesílatel Michal Simek
<michal.simek@xilinx.com> napsal:
>
> Number of lines depends on compatible string from 58 to 174.
> That's why it is checked based on it.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
>  1 file changed, 50 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> index da95b951c23e..29c27eadbac8 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> @@ -28,6 +28,11 @@ properties:
>
>    gpio-controller: true
>
> +  gpio-line-names:
> +    description: strings describing the names of each gpio line
> +    minItems: 58
> +    maxItems: 174
> +
>    interrupt-controller: true
>
>    "#interrupt-cells":
> @@ -39,6 +44,51 @@ properties:
>    power-domains:
>      maxItems: 1
>
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,zynqmp-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 174
> +          maxItems: 174
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,zynq-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 118
> +          maxItems: 118
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,versal-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 58
> +          maxItems: 58
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,pmc-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 116
> +          maxItems: 116
> +
>  required:
>    - compatible
>    - reg
> --
> 2.33.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names
@ 2022-05-16 14:52   ` Michal Simek
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Simek @ 2022-05-16 14:52 UTC (permalink / raw)
  To: LKML, Michal Simek, git
  Cc: Bartosz Golaszewski, Linus Walleij, Rob Herring,
	Shubhrajyoti Datta, Srinivas Neeli, DTML, linux-arm,
	open list:GPIO SUBSYSTEM

pá 15. 10. 2021 v 11:27 odesílatel Michal Simek
<michal.simek@xilinx.com> napsal:
>
> Number of lines depends on compatible string from 58 to 174.
> That's why it is checked based on it.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  .../devicetree/bindings/gpio/gpio-zynq.yaml   | 50 +++++++++++++++++++
>  1 file changed, 50 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> index da95b951c23e..29c27eadbac8 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
> @@ -28,6 +28,11 @@ properties:
>
>    gpio-controller: true
>
> +  gpio-line-names:
> +    description: strings describing the names of each gpio line
> +    minItems: 58
> +    maxItems: 174
> +
>    interrupt-controller: true
>
>    "#interrupt-cells":
> @@ -39,6 +44,51 @@ properties:
>    power-domains:
>      maxItems: 1
>
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,zynqmp-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 174
> +          maxItems: 174
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,zynq-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 118
> +          maxItems: 118
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,versal-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 58
> +          maxItems: 58
> +
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - xlnx,pmc-gpio-1.0
> +    then:
> +      properties:
> +        gpio-line-names:
> +          minItems: 116
> +          maxItems: 116
> +
>  required:
>    - compatible
>    - reg
> --
> 2.33.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-16 14:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  9:27 [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names Michal Simek
2021-10-15  9:27 ` Michal Simek
2021-10-26 21:20 ` Rob Herring
2021-10-26 21:20   ` Rob Herring
2022-05-16 14:52 ` Michal Simek
2022-05-16 14:52   ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.