mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
ARM: dts: msm: Add VOLUME UP Key configuration for Monaco
VOL_UP key on Monaco is connected to pm5100 GPIO9. Add the pinctrl and gpio-key configuration for the same. Change-Id: I817d7cb7c368c8cc330454cb77a6ec14707f9720
This commit is contained in:
parent
670b216f88
commit
ff000e9666
2 changed files with 35 additions and 0 deletions
34
qcom/monaco-pmic.dtsi
Normal file
34
qcom/monaco-pmic.dtsi
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
&pm5100_gpios {
|
||||
key_vol_up {
|
||||
key_vol_up_default: key_vol_up_default {
|
||||
pins = "gpio9";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm5100_gpios 9 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -1227,6 +1227,7 @@
|
|||
};
|
||||
|
||||
#include "pm5100.dtsi"
|
||||
#include "monaco-pmic.dtsi"
|
||||
#include "monaco-pinctrl.dtsi"
|
||||
#include "monaco-coresight.dtsi"
|
||||
#include "msm-arm-smmu-monaco.dtsi"
|
||||
|
|
|
|||
Loading…
Reference in a new issue