Skip to contentSkip to conversation

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

PATCH Applied Fabio Estevam 2 participants 2 messages Mar 23 – Mar 24

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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

---
 arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/rockchip/rk3288-veyron-pinky.dts +1 -0
index cc27d116d025..e241f93b2310 100644
@@ -47,6 +47,7 @@ &lid_switch {
 
 	key-power {
 		gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
+		linux,code = <KEY_POWER>;
 	};
 };
 
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Fabio Estevam

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

[...]

Applied, thanks!

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

      commit: 94c8dc1fa8e1ad4037084204152bca1e799d7d1c

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>