ARM: dts: sun8i: Adjust power key nodes
authorJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 29 Nov 2021 16:55:10 +0000 (17:55 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 1 Dec 2021 08:21:06 +0000 (09:21 +0100)
Several H3 and one H2+ board have power key nodes, which are slightly
off. Some are missing wakeup-source property and some have BTN_0 code
assigned instead of KEY_POWER.

Adjust them, so they can function as intended by designer.

Co-developed-by: Michael Klein <michael@fossekall.de>
Signed-off-by: Michael Klein <michael@fossekall.de>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211129165510.370717-1-jernej.skrabec@gmail.com
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
arch/arm/boot/dts/sunxi-libretech-all-h3-cc.dtsi

index 8e8634ff2f9d3b64fa2b6e64547819b58e5465c1..d5c7b7984d857f260984f51074e4484bd066bd70 100644 (file)
@@ -52,8 +52,9 @@
 
                sw4 {
                        label = "power";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
                };
        };
 
index c7c3e7d8b3c81c8f4b1711d601b1a5869e5ca56e..fc45d5aaa67fff66f56bde57b9e88c74fae1f80c 100644 (file)
@@ -81,6 +81,7 @@
                        label = "k1";
                        linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
                };
        };
 };
index 597c425d08ecd96e10f6766adeb4a9a62f867eca..9daffd90c12f0b5535b5a2a1e160e67650f99d72 100644 (file)
@@ -99,8 +99,9 @@
 
                sw4 {
                        label = "sw4";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
                };
        };
 
index 5aff8ecc66cbb9510571b24224cf8313e9fa9fee..90f75fa85e68b93fbecddc5daf8079cb0a3cf464 100644 (file)
@@ -91,8 +91,9 @@
 
                sw4 {
                        label = "sw4";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
                };
        };
 };
index 7a6af54dd3423e18db4511411d1e32dc29837c6b..d03f5853ef7bf83e199df7db5d48045d1ba92886 100644 (file)
@@ -82,8 +82,9 @@
 
                sw4 {
                        label = "power";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
                };
        };
 
index c44fd726945a75e573770e3adaf1b0d785c90747..9e14fe5fdcde0a7bb7aaea963c62ba1869e0c951 100644 (file)
@@ -49,6 +49,7 @@
                        label = "power";
                        linux,code = <KEY_POWER>;
                        gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+                       wakeup-source;
                };
        };