[PATCH v2 01/22] dt-bindings: pincfg-node: Add property 'input-debounce-nanoseconds'
Conor Dooley
conor at kernel.org
Thu May 14 11:35:47 PDT 2026
On Thu, May 14, 2026 at 04:11:57AM -0700, Changhuang Liang wrote:
> Add the property 'input-debounce-nanoseconds' to specify debounce time
> in nanoseconds as an alternative to the existing 'input-debounce' which
> uses microseconds. Make the new property unavailable when the existing
> property 'input-debounce' is selected to prevent conflicting definitions.
>
> Signed-off-by: Changhuang Liang <changhuang.liang at starfivetech.com>
> ---
> .../devicetree/bindings/pinctrl/pincfg-node.yaml | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
> index 97dbce8a261f..4db66cdf438c 100644
> --- a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
> @@ -104,6 +104,11 @@ properties:
> description: Takes the debounce time in usec as argument or 0 to disable
> debouncing
>
> + input-debounce-nanoseconds:
-ns is the standard suffix here, and if you use it you can drop the ref
below.
pw-bot: changes-requested
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + description: Takes the debounce time in nsec as argument or 0 to disable
> + debouncing
> +
> power-source:
> $ref: /schemas/types.yaml#/definitions/uint32
> description: select between different power supplies
> @@ -214,6 +219,13 @@ allOf:
> input-schmitt-enable: false
> input-schmitt-microvolt: false
>
> + - if:
> + required:
> + - input-debounce
> + then:
> + properties:
> + input-debounce-nanoseconds: false
> +
> - if:
> required:
> - drive-strength
> --
> 2.25.1
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20260514/a5c934f6/attachment.sig>
More information about the linux-riscv
mailing list