Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pinctrl: Unify "input-debounce" schema

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>

authored by

Rob Herring and committed by
Linus Walleij
736ed7ce 47eed112

+5 -4
+2 -1
Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
··· 93 93 94 94 input-schmitt-disable: true 95 95 96 - input-debounce: true 96 + input-debounce: 97 + maxItems: 1 97 98 98 99 output-low: true 99 100
-1
Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
··· 152 152 description: 153 153 Debouncing periods in microseconds, one period per interrupt 154 154 bank found in the controller 155 - $ref: /schemas/types.yaml#/definitions/uint32-array 156 155 minItems: 1 157 156 maxItems: 4 158 157
+2 -1
Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml
··· 103 103 items: 104 104 pattern: "^gpio1?[0-9]{1,2}$" 105 105 106 - input-debounce: true 106 + input-debounce: 107 + maxItems: 1 107 108 108 109 additionalProperties: false 109 110
+1 -1
Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
··· 97 97 description: disable schmitt-trigger mode 98 98 99 99 input-debounce: 100 - $ref: /schemas/types.yaml#/definitions/uint32 100 + $ref: /schemas/types.yaml#/definitions/uint32-array 101 101 description: Takes the debounce time in usec as argument or 0 to disable 102 102 debouncing 103 103