linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema
@ 2024-01-24 19:01 Rob Herring
  2024-01-24 19:01 ` [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate" Rob Herring
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Rob Herring @ 2024-01-24 19:01 UTC (permalink / raw)
  To: Charles Keepax, Richard Fitzgerald, Linus Walleij,
	Krzysztof Kozlowski, Conor Dooley, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches
  Cc: alsa-devel, linux-gpio, devicetree, linux-kernel, openbmc

nuvoton,npcm845-pinctrl defines the common "input-debounce" property as
an array rather than an scalar. Update the common definition to expand
it to an uint32-array, and update all the users of the property with
array constraints.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml   | 3 ++-
 .../devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml   | 1 -
 .../devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml   | 3 ++-
 Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml     | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml b/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
index bb61a30321a1..482acda88e73 100644
--- a/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
@@ -93,7 +93,8 @@ properties:
 
           input-schmitt-disable: true
 
-          input-debounce: true
+          input-debounce:
+            maxItems: 1
 
           output-low: true
 
diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
index 3e8472898800..20cf0102aa63 100644
--- a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
@@ -152,7 +152,6 @@ patternProperties:
         description:
           Debouncing periods in microseconds, one period per interrupt
           bank found in the controller
-        $ref: /schemas/types.yaml#/definitions/uint32-array
         minItems: 1
         maxItems: 4
 
diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml
index 7b7f840ffc4c..08442c880f07 100644
--- a/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml
@@ -103,7 +103,8 @@ patternProperties:
         items:
           pattern: "^gpio1?[0-9]{1,2}$"
 
-      input-debounce: true
+      input-debounce:
+        maxItems: 1
 
     additionalProperties: false
 
diff --git a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
index be81ed22a036..d0af21a564b4 100644
--- a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
@@ -97,7 +97,7 @@ properties:
     description: disable schmitt-trigger mode
 
   input-debounce:
-    $ref: /schemas/types.yaml#/definitions/uint32
+    $ref: /schemas/types.yaml#/definitions/uint32-array
     description: Takes the debounce time in usec as argument or 0 to disable
       debouncing
 
-- 
2.43.0


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

* [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate"
  2024-01-24 19:01 [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Rob Herring
@ 2024-01-24 19:01 ` Rob Herring
  2024-01-25 10:28   ` Krzysztof Kozlowski
  2024-01-25 10:27 ` [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2024-01-24 19:01 UTC (permalink / raw)
  To: Charles Keepax, Richard Fitzgerald, Linus Walleij,
	Krzysztof Kozlowski, Conor Dooley, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches
  Cc: alsa-devel, linux-gpio, devicetree, linux-kernel, openbmc

pincfg-node.yaml already defines the type for "slew-rate", so drop the
type from the nuvoton,npcm845-pinctrl binding.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
index 20cf0102aa63..b55d9c316659 100644
--- a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
@@ -159,7 +159,6 @@ patternProperties:
         description: |
           0: Low rate
           1: High rate
-        $ref: /schemas/types.yaml#/definitions/uint32
         enum: [0, 1]
 
       drive-strength:
-- 
2.43.0


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

* Re: [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema
  2024-01-24 19:01 [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Rob Herring
  2024-01-24 19:01 ` [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate" Rob Herring
@ 2024-01-25 10:27 ` Krzysztof Kozlowski
  2024-01-25 10:38 ` Charles Keepax
  2024-01-31  8:10 ` Linus Walleij
  3 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-25 10:27 UTC (permalink / raw)
  To: Rob Herring, Charles Keepax, Richard Fitzgerald, Linus Walleij,
	Krzysztof Kozlowski, Conor Dooley, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches
  Cc: alsa-devel, linux-gpio, devicetree, linux-kernel, openbmc

On 24/01/2024 20:01, Rob Herring wrote:
> nuvoton,npcm845-pinctrl defines the common "input-debounce" property as
> an array rather than an scalar. Update the common definition to expand
> it to an uint32-array, and update all the users of the property with
> array constraints.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

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

Best regards,
Krzysztof


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

* Re: [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate"
  2024-01-24 19:01 ` [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate" Rob Herring
@ 2024-01-25 10:28   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-25 10:28 UTC (permalink / raw)
  To: Rob Herring, Charles Keepax, Richard Fitzgerald, Linus Walleij,
	Krzysztof Kozlowski, Conor Dooley, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches
  Cc: alsa-devel, linux-gpio, devicetree, linux-kernel, openbmc

On 24/01/2024 20:01, Rob Herring wrote:
> pincfg-node.yaml already defines the type for "slew-rate", so drop the
> type from the nuvoton,npcm845-pinctrl binding.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---


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

Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema
  2024-01-24 19:01 [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Rob Herring
  2024-01-24 19:01 ` [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate" Rob Herring
  2024-01-25 10:27 ` [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Krzysztof Kozlowski
@ 2024-01-25 10:38 ` Charles Keepax
  2024-01-31  8:10 ` Linus Walleij
  3 siblings, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2024-01-25 10:38 UTC (permalink / raw)
  To: Rob Herring
  Cc: Richard Fitzgerald, Linus Walleij, Krzysztof Kozlowski,
	Conor Dooley, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches, alsa-devel, linux-gpio,
	devicetree, linux-kernel, openbmc

On Wed, Jan 24, 2024 at 01:01:04PM -0600, Rob Herring wrote:
> nuvoton,npcm845-pinctrl defines the common "input-debounce" property as
> an array rather than an scalar. Update the common definition to expand
> it to an uint32-array, and update all the users of the property with
> array constraints.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml   | 3 ++-

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

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

* Re: [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema
  2024-01-24 19:01 [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Rob Herring
                   ` (2 preceding siblings ...)
  2024-01-25 10:38 ` Charles Keepax
@ 2024-01-31  8:10 ` Linus Walleij
  3 siblings, 0 replies; 6+ messages in thread
From: Linus Walleij @ 2024-01-31  8:10 UTC (permalink / raw)
  To: Rob Herring
  Cc: Charles Keepax, Richard Fitzgerald, Krzysztof Kozlowski,
	Conor Dooley, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair,
	Jonathan Neuschäfer, patches, alsa-devel, linux-gpio,
	devicetree, linux-kernel, openbmc

On Wed, Jan 24, 2024 at 8:01 PM Rob Herring <robh@kernel.org> wrote:

> nuvoton,npcm845-pinctrl defines the common "input-debounce" property as
> an array rather than an scalar. Update the common definition to expand
> it to an uint32-array, and update all the users of the property with
> array constraints.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Patches applied, thanks for fixing this!

Yours,
Linus Walleij

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

end of thread, other threads:[~2024-01-31  8:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24 19:01 [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Rob Herring
2024-01-24 19:01 ` [PATCH 2/2] dt-bindings: pinctrl: nuvoton,npcm845: Drop redundant type for "slew-rate" Rob Herring
2024-01-25 10:28   ` Krzysztof Kozlowski
2024-01-25 10:27 ` [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Krzysztof Kozlowski
2024-01-25 10:38 ` Charles Keepax
2024-01-31  8:10 ` 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).