Commit 517ed0ff authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Heiko Stuebner

arm64: dts: rockchip: 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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220616005333.18491-26-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent bc3753ae
...@@ -75,7 +75,7 @@ gpio-keys { ...@@ -75,7 +75,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -71,82 +71,82 @@ gpio-keys { ...@@ -71,82 +71,82 @@ gpio-keys {
* |------------------------------------------------| * |------------------------------------------------|
*/ */
sw1 { button-sw1 {
gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
label = "DPAD-UP"; label = "DPAD-UP";
linux,code = <BTN_DPAD_UP>; linux,code = <BTN_DPAD_UP>;
}; };
sw2 { button-sw2 {
gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
label = "DPAD-DOWN"; label = "DPAD-DOWN";
linux,code = <BTN_DPAD_DOWN>; linux,code = <BTN_DPAD_DOWN>;
}; };
sw3 { button-sw3 {
gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
label = "DPAD-LEFT"; label = "DPAD-LEFT";
linux,code = <BTN_DPAD_LEFT>; linux,code = <BTN_DPAD_LEFT>;
}; };
sw4 { button-sw4 {
gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
label = "DPAD-RIGHT"; label = "DPAD-RIGHT";
linux,code = <BTN_DPAD_RIGHT>; linux,code = <BTN_DPAD_RIGHT>;
}; };
sw5 { button-sw5 {
gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>;
label = "BTN-A"; label = "BTN-A";
linux,code = <BTN_EAST>; linux,code = <BTN_EAST>;
}; };
sw6 { button-sw6 {
gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
label = "BTN-B"; label = "BTN-B";
linux,code = <BTN_SOUTH>; linux,code = <BTN_SOUTH>;
}; };
sw7 { button-sw7 {
gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
label = "BTN-Y"; label = "BTN-Y";
linux,code = <BTN_WEST>; linux,code = <BTN_WEST>;
}; };
sw8 { button-sw8 {
gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>;
label = "BTN-X"; label = "BTN-X";
linux,code = <BTN_NORTH>; linux,code = <BTN_NORTH>;
}; };
sw9 { button-sw9 {
gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
label = "F1"; label = "F1";
linux,code = <BTN_TRIGGER_HAPPY1>; linux,code = <BTN_TRIGGER_HAPPY1>;
}; };
sw10 { button-sw10 {
gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>;
label = "F2"; label = "F2";
linux,code = <BTN_TRIGGER_HAPPY2>; linux,code = <BTN_TRIGGER_HAPPY2>;
}; };
sw11 { button-sw11 {
gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
label = "F3"; label = "F3";
linux,code = <BTN_TRIGGER_HAPPY3>; linux,code = <BTN_TRIGGER_HAPPY3>;
}; };
sw12 { button-sw12 {
gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
label = "F4"; label = "F4";
linux,code = <BTN_TRIGGER_HAPPY4>; linux,code = <BTN_TRIGGER_HAPPY4>;
}; };
sw13 { button-sw13 {
gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>;
label = "F5"; label = "F5";
linux,code = <BTN_TRIGGER_HAPPY5>; linux,code = <BTN_TRIGGER_HAPPY5>;
}; };
sw14 { button-sw14 {
gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_LOW>;
label = "F6"; label = "F6";
linux,code = <BTN_TRIGGER_HAPPY6>; linux,code = <BTN_TRIGGER_HAPPY6>;
}; };
sw15 { button-sw15 {
gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
label = "TOP-LEFT"; label = "TOP-LEFT";
linux,code = <BTN_TL>; linux,code = <BTN_TL>;
}; };
sw16 { button-sw16 {
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_LOW>; gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_LOW>;
label = "TOP-RIGHT"; label = "TOP-RIGHT";
linux,code = <BTN_TR>; linux,code = <BTN_TR>;
......
...@@ -34,7 +34,7 @@ keys { ...@@ -34,7 +34,7 @@ keys {
pinctrl-0 = <&reset_button_pin>; pinctrl-0 = <&reset_button_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
reset { key-reset {
label = "reset"; label = "reset";
gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
......
...@@ -76,7 +76,7 @@ keys: gpio-keys { ...@@ -76,7 +76,7 @@ keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
wakeup-source; wakeup-source;
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
......
...@@ -43,7 +43,7 @@ keys: gpio-keys { ...@@ -43,7 +43,7 @@ keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
......
...@@ -44,7 +44,7 @@ keys: gpio-keys { ...@@ -44,7 +44,7 @@ keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
wakeup-source; wakeup-source;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
label = "GPIO Power"; label = "GPIO Power";
......
...@@ -30,7 +30,7 @@ keys: gpio-keys { ...@@ -30,7 +30,7 @@ keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
......
...@@ -37,7 +37,7 @@ keys: gpio-keys { ...@@ -37,7 +37,7 @@ keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key>; pinctrl-0 = <&pwr_key>;
power { key-power {
wakeup-source; wakeup-source;
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
......
...@@ -87,7 +87,7 @@ gpio-keys { ...@@ -87,7 +87,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwrbtn>; pinctrl-0 = <&pwrbtn>;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -206,7 +206,7 @@ gpio_keys: gpio-keys { ...@@ -206,7 +206,7 @@ gpio_keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&bt_host_wake_l>; pinctrl-0 = <&bt_host_wake_l>;
wake_on_bt: wake-on-bt { wake_on_bt: key-wake-on-bt {
label = "Wake-on-Bluetooth"; label = "Wake-on-Bluetooth";
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WAKEUP>; linux,code = <KEY_WAKEUP>;
......
...@@ -92,7 +92,7 @@ &gpio_keys { ...@@ -92,7 +92,7 @@ &gpio_keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>; pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>;
pen-insert { switch-pen-insert {
label = "Pen Insert"; label = "Pen Insert";
/* Insert = low, eject = high */ /* Insert = low, eject = high */
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
......
...@@ -183,7 +183,7 @@ gpio_keys: gpio-keys { ...@@ -183,7 +183,7 @@ gpio_keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pen_eject_odl>; pinctrl-0 = <&pen_eject_odl>;
pen-insert { switch-pen-insert {
label = "Pen Insert"; label = "Pen Insert";
/* Insert = low, eject = high */ /* Insert = low, eject = high */
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
......
...@@ -136,7 +136,7 @@ gpio-keys { ...@@ -136,7 +136,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwrbtn>; pinctrl-0 = <&pwrbtn>;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -46,9 +46,9 @@ wan_led: led-wan { ...@@ -46,9 +46,9 @@ wan_led: led-wan {
gpio-keys { gpio-keys {
pinctrl-0 = <&reset_button_pin>; pinctrl-0 = <&reset_button_pin>;
/delete-node/ power; /delete-node/ key-power;
reset { key-reset {
debounce-interval = <50>; debounce-interval = <50>;
gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
label = "reset"; label = "reset";
......
...@@ -111,7 +111,7 @@ gpio-keys { ...@@ -111,7 +111,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&power_key>; pinctrl-0 = <&power_key>;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -78,7 +78,7 @@ keys: gpio-keys { ...@@ -78,7 +78,7 @@ keys: gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
autorepeat; autorepeat;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
......
...@@ -76,7 +76,7 @@ gpio-key-lid { ...@@ -76,7 +76,7 @@ gpio-key-lid {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&lidbtn_pin>; pinctrl-0 = <&lidbtn_pin>;
lid { switch-lid {
debounce-interval = <20>; debounce-interval = <20>;
gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>; gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
label = "Lid"; label = "Lid";
...@@ -92,7 +92,7 @@ gpio-key-power { ...@@ -92,7 +92,7 @@ gpio-key-power {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwrbtn_pin>; pinctrl-0 = <&pwrbtn_pin>;
power { key-power {
debounce-interval = <20>; debounce-interval = <20>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "Power"; label = "Power";
......
...@@ -54,7 +54,7 @@ gpio-keys { ...@@ -54,7 +54,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwr_key_l>; pinctrl-0 = <&pwr_key_l>;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -42,7 +42,7 @@ gpio-keys { ...@@ -42,7 +42,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwrbtn>; pinctrl-0 = <&pwrbtn>;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Key Power"; label = "GPIO Key Power";
......
...@@ -53,7 +53,7 @@ keys: gpio-keys { ...@@ -53,7 +53,7 @@ keys: gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
autorepeat; autorepeat;
power { key-power {
debounce-interval = <100>; debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Power"; label = "GPIO Power";
......
...@@ -49,7 +49,7 @@ gpio-keys { ...@@ -49,7 +49,7 @@ gpio-keys {
pinctrl-0 = <&hall_int_l>; pinctrl-0 = <&hall_int_l>;
pinctrl-names = "default"; pinctrl-names = "default";
cover { switch-cover {
label = "cover"; label = "cover";
gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment