summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@gmail.com>2021-11-29 19:55:10 +0300
committerMaxime Ripard <maxime@cerno.tech>2021-12-01 11:21:06 +0300
commit145988cff2a10ec8c720eccdcfc94748f497cd8d (patch)
treeb6357751486395de7ef52256ba0a9917d5affbf4 /arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
parent00b9773b128a509581555faef838b09468236d48 (diff)
downloadlinux-145988cff2a10ec8c720eccdcfc94748f497cd8d.tar.xz
ARM: dts: sun8i: Adjust power key nodes
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
Diffstat (limited to 'arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi')
-rw-r--r--arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
index 7a6af54dd342..d03f5853ef7b 100644
--- a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
+++ b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
@@ -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;
};
};