summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Xie <nick@khadas.com>2026-02-28 09:37:50 +0300
committerNeil Armstrong <neil.armstrong@linaro.org>2026-04-21 16:55:20 +0300
commitcb00d65db2fd5367c2066effc18492ddab37ca14 (patch)
treeab0e530c32a4a743a4b7aa5280d2a3b112a4cffb
parentb6a8c516b5895d24968878546557d6c2b9e5766c (diff)
downloadlinux-cb00d65db2fd5367c2066effc18492ddab37ca14.tar.xz
arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: add POWER key support
Add the gpio-keys-polled node to support the Power button found on the Khadas VIM1S board. The button is connected to the GPIOD_8 pin. Use polled mode instead of gpio-keys because the GPIO interrupt controller support for Meson S4 SoC is not yet available upstream. Signed-off-by: Nick Xie <nick@khadas.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://patch.msgid.link/20260228063750.701887-5-nick@khadas.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts b/arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts
index 0bd738c1e786..664d64a267f2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include "meson-s4.dtsi"
+#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
@@ -44,6 +45,17 @@
reset-gpios = <&gpio GPIOB_9 GPIO_ACTIVE_LOW>;
};
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ power-button {
+ label = "power";
+ linux,code = <KEY_POWER>;
+ gpios = <&gpio GPIOD_8 GPIO_ACTIVE_LOW>;
+ };
+ };
+
pwm-leds {
compatible = "pwm-leds";