From: Nick Xie Date: Sat, 28 Feb 2026 06:37:50 +0000 (+0800) Subject: arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: add POWER key support X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=cb00d65db2fd5367c2066effc18492ddab37ca14;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Martin Blumenstingl Link: https://patch.msgid.link/20260228063750.701887-5-nick@khadas.com Signed-off-by: Neil Armstrong --- 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 0bd738c1e7862..664d64a267f2d 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 #include / { @@ -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 = ; + gpios = <&gpio GPIOD_8 GPIO_ACTIVE_LOW>; + }; + }; + pwm-leds { compatible = "pwm-leds";