]> www.infradead.org Git - linux.git/commitdiff
dt-bindings: pinctrl: Unify "input-debounce" schema
authorRob Herring <robh@kernel.org>
Wed, 24 Jan 2024 19:01:04 +0000 (13:01 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 31 Jan 2024 08:09:57 +0000 (09:09 +0100)
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>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240124190106.1540585-1-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml

index bb61a30321a1c572159b614f39567b4af417e972..482acda88e73284017765c35ba32963e8b48c367 100644 (file)
@@ -93,7 +93,8 @@ properties:
 
           input-schmitt-disable: true
 
-          input-debounce: true
+          input-debounce:
+            maxItems: 1
 
           output-low: true
 
index 3e8472898800c504f93fae3efa2e2b45d7a4282c..20cf0102aa63e4bd17d72dbc55ce48f646ef7c9d 100644 (file)
@@ -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
 
index 7b7f840ffc4cf1eaef61affdb8c4bfeb1c9ed3af..08442c880f07384fc369fd419ad703d8fba70a4f 100644 (file)
@@ -103,7 +103,8 @@ patternProperties:
         items:
           pattern: "^gpio1?[0-9]{1,2}$"
 
-      input-debounce: true
+      input-debounce:
+        maxItems: 1
 
     additionalProperties: false
 
index be81ed22a036a3f3e073725f697e33954160c554..d0af21a564b44fe18bad311e8299723c343b78e9 100644 (file)
@@ -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