Skip to contentSkip to conversation

Input: gpio-keys - add support for linux,input-value dts property

PATCH In review Gergo Koteles 2 participants 3 messages Jan 16, 2023 – Jan 17, 2023

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

PATCH 1/1 Input: gpio-keys - add support for linux,input-value dts property

Allows setting the value of EV_ABS events from dts.

---
 drivers/input/keyboard/gpio_keys.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/input/keyboard/gpio_keys.c +3 -0
index 5496482a38c1..c42f86ad0766 100644
@@ -770,6 +770,9 @@ gpio_keys_get_devtree_pdata(struct device *dev)
 					     &button->type))
 			button->type = EV_KEY;
 
+		fwnode_property_read_u32(child, "linux,input-value",
+					 (u32 *)&button->value);
+
 		button->wakeup =
 			fwnode_property_read_bool(child, "wakeup-source") ||
 			/* legacy name */
Signature · 1 line
2.39.0
maintainer
#1 lore raw

Hi,

Quoted 1 line · Gergo Koteles

Allows setting the value of EV_ABS events from dts.

This needs adjustment to the binding documentation.

Thanks.

Signature · 1 line
Dmitry
#2 lore raw

Hi,

Quoted 9 lines · Dmitry Torokhov

Hi,

Quoted 1 line · Gergo Koteles

Allows setting the value of EV_ABS events from dts.

This needs adjustment to the binding documentation.

Thanks.

Do you mean Documentation/devicetree/bindings/input/gpio-keys.yaml? The linux,input-value is already there.

Thanks