* [PATCH] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys
@ 2024-01-20 8:45 Rudraksha Gupta via B4 Relay
2024-02-01 21:53 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Rudraksha Gupta via B4 Relay @ 2024-01-20 8:45 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Rudraksha Gupta
From: Rudraksha Gupta <guptarud@gmail.com>
Adds volume up, volume down, and home keys to expressatt
Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
---
Adds volume up, volume down, and home keys to expressatt.
Applies on top of 5c903b859aaced384c0cd01d515f3e43a115fd9e
---
.../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
index 1a5116336ff0..47e0e26ad9f0 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
@@ -4,6 +4,9 @@
#include "qcom-msm8960.dtsi"
#include "pm8921.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+#include <dt-bindings/input/gpio-keys.h>
/ {
model = "Samsung Galaxy Express SGH-I437";
@@ -19,6 +22,36 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio_keys_pin_a>;
+
+ key-home {
+ label = "Home";
+ gpios = <&msmgpio 40 GPIO_ACTIVE_LOW>;
+ debounce-interval = <5>;
+ linux,code = <KEY_HOMEPAGE>;
+ wakeup-event-action = <EV_ACT_ASSERTED>;
+ wakeup-source;
+ };
+
+ key-volume-up {
+ label = "Volume Up";
+ gpios = <&msmgpio 50 GPIO_ACTIVE_LOW>;
+ debounce-interval = <5>;
+ linux,code = <KEY_VOLUMEUP>;
+ };
+
+ key-volume-down {
+ label = "Volume Down";
+ gpios = <&msmgpio 81 GPIO_ACTIVE_LOW>;
+ debounce-interval = <5>;
+ linux,code = <KEY_VOLUMEDOWN>;
+ };
+ };
};
&gsbi5 {
@@ -83,6 +116,13 @@ clk-pins {
bias-disable;
};
};
+
+ gpio_keys_pin_a: gpio-keys-active-state {
+ pins = "gpio40", "gpio50", "gpio81";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ };
};
&pm8921 {
---
base-commit: 9d64bf433c53cab2f48a3fff7a1f2a696bc5229a
change-id: 20240120-expressatt-gpio-keys-c6c580fd713e
Best regards,
--
Rudraksha Gupta <guptarud@gmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys
2024-01-20 8:45 [PATCH] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys Rudraksha Gupta via B4 Relay
@ 2024-02-01 21:53 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2024-02-01 21:53 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Rudraksha Gupta
Cc: linux-arm-msm, devicetree, linux-kernel
On Sat, 20 Jan 2024 00:45:23 -0800, Rudraksha Gupta wrote:
> Adds volume up, volume down, and home keys to expressatt
>
>
Applied, thanks!
[1/1] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys
commit: 8d90980509f25fecc7ff085e1723e4d8dede4ade
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-01 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-20 8:45 [PATCH] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys Rudraksha Gupta via B4 Relay
2024-02-01 21:53 ` Bjorn Andersson
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).