[PATCH v2 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Nov 21 06:40:00 PST 2022
On Mon, Nov 21, 2022 at 01:55:24PM +0200, Tony Lindgren wrote:
> Let's allow node numbering in decimal format too.
>
> Simple human-readable increments/IDs are usually decimal, hex is only for
> addresses as noted by Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>.
>
> Cc: Thierry Reding <thierry.reding at gmail.com>
> Cc: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> Signed-off-by: Tony Lindgren <tony at atomide.com>
> ---
> Documentation/devicetree/bindings/pwm/pwm.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentation/devicetree/bindings/pwm/pwm.yaml
> --- 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-9a-f]|1[0-5]))*$"
I wonder why you don't make this:
+ pattern: "^pwm(@.*|-[0-9a-f]*)$"
Is there a use case to match
pwm-1-2-3-4-5
?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20221121/efede340/attachment.sig>
More information about the linux-arm-kernel
mailing list