Thread (2 messages) 2 messages, 2 authors, 2026-03-24
STALE99d

[PATCH] ARM: dts: rockchip: Pass linux,code to the power key on rk3288-veyron-pinky

From: Fabio Estevam <festevam@gmail.com>
Date: 2026-03-23 12:57:32
Also in: linux-devicetree, linux-rockchip, lkml
Subsystem: arm/rockchip soc support, the rest · Maintainers: Heiko Stuebner, Linus Torvalds

According to gpio-keys.yaml, linux,code is a required property.

Pass it to fix the following dt-schema warning:

lid-switch (gpio-keys): key-power: 'linux,code' is a required property

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts b/arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts
index cc27d116d025..e241f93b2310 100644
--- a/arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts
+++ b/arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts
@@ -47,6 +47,7 @@ &lid_switch {
 
 	key-power {
 		gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
+		linux,code = <KEY_POWER>;
 	};
 };
 
-- 
2.43.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help