linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add tri-state-key for oneplus6
@ 2023-02-09 23:25 Gergo Koteles
  2023-02-09 23:25 ` [PATCH v2 1/3] Input: gpio-keys - add support for linux,input-value dts property Gergo Koteles
  2023-02-10 11:34 ` [PATCH v2 0/3] Add tri-state-key for oneplus6 Krzysztof Kozlowski
  0 siblings, 2 replies; 3+ messages in thread
From: Gergo Koteles @ 2023-02-09 23:25 UTC (permalink / raw)
  To: Dmitry Torokhov, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Jiri Kosina,
	Benjamin Tissoires
  Cc: linux-input, linux-kernel, linux-arm-msm, devicetree,
	Caleb Connolly, Gergo Koteles

V1 -> V2: rebase to qcom/for-next

Gergo Koteles (3):
  Input: gpio-keys - add support for linux,input-value dts property
  Input: add ABS_SND_PROFILE
  arm64: dts: qcom: sdm845-oneplus: add tri-state-key

 Documentation/input/event-codes.rst           |  6 +++
 .../boot/dts/qcom/sdm845-oneplus-common.dtsi  | 39 ++++++++++++++++++-
 drivers/hid/hid-debug.c                       |  1 +
 drivers/input/keyboard/gpio_keys.c            |  3 ++
 include/uapi/linux/input-event-codes.h        |  1 +
 5 files changed, 49 insertions(+), 1 deletion(-)


base-commit: 02ac8d2a011b630481d959298a1cc76ca0717f3e
-- 
2.39.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/3] Input: gpio-keys - add support for linux,input-value dts property
  2023-02-09 23:25 [PATCH v2 0/3] Add tri-state-key for oneplus6 Gergo Koteles
@ 2023-02-09 23:25 ` Gergo Koteles
  2023-02-10 11:34 ` [PATCH v2 0/3] Add tri-state-key for oneplus6 Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: Gergo Koteles @ 2023-02-09 23:25 UTC (permalink / raw)
  To: Dmitry Torokhov, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Jiri Kosina,
	Benjamin Tissoires
  Cc: linux-input, linux-kernel, linux-arm-msm, devicetree,
	Caleb Connolly, Gergo Koteles

Allows setting the value of EV_ABS events from dts.
This property is included in the gpio-keys.yaml scheme, but was only
implemented for gpio-keys-polled.

Signed-off-by: Gergo Koteles <soyer@irl.hu>
---
 drivers/input/keyboard/gpio_keys.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 5496482a38c1..c42f86ad0766 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -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 */
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 0/3] Add tri-state-key for oneplus6
  2023-02-09 23:25 [PATCH v2 0/3] Add tri-state-key for oneplus6 Gergo Koteles
  2023-02-09 23:25 ` [PATCH v2 1/3] Input: gpio-keys - add support for linux,input-value dts property Gergo Koteles
@ 2023-02-10 11:34 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-10 11:34 UTC (permalink / raw)
  To: Gergo Koteles, Dmitry Torokhov, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Jiri Kosina,
	Benjamin Tissoires
  Cc: linux-input, linux-kernel, linux-arm-msm, devicetree, Caleb Connolly

On 10/02/2023 00:25, Gergo Koteles wrote:
> V1 -> V2: rebase to qcom/for-next
> 
> Gergo Koteles (3):
>   Input: gpio-keys - add support for linux,input-value dts property
>   Input: add ABS_SND_PROFILE
>   arm64: dts: qcom: sdm845-oneplus: add tri-state-key

OK, here they are. Your mail threading is broken.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-10 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 23:25 [PATCH v2 0/3] Add tri-state-key for oneplus6 Gergo Koteles
2023-02-09 23:25 ` [PATCH v2 1/3] Input: gpio-keys - add support for linux,input-value dts property Gergo Koteles
2023-02-10 11:34 ` [PATCH v2 0/3] Add tri-state-key for oneplus6 Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).