linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges
@ 2024-02-06 11:25 Naresh Solanki
  2024-02-06 11:45 ` Krzysztof Kozlowski
  2024-02-08 13:31 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Naresh Solanki @ 2024-02-06 11:25 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Patrick Rudolph
  Cc: mazziesaccount, Naresh Solanki, linux-gpio, devicetree,
	linux-kernel

Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio
reserved ranges.
Add input-enable property to allow configuring a pin as input.
Also update example.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
---
 .../bindings/pinctrl/cypress,cy8c95x0.yaml    | 24 +++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml
index 7f30ec2f1e54..700ac86c26b6 100644
--- a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml
@@ -45,7 +45,8 @@ properties:
     maxItems: 1
 
   gpio-reserved-ranges:
-    maxItems: 1
+    minItems: 1
+    maxItems: 60
 
   vdd-supply:
     description:
@@ -85,6 +86,8 @@ patternProperties:
 
       bias-disable: true
 
+      input-enable: true
+
       output-high: true
 
       output-low: true
@@ -133,6 +136,23 @@ examples:
         interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
         interrupt-controller;
         vdd-supply = <&p3v3>;
-        gpio-reserved-ranges = <5 1>;
+        gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>;
+
+        pinctrl-0 = <&U62160_pins>, <&U62160_ipins>;
+        pinctrl-names = "default";
+
+        U62160_pins: cfg-pins {
+          pins = "gp03", "gp16", "gp20", "gp50", "gp51";
+          function = "gpio";
+          input-enable;
+          bias-pull-up;
+        };
+
+        U62160_ipins: icfg-pins {
+          pins = "gp04", "gp17", "gp21", "gp52", "gp53";
+          function = "gpio";
+          input-enable;
+          bias-pull-up;
+        };
       };
     };

base-commit: 99bd3cb0d12e85d5114425353552121ec8f93adc
-- 
2.42.0


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

* Re: [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges
  2024-02-06 11:25 [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges Naresh Solanki
@ 2024-02-06 11:45 ` Krzysztof Kozlowski
  2024-02-08 13:31 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-06 11:45 UTC (permalink / raw)
  To: Naresh Solanki, Linus Walleij, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Patrick Rudolph
  Cc: mazziesaccount, linux-gpio, devicetree, linux-kernel

On 06/02/2024 12:25, Naresh Solanki wrote:
> Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio
> reserved ranges.
> Add input-enable property to allow configuring a pin as input.
> Also update example.
> 
> Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
> ---

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges
  2024-02-06 11:25 [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges Naresh Solanki
  2024-02-06 11:45 ` Krzysztof Kozlowski
@ 2024-02-08 13:31 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2024-02-08 13:31 UTC (permalink / raw)
  To: Naresh Solanki
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Patrick Rudolph,
	mazziesaccount, linux-gpio, devicetree, linux-kernel

On Tue, Feb 6, 2024 at 12:25 PM Naresh Solanki
<naresh.solanki@9elements.com> wrote:

> Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio
> reserved ranges.
> Add input-enable property to allow configuring a pin as input.
> Also update example.
>
> Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2024-02-08 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 11:25 [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges Naresh Solanki
2024-02-06 11:45 ` Krzysztof Kozlowski
2024-02-08 13:31 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).