mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
arm64: dts: qcom: sc8280xp-crd: add support for volume-up key
Add support for the keypad volume-up key on the debug extension board. This is useful to have when testing PMIC interrupt handling, and the key can also be used to wake up from deep suspend states (CX shutdown). Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250307171036.7276-1-johan+linaro@kernel.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
b49e37de8e
commit
3529d95361
1 changed files with 22 additions and 0 deletions
|
@ -37,6 +37,20 @@
|
|||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-0 = <&kypd_vol_up_n>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
key-vol-up {
|
||||
label = "volume_up";
|
||||
gpios = <&pmc8280_1_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
pmic-glink {
|
||||
compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
|
||||
|
||||
|
@ -885,6 +899,14 @@
|
|||
function = "normal";
|
||||
};
|
||||
|
||||
kypd_vol_up_n: kypd-vol-up-n-state {
|
||||
pins = "gpio6";
|
||||
function = "normal";
|
||||
power-source = <0>; /* 3.3 V */
|
||||
bias-pull-up;
|
||||
input-enable;
|
||||
};
|
||||
|
||||
misc_3p3_reg_en: misc-3p3-reg-en-state {
|
||||
pins = "gpio2";
|
||||
function = "normal";
|
||||
|
|
Loading…
Add table
Reference in a new issue