From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: dts: microchip: at91: align LED node name with bindings
Date: Tue, 2 Jul 2024 12:31:13 +0200 [thread overview]
Message-ID: <b7cc46dc-8ce6-45d5-a320-63fdce4967f9@linaro.org> (raw)
In-Reply-To: <20240702-expel-unflawed-b174e82e27c7@thorsis.com>
On 02/07/2024 10:51, Alexander Dahl wrote:
>> diff --git a/arch/arm/boot/dts/microchip/at91sam9x5cm.dtsi b/arch/arm/boot/dts/microchip/at91sam9x5cm.dtsi
>> index cdd37f67280b..fb3c19bdfcb6 100644
>> --- a/arch/arm/boot/dts/microchip/at91sam9x5cm.dtsi
>> +++ b/arch/arm/boot/dts/microchip/at91sam9x5cm.dtsi
>> @@ -120,13 +120,13 @@ rootfs@800000 {
>> leds {
>> compatible = "gpio-leds";
>>
>> - pb18 {
>> + led-pb18 {
>> label = "pb18";
>> gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
>> linux,default-trigger = "heartbeat";
>> };
>>
>> - pd21 {
>> + led-pd21 {
>> label = "pd21";
>> gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
>> };
>
> In this case these are all gpio-leds and the pattern is in the
> leds-gpio gpio binding. I'm wondering however why you chose the very
> generic 'led' match over the more strict one requiring the names to
match? Which match? I did not write the match pattern in the binding, did I?
> look like 'led-0', 'led-1' an so forth? The generic match would also
Works for me too. The easiest was to add led prefix. I am not the
maintainer of this platform, so I am doing just some random cleanups and
prefix is the easiest cleanup.
> match names like 'knowledge' or 'controlled'. But besides that:
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-07-02 10:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 16:49 [PATCH] ARM: dts: microchip: at91: align LED node name with bindings Krzysztof Kozlowski
2024-07-02 8:51 ` Alexander Dahl
2024-07-02 10:31 ` Krzysztof Kozlowski [this message]
2024-08-09 6:11 ` claudiu beznea
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=b7cc46dc-8ce6-45d5-a320-63fdce4967f9@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.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).