summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
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/sun8i-h3-orangepi-pc.dts
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/sun8i-h3-orangepi-pc.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
index 5aff8ecc66cb..90f75fa85e68 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
@@ -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;
};
};
};