Skip to content

Commit

Permalink
ARM: dts: nexus4: add volume keys
Browse files Browse the repository at this point in the history
Add qcom,pm8921-keypad based keypad to support vol_up and vol_down keys

Signed-off-by: Ivan Belokobylskiy <[email protected]>
  • Loading branch information
devbis authored and okias committed Sep 10, 2021
1 parent 12841ed commit 84ff194
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions arch/arm/boot/dts/qcom-apq8064-lge-nexus4-mako.dts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,27 @@
};
};

qcom,ssbi@500000 {
pmic@0 {
keypad@148 {
compatible = "qcom,pm8921-keypad";
reg = <0x148>;
interrupt-parent = <&pmicintc>;
interrupts = <74 1>, <75 1>;
linux,keymap = <
MATRIX_KEY(0, 0, KEY_VOLUMEDOWN)
MATRIX_KEY(0, 1, KEY_VOLUMEUP)
>;

keypad,num-rows = <1>;
keypad,num-columns = <5>;
debounce = <15>;
scan-delay = <32>;
row-hold = <91500>;
};
};
};

gsbi@12440000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C>;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/qcom_apq8064_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ CONFIG_WCN36XX_DEBUGFS=y
CONFIG_INPUT_EVDEV=y
# CONFIG_KEYBOARD_ATKBD is not set
CONFIG_KEYBOARD_GPIO=y
CONFIG_KEYBOARD_PMIC8XXX=y
# CONFIG_MOUSE_PS2 is not set
CONFIG_MOUSE_ELAN_I2C=y
CONFIG_INPUT_JOYSTICK=y
Expand Down

0 comments on commit 84ff194

Please sign in to comment.