lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d482af99-fca1-1e3b-ab51-c7f5864b6428@microchip.com>
Date:   Fri, 10 Jun 2022 12:30:19 +0000
From:   <Claudiu.Beznea@...rochip.com>
To:     <krzysztof.kozlowski@...aro.org>, <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 13:05, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> 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.

button-1 should be enough.

> 
>>
>>>                         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

I would say button-1.

Thank you,
Claudiu Beznea

> 
>>
>>>                         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

Powered by Openwall GNU/*/Linux Powered by OpenVZ