diff mbox series

[v2,4/4] ARM: dts: microchip: aks-cdu: Add label for LED sub nodes

Message ID 20241001152541.91945-5-andrei.simion@microchip.com (mailing list archive)
State New, archived
Headers show
Series Cosmetic Work for ARM/Microchip (AT91) | expand

Commit Message

Andrei Simion Oct. 1, 2024, 3:25 p.m. UTC
Add the label property here and use the old node name as value to stay
stable and avoid breaking the userspace applications that depend on those
paths.

Suggested-by: Alexander Dhal <ada@thorsis.com>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
v1 -> v2:
- added in v2 by suggestion of Alexander Dhal
---
 arch/arm/boot/dts/microchip/aks-cdu.dts | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Conor Dooley Oct. 1, 2024, 3:31 p.m. UTC | #1
On Tue, Oct 01, 2024 at 06:25:41PM +0300, Andrei Simion wrote:
> Add the label property here and use the old node name as value to stay
> stable and avoid breaking the userspace applications that depend on those
> paths.
> 
> Suggested-by: Alexander Dhal <ada@thorsis.com>
> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>

Shouldn't this be squashed with 3/4 so as not to break it in one commit,
only to fix it in another?

> ---
> v1 -> v2:
> - added in v2 by suggestion of Alexander Dhal
> ---
>  arch/arm/boot/dts/microchip/aks-cdu.dts | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
> index 0c3373ad1723..b65f80e1ef05 100644
> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
> @@ -99,22 +99,26 @@ leds {
>  		compatible = "gpio-leds";
>  
>  		led-red {
> +			label = "red";
>  			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "none";
>  		};
>  
>  		led-green {
> +			label = "green";
>  			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  			default-state = "on";
>  		};
>  
>  		led-yellow {
> +			label = "yellow";
>  			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  		};
>  
>  		led-blue {
> +			label = "blue";
>  			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  		};
> -- 
> 2.34.1
>
Andrei Simion Oct. 2, 2024, 10:30 a.m. UTC | #2
> On Tue, Oct 01, 2024 at 06:25:41PM +0300, Andrei Simion wrote:
>> Add the label property here and use the old node name as value to stay
>> stable and avoid breaking the userspace applications that depend on those
>> paths.
>>
>> Suggested-by: Alexander Dhal <ada@thorsis.com>
>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> Shouldn't this be squashed with 3/4 so as not to break it in one commit,
> only to fix it in another?
>

Hi,

My intent here was to give credits.
If this approach is unnecessary, I will do squash in V3.

Best Regards,
Andrei Simion

>> ---
>> v1 -> v2:
>> - added in v2 by suggestion of Alexander Dhal
>> ---
>>  arch/arm/boot/dts/microchip/aks-cdu.dts | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> index 0c3373ad1723..b65f80e1ef05 100644
>> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
>> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> @@ -99,22 +99,26 @@ leds {
>>  		compatible = "gpio-leds";
>>  
>>  		led-red {
>> +			label = "red";
>>  			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
>>  			linux,default-trigger = "none";
>>  		};
>>  
>>  		led-green {
>> +			label = "green";
>>  			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
>>  			linux,default-trigger = "none";
>>  			default-state = "on";
>>  		};
>>  
>>  		led-yellow {
>> +			label = "yellow";
>>  			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
>>  			linux,default-trigger = "none";
>>  		};
>>  
>>  		led-blue {
>> +			label = "blue";
>>  			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
>>  			linux,default-trigger = "none";
>>  		};
>> -- 
>> 2.34.1
Alexander Dahl Oct. 2, 2024, 10:42 a.m. UTC | #3
Hello Andrei,

Am Wed, Oct 02, 2024 at 01:30:45PM +0300 schrieb Andrei Simion:
> > On Tue, Oct 01, 2024 at 06:25:41PM +0300, Andrei Simion wrote:
> >> Add the label property here and use the old node name as value to stay
> >> stable and avoid breaking the userspace applications that depend on those
> >> paths.
> >>
> >> Suggested-by: Alexander Dhal <ada@thorsis.com>
> >> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> > Shouldn't this be squashed with 3/4 so as not to break it in one commit,
> > only to fix it in another?
> >
> 
> Hi,
> 
> My intent here was to give credits.

Appreciate this.  And just noticed you got my last name wrong.  ;-)
Credit is recorded in this thread now, this is sufficient.

> If this approach is unnecessary, I will do squash in V3.

Conor is right here.  Please squash.

Greets
Alex

> 
> Best Regards,
> Andrei Simion
> 
> >> ---
> >> v1 -> v2:
> >> - added in v2 by suggestion of Alexander Dhal
> >> ---
> >>  arch/arm/boot/dts/microchip/aks-cdu.dts | 4 ++++
> >>  1 file changed, 4 insertions(+)
> >>
> >> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> index 0c3373ad1723..b65f80e1ef05 100644
> >> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> @@ -99,22 +99,26 @@ leds {
> >>  		compatible = "gpio-leds";
> >>  
> >>  		led-red {
> >> +			label = "red";
> >>  			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
> >>  			linux,default-trigger = "none";
> >>  		};
> >>  
> >>  		led-green {
> >> +			label = "green";
> >>  			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
> >>  			linux,default-trigger = "none";
> >>  			default-state = "on";
> >>  		};
> >>  
> >>  		led-yellow {
> >> +			label = "yellow";
> >>  			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
> >>  			linux,default-trigger = "none";
> >>  		};
> >>  
> >>  		led-blue {
> >> +			label = "blue";
> >>  			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
> >>  			linux,default-trigger = "none";
> >>  		};
> >> -- 
> >> 2.34.1
>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
index 0c3373ad1723..b65f80e1ef05 100644
--- a/arch/arm/boot/dts/microchip/aks-cdu.dts
+++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
@@ -99,22 +99,26 @@  leds {
 		compatible = "gpio-leds";
 
 		led-red {
+			label = "red";
 			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "none";
 		};
 
 		led-green {
+			label = "green";
 			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 			default-state = "on";
 		};
 
 		led-yellow {
+			label = "yellow";
 			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 		};
 
 		led-blue {
+			label = "blue";
 			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 		};