mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
ARM: dts: at91: align gpio-key node names with dtschema
The node names should be generic and DT schema expects certain pattern (e.g. with key/button/switch). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220616005333.18491-38-krzysztof.kozlowski@linaro.org
This commit is contained in:
parent
54ab5f3671
commit
17413b15ed
|
|
@ -155,10 +155,10 @@ user_led {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
btn {
|
||||
button {
|
||||
label = "Button";
|
||||
gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x103>;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ / {
|
|||
model = "Laird Workgroup Bridge 50N - Project Gatwick";
|
||||
compatible = "laird,gatwick", "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
autorepeat;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,19 +28,19 @@ main_xtal {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "PB_RST";
|
||||
gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <0x100>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
user {
|
||||
button-user {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <0x101>;
|
||||
|
|
|
|||
|
|
@ -31,26 +31,26 @@ main_xtal {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
prog {
|
||||
button-prog {
|
||||
label = "PB_PROG";
|
||||
gpios = <&pioE 27 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x102>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "PB_RST";
|
||||
gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x100>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
user {
|
||||
button-user {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioE 31 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <0x101>;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ led-6 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
pinctrl-names = "default" , "default", "default",
|
||||
"default", "default" ;
|
||||
|
|
@ -68,35 +68,35 @@ &pinctrl_pio_io_reset
|
|||
&pinctrl_pio_zbe_rst>;
|
||||
pinctrl-4 = <&pinctrl_pio_input>;
|
||||
|
||||
SW1 {
|
||||
switch-1 {
|
||||
label = "SW1";
|
||||
gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x101>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
SW2 {
|
||||
switch-2 {
|
||||
label = "SW2";
|
||||
gpios = <&pioA PIN_PA18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x102>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
SW3 {
|
||||
switch-3 {
|
||||
label = "SW3";
|
||||
gpios = <&pioA PIN_PA22 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x103>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
SW7 {
|
||||
switch-7 {
|
||||
label = "SW7";
|
||||
gpios = <&pioA PIN_PA26 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x107>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
SW8 {
|
||||
switch-8 {
|
||||
label = "SW8";
|
||||
gpios = <&pioA PIN_PA24 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x108>;
|
||||
|
|
|
|||
|
|
@ -39,14 +39,14 @@ gpio_keys {
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
prog {
|
||||
key-prog {
|
||||
label = "PB_PROG";
|
||||
gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x102>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
reset {
|
||||
key-reset {
|
||||
label = "PB_RST";
|
||||
gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x100>;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ / {
|
|||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wakeup {
|
||||
key-wakeup {
|
||||
label = "Wakeup";
|
||||
linux,code = <10>;
|
||||
wakeup-source;
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ gpio_keys {
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
user_pb {
|
||||
button-user {
|
||||
label = "user_pb";
|
||||
gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <28>;
|
||||
|
|
|
|||
|
|
@ -76,13 +76,13 @@ vdd2_3v3: regulator-fixed-vdd2_3v3@3 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio_default>;
|
||||
status = "okay";
|
||||
|
||||
sw1 {
|
||||
button-1 {
|
||||
label = "SW1";
|
||||
gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -478,13 +478,13 @@ can1: can@fc050000 {
|
|||
};
|
||||
};
|
||||
|
||||
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>;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
button-1 {
|
||||
label = "USER BUTTON";
|
||||
gpios = <&pioA PIN_PB2 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
button-1 {
|
||||
label = "USER_PB1";
|
||||
gpios = <&pioA PIN_PD0 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -394,13 +394,13 @@ pinctrl_usba_vbus: usba_vbus {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio_default>;
|
||||
|
||||
bp1 {
|
||||
button-1 {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioA PIN_PA10 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -703,13 +703,13 @@ can1: can@fc050000 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio_default>;
|
||||
|
||||
bp1 {
|
||||
button {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -372,13 +372,13 @@ vcc_mmc0_reg: fixedregulator_mmc0 {
|
|||
regulator-always-on;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio>;
|
||||
|
||||
bp3 {
|
||||
button {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -242,13 +242,13 @@ rootfs@800000 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio>;
|
||||
|
||||
pb_user1 {
|
||||
button {
|
||||
label = "pb_user1";
|
||||
gpios = <&pioE 8 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -269,13 +269,13 @@ rootfs@800000 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio>;
|
||||
|
||||
pb_user1 {
|
||||
button {
|
||||
label = "pb_user1";
|
||||
gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <0x100>;
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@ main_xtal {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_key_gpio_default>;
|
||||
|
||||
bp1 {
|
||||
button {
|
||||
label = "PB_USER";
|
||||
gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ / {
|
|||
model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)";
|
||||
compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9";
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ / {
|
|||
model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
|
||||
compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
|
|||
|
|
@ -144,17 +144,17 @@ nand0: nand@40000000 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
btn3 {
|
||||
button-3 {
|
||||
label = "Button 3";
|
||||
gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x103>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
btn4 {
|
||||
button-4 {
|
||||
label = "Button 4";
|
||||
gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -211,31 +211,31 @@ ds1 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button_0 {
|
||||
button-0 {
|
||||
label = "button_0";
|
||||
gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <256>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
button_1 {
|
||||
button-1 {
|
||||
label = "button_1";
|
||||
gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <257>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
button_2 {
|
||||
button-2 {
|
||||
label = "button_2";
|
||||
gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <258>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
button_3 {
|
||||
button-3 {
|
||||
label = "button_3";
|
||||
gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <259>;
|
||||
|
|
|
|||
|
|
@ -232,17 +232,17 @@ d2 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
left_click {
|
||||
button-left-click {
|
||||
label = "left_click";
|
||||
gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <272>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
right_click {
|
||||
button-right-click {
|
||||
label = "right_click";
|
||||
gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <273>;
|
||||
|
|
|
|||
|
|
@ -234,17 +234,17 @@ wm8731: wm8731@1b {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
btn3 {
|
||||
button-3 {
|
||||
label = "Button 3";
|
||||
gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <0x103>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
btn4 {
|
||||
button-4 {
|
||||
label = "Button 4";
|
||||
gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ aliases {
|
|||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_btn1 {
|
||||
button {
|
||||
label = "USER_BTN1";
|
||||
gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_PROG1>;
|
||||
|
|
|
|||
|
|
@ -343,48 +343,48 @@ led-3 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
left_click {
|
||||
button-left-click {
|
||||
label = "left_click";
|
||||
gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <272>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
right_click {
|
||||
button-right-click {
|
||||
label = "right_click";
|
||||
gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <273>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
left {
|
||||
button-left {
|
||||
label = "Joystick Left";
|
||||
gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <105>;
|
||||
};
|
||||
|
||||
right {
|
||||
button-right {
|
||||
label = "Joystick Right";
|
||||
gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <106>;
|
||||
};
|
||||
|
||||
up {
|
||||
button-up {
|
||||
label = "Joystick Up";
|
||||
gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <103>;
|
||||
};
|
||||
|
||||
down {
|
||||
button-down {
|
||||
label = "Joystick Down";
|
||||
gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <108>;
|
||||
};
|
||||
|
||||
enter {
|
||||
button-enter {
|
||||
label = "Joystick Press";
|
||||
gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <28>;
|
||||
|
|
|
|||
|
|
@ -226,10 +226,10 @@ d10 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
enter {
|
||||
button-enter {
|
||||
label = "Enter";
|
||||
gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <28>;
|
||||
|
|
|
|||
|
|
@ -248,17 +248,17 @@ led-3 {
|
|||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
right_click {
|
||||
button-right-click {
|
||||
label = "right_click";
|
||||
gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <273>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
left_click {
|
||||
button-left-click {
|
||||
label = "left_click";
|
||||
gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <272>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user