[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <537986d4-376e-d787-1581-cf0b0d525daa@linaro.org>
Date: Fri, 10 Jun 2022 12:05:52 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Claudiu.Beznea@...rochip.com, arnd@...db.de, olof@...om.net,
arm@...nel.org, soc@...nel.org, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, Nicolas.Ferre@...rochip.com,
alexandre.belloni@...tlin.com, peda@...ntia.se,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 44/48] ARM: dts: at91: align gpio-key node names with
dtschema
On 10/06/2022 09:12, Claudiu.Beznea@...rochip.com wrote:
>> compatible = "gpio-keys";
>> pinctrl-names = "default";
>> pinctrl-0 = <&pinctrl_key_gpio_default>;
>> status = "okay";
>>
>> - sw1 {
>> + switch-1 {
>
> This is acutally a button labeled on board as SW1. It has been wrongly
> carried over from older DTSes. Maybe it would worth to have it now here as
> button instead of switch.
Sure, I'll name it "button-1". Could be also "button-sw1" if ou prefer.
>
>> label = "SW1";
>> gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
>> linux,code=<KEY_PROG1>;
>> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
>> index 08f0d4b995ff..96c9290007a8 100644
>> --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
>> +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
>> @@ -478,13 +478,13 @@ can1: can@...50000 {
>> };
>> };
>>
>> - gpio_keys {
>> + gpio-keys {
>> compatible = "gpio-keys";
>>
>> pinctrl-names = "default";
>> pinctrl-0 = <&pinctrl_key_gpio_default>;
>>
>> - pb4 {
>> + button {
>> label = "USER";
>> gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
>> linux,code = <KEY_PROG1>;
>> diff --git a/arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts
>> index 5e8755f22784..d5652c974748 100644
>> --- a/arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts
>> +++ b/arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts
>> @@ -26,14 +26,14 @@ chosen {
>> stdout-path = "serial0:115200n8";
>> };
>>
>> - gpio_keys {
>> + gpio-keys {
>> compatible = "gpio-keys";
>>
>> pinctrl-names = "default";
>> pinctrl-0 = <&pinctrl_key_gpio_default>;
>> status = "okay";
>>
>> - sw4 {
>> + switch-4 {
>
> Same here, this is a button not a switch.
Sure, then button-1 or button-sw4
>
>> label = "USER BUTTON";
>> gpios = <&pioA PIN_PB2 GPIO_ACTIVE_LOW>;
>> linux,code = <KEY_PROG1>;
>> diff --git a/arch/arm/boot/dts/at91-sama5d2_icp.dts b/arch/arm/boot/dts/at91-sama5d2_icp.dts
>> index 806eb1d911d7..d7b59e16a081 100644
>> --- a/arch/arm/boot/dts/at91-sama5d2_icp.dts
>> +++ b/arch/arm/boot/dts/at91-sama5d2_icp.dts
>> @@ -42,14 +42,14 @@ main_xtal {
>> };
>> };
>>
>> - gpio_keys {
>> + gpio-keys {
>> compatible = "gpio-keys";
>>
>> pinctrl-names = "default";
>> pinctrl-0 = <&pinctrl_key_gpio_default>;
>> status = "okay";
>>
>> - sw4 {
>> + switch-4 {
>
> Same here, button not switch.
>
> Other than this, looks good to me.
Thanks for checking
Best regards,
Krzysztof
Powered by blists - more mailing lists