From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Mark Brown <broonie@kernel.org>, Dipen Patel <dipenp@nvidia.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Dilip Kota <eswara.kota@linux.intel.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-rtc@vger.kernel.org, alsa-devel@alsa-project.org,
linux-spi@vger.kernel.org, timestamp@lists.linux.dev,
linux-watchdog@vger.kernel.org, Rob Herring <robh@kernel.org>,
Tony Lindgren <tony@atomide.com>,
Oleksij Rempel <o.rempel@pengutronix.de>
Subject: Re: [PATCH 2/7] dt-bindings: pwm: restrict node name suffixes
Date: Wed, 7 Jun 2023 09:40:37 +0200 [thread overview]
Message-ID: <f141a538-23b8-d10e-227c-5f0ad191c3a6@linaro.org> (raw)
In-Reply-To: <20230607073652.hoyrernfcuoryrqs@pengutronix.de>
On 07/06/2023 09:36, Uwe Kleine-König wrote:
> On Tue, May 30, 2023 at 04:48:46PM +0200, Krzysztof Kozlowski wrote:
>> 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>
>
>>
>> ---
>>
>> Cc: Tony Lindgren <tony@atomide.com>
>> Cc: Oleksij Rempel <o.rempel@pengutronix.de>
>> ---
>> 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
>> 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]+))?$"
>
> With this patch we forbid now the following patterns:
>
> pwm-[0-9a-f][@-].*
> pwm-0[0-9a-f]+
> pwm-[a-f]([@-].*)?
Yes, this was discussed last time:
https://lore.kernel.org/all/20221127182232.GA128974-robh@kernel.org/
>
> Checking for such names:
>
> $ git grep -oP '\bpwm-([0-9a-f][@-].*|0[0-9a-f]+|[0-9]*[a-f][0-9a-f]*)(*pla:\s*\{)' arch/*/boot/dts
> arch/arm/boot/dts/meson8.dtsi:pwm-f-ao
> arch/arm/boot/dts/meson8.dtsi:pwm-e
> arch/arm/boot/dts/meson8b.dtsi:pwm-d
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-a
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-b-x7
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-b-x19
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-c
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-x5
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-c-x8
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-d-x3
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-d-x6
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-e
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-z
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-a
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-x
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-f-h
> arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:pwm-a-e
Are you sure these are pwms, not pins?
>
> These are all pinmux-settings and no pwm nodes, so the change is fine.
> (But arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi isn't properly
> sorted alphabetically.)
Exactly...
>
> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-06-07 7:44 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-30 14:48 [PATCH 0/7] dt-bindings: restrict node name suffixes Krzysztof Kozlowski
2023-05-30 14:48 ` [PATCH 1/7] dt-bindings: phy: intel,combo-phy: " Krzysztof Kozlowski
2023-05-31 4:27 ` Tony Lindgren
2023-06-09 15:10 ` Rob Herring
2023-06-21 17:32 ` Vinod Koul
2023-05-30 14:48 ` [PATCH 2/7] dt-bindings: pwm: " Krzysztof Kozlowski
2023-05-31 4:25 ` Tony Lindgren
2023-06-07 7:36 ` Uwe Kleine-König
2023-06-07 7:40 ` Krzysztof Kozlowski [this message]
2023-06-09 15:11 ` Rob Herring
2023-05-30 14:48 ` [PATCH 3/7] dt-bindings: rtc: " Krzysztof Kozlowski
2023-05-31 4:25 ` Tony Lindgren
2023-06-06 21:38 ` (subset) " Alexandre Belloni
2023-05-30 14:48 ` [PATCH 4/7] dt-bindings: slimbus: " Krzysztof Kozlowski
2023-05-31 4:26 ` Tony Lindgren
2023-06-09 15:13 ` Rob Herring
2023-05-30 14:48 ` [PATCH 5/7] spi: dt-bindings: " Krzysztof Kozlowski
2023-05-31 4:26 ` Tony Lindgren
2023-05-30 14:48 ` [PATCH 6/7] dt-bindings: timestamp: " Krzysztof Kozlowski
2023-05-31 4:26 ` Tony Lindgren
2023-06-09 15:13 ` Rob Herring
2023-06-30 17:34 ` Rob Herring
2023-05-30 14:48 ` [PATCH 7/7] dt-bindings: watchdog: " Krzysztof Kozlowski
2023-05-30 17:47 ` Guenter Roeck
2023-05-31 4:26 ` Tony Lindgren
2023-06-09 15:14 ` Rob Herring
2023-06-30 17:04 ` Rob Herring
2023-05-30 15:27 ` [PATCH 0/7] dt-bindings: " Uwe Kleine-König
2023-05-30 17:11 ` Conor Dooley
2023-05-31 6:57 ` Krzysztof Kozlowski
2023-05-30 18:28 ` (subset) " Mark Brown
2023-06-23 14:51 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f141a538-23b8-d10e-227c-5f0ad191c3a6@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dipenp@nvidia.com \
--cc=eswara.kota@linux.intel.com \
--cc=kishon@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=o.rempel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=thierry.reding@gmail.com \
--cc=timestamp@lists.linux.dev \
--cc=tony@atomide.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=vkoul@kernel.org \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).