[PATCH v2] arm64: dts: qcom: x1-denali: Add volume up/down GPIO keys
From: Dale Whinham
Date: Wed Sep 02 2026 - 10:20:31 EST
Configure gpio6 and gpio8 as volume up and volume down respectively, to
enable the volume rocker located at the top of the screen.
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Signed-off-by: Dale Whinham <daleyo@xxxxxxxxx>
---
Changes in v2:
- Sort the new pin configuration nodes by controller and GPIO number (Konrad)
- Link to v1: https://patch.msgid.link/20260829-surface-pro-11-volume-buttons-v1-1-ace589343a68@xxxxxxxxx
To: Bjorn Andersson <andersson@xxxxxxxxxx>
To: Konrad Dybcio <konradybcio@xxxxxxxxxx>
To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
arch/arm64/boot/dts/qcom/x1-microsoft-denali.dtsi | 36 ++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/x1-microsoft-denali.dtsi b/arch/arm64/boot/dts/qcom/x1-microsoft-denali.dtsi
index 7559557610ed..6ed7db0ad53f 100644
--- a/arch/arm64/boot/dts/qcom/x1-microsoft-denali.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1-microsoft-denali.dtsi
@@ -20,9 +20,27 @@ aliases {
gpio-keys {
compatible = "gpio-keys";
- pinctrl-0 = <&hall_int_n_default>;
+ pinctrl-0 = <&vol_up_n>, <&vol_down_n>, <&hall_int_n_default>;
pinctrl-names = "default";
+ key-vol-up {
+ debounce-interval = <15>;
+ gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
+ label = "Volume Up";
+ linux,can-disable;
+ linux,code = <KEY_VOLUMEUP>;
+ wakeup-source;
+ };
+
+ key-vol-down {
+ debounce-interval = <15>;
+ gpios = <&pm8550_gpios 8 GPIO_ACTIVE_LOW>;
+ label = "Volume Down";
+ linux,can-disable;
+ linux,code = <KEY_VOLUMEDOWN>;
+ wakeup-source;
+ };
+
switch-lid {
gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>;
@@ -984,6 +1002,22 @@ &pcie6a_port0 {
};
&pm8550_gpios {
+ vol_up_n: vol-up-n-state {
+ bias-pull-up;
+ input-enable;
+ pins = "gpio6";
+ function = "normal";
+ power-source = <1>; /* 1.8V */
+ };
+
+ vol_down_n: vol-down-n-state {
+ bias-pull-up;
+ input-enable;
+ pins = "gpio8";
+ function = "normal";
+ power-source = <1>; /* 1.8V */
+ };
+
rtmr0_default: rtmr0-reset-n-active-state {
pins = "gpio10";
function = "normal";
---
base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f
change-id: 20260829-surface-pro-11-volume-buttons-f4b40e25cecb
Best regards,
--
Dale Whinham <daleyo@xxxxxxxxx>