diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-05-30 16:48:46 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-06-23 15:44:51 +0200 |
commit | 05b743db9d8cc4e51b3eb77889d24ab9aa2bf169 (patch) | |
tree | 0b5e6ff7fe9e2b53dc1a972f964855cdd8b7d4d0 /Documentation/devicetree | |
parent | pwm: pca9685: Switch i2c driver back to use .probe() (diff) | |
download | linux-05b743db9d8cc4e51b3eb77889d24ab9aa2bf169.tar.xz linux-05b743db9d8cc4e51b3eb77889d24ab9aa2bf169.zip |
dt-bindings: pwm: restrict node name suffixes
Make the pattern matching node names a bit stricter to improve DTS
consistency. The pattern is restricted to:
1. Only one unit address or one -N suffix,
2. -N suffixes to decimal numbers.
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentation/devicetree/bindings/pwm/pwm.yaml index 3c01f85029e5..abd9fa873354 100644 --- a/Documentation/devicetree/bindings/pwm/pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/pwm.yaml @@ -13,7 +13,7 @@ select: false properties: $nodename: - pattern: "^pwm(@.*|-[0-9a-f])*$" + pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$" "#pwm-cells": description: |