Skip to content

Commit d34654f

Browse files
konradybcioandersson
authored andcommitted
arm64: dts: qcom: qrb4210-rb2: Enable on-board buttons
Enable the PMIC GPIO- and RESIN-connected buttons on the board. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230613-topic-rb2_-v1-1-696cd7dbda28@linaro.org
1 parent 8734d33 commit d34654f

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/qrb4210-rb2.dts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <dt-bindings/leds/common.h>
99
#include "sm4250.dtsi"
10+
#include "pm6125.dtsi"
1011

1112
/ {
1213
model = "Qualcomm Technologies, Inc. QRB4210 RB2";
@@ -28,6 +29,23 @@
2829
};
2930
};
3031

32+
gpio-keys {
33+
compatible = "gpio-keys";
34+
label = "gpio-keys";
35+
36+
pinctrl-0 = <&kypd_vol_up_n>;
37+
pinctrl-names = "default";
38+
39+
key-volume-up {
40+
label = "Volume Up";
41+
linux,code = <KEY_VOLUMEUP>;
42+
gpios = <&pm6125_gpios 5 GPIO_ACTIVE_LOW>;
43+
debounce-interval = <15>;
44+
linux,can-disable;
45+
wakeup-source;
46+
};
47+
};
48+
3149
hdmi-connector {
3250
compatible = "hdmi-connector";
3351
type = "a";
@@ -219,6 +237,25 @@
219237
status = "okay";
220238
};
221239

240+
&pm6125_gpios {
241+
kypd_vol_up_n: kypd-vol-up-n-state {
242+
pins = "gpio5";
243+
function = "normal";
244+
power-source = <0>;
245+
bias-pull-up;
246+
input-enable;
247+
};
248+
};
249+
250+
&pon_pwrkey {
251+
status = "okay";
252+
};
253+
254+
&pon_resin {
255+
linux,code = <KEY_VOLUMEDOWN>;
256+
status = "okay";
257+
};
258+
222259
&qupv3_id_0 {
223260
status = "okay";
224261
};

0 commit comments

Comments
 (0)