From 84ff1949df49e836be67c34d667eee5832bfc16f Mon Sep 17 00:00:00 2001 From: Ivan Belokobylskiy Date: Tue, 7 Sep 2021 13:13:52 +0300 Subject: [PATCH] ARM: dts: nexus4: add volume keys Add qcom,pm8921-keypad based keypad to support vol_up and vol_down keys Signed-off-by: Ivan Belokobylskiy --- .../boot/dts/qcom-apq8064-lge-nexus4-mako.dts | 21 +++++++++++++++++++ arch/arm/configs/qcom_apq8064_defconfig | 1 + 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-lge-nexus4-mako.dts b/arch/arm/boot/dts/qcom-apq8064-lge-nexus4-mako.dts index 2000a9dd4139d..a76688b1bc1d2 100644 --- a/arch/arm/boot/dts/qcom-apq8064-lge-nexus4-mako.dts +++ b/arch/arm/boot/dts/qcom-apq8064-lge-nexus4-mako.dts @@ -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 = ; diff --git a/arch/arm/configs/qcom_apq8064_defconfig b/arch/arm/configs/qcom_apq8064_defconfig index 237d3db94e143..274dd536d82fd 100644 --- a/arch/arm/configs/qcom_apq8064_defconfig +++ b/arch/arm/configs/qcom_apq8064_defconfig @@ -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