Commit 511b4858 authored by Hui Liu's avatar Hui Liu Committed by Bjorn Andersson

arm64: dts: qcom: qcm6490-idp: enable PMIC Volume and Power buttons

The Volume Down & Power buttons are controlled by the PMIC via
the PON hardware, and the Volume Up is connected to a PMIC gpio.

Enable the necessary hardware and setup the GPIO state for the
Volume Up gpio key.
Signed-off-by: default avatarHui Liu <quic_huliu@quicinc.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240311-gpio-keys-v5-1-08823582f6c9@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 9b1e8911
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define PM7250B_SID 8 #define PM7250B_SID 8
#define PM7250B_SID1 9 #define PM7250B_SID1 9
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
...@@ -59,6 +60,22 @@ lcd_disp_bias: regulator-lcd-disp-bias { ...@@ -59,6 +60,22 @@ lcd_disp_bias: regulator-lcd-disp-bias {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <&key_vol_up_default>;
pinctrl-names = "default";
key-volume-up {
label = "Volume_up";
gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
wakeup-source;
debounce-interval = <15>;
linux,can-disable;
};
};
reserved-memory { reserved-memory {
xbl_mem: xbl@80700000 { xbl_mem: xbl@80700000 {
reg = <0x0 0x80700000 0x0 0x100000>; reg = <0x0 0x80700000 0x0 0x100000>;
...@@ -511,6 +528,16 @@ pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state { ...@@ -511,6 +528,16 @@ pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state {
}; };
}; };
&pm7325_gpios {
key_vol_up_default: key-vol-up-state {
pins = "gpio6";
function = "normal";
input-enable;
bias-pull-up;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
};
&pm8350c_pwm { &pm8350c_pwm {
pinctrl-0 = <&pmic_lcd_bl_pwm>; pinctrl-0 = <&pmic_lcd_bl_pwm>;
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -540,6 +567,15 @@ led@3 { ...@@ -540,6 +567,15 @@ led@3 {
}; };
}; };
&pon_pwrkey {
status = "okay";
};
&pon_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
};
&qupv3_id_0 { &qupv3_id_0 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment