mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 04:59:05 +00:00
ARM: dts: msm: Add GPIO keys configuration
Add GPIO key configuration for OK/BACK physical keys. Change-Id: If3c8073c52220d7586aedbf84f299f39ca639afb
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
32bb4d4c07
commit
4a13cd8bd8
@@ -61,6 +61,26 @@
|
||||
};
|
||||
|
||||
&pm8550b_gpios {
|
||||
key_confirm {
|
||||
key_confirm_default: key_confirm_default {
|
||||
pins = "gpio2";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
key_back {
|
||||
key_back_default: key_back_default {
|
||||
pins = "gpio6";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
key_vol_up {
|
||||
key_vol_up_default: key_vol_up_default {
|
||||
pins = "gpio10";
|
||||
|
||||
@@ -54,7 +54,29 @@
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
pinctrl-0 = <&key_vol_up_default
|
||||
&key_confirm_default
|
||||
&key_back_default>;
|
||||
|
||||
confirm_key {
|
||||
label = "confirm_key";
|
||||
gpios = <&pm8550b_gpios 2 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_OK>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
|
||||
back_key {
|
||||
label = "back_key";
|
||||
gpios = <&pm8550b_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_BACK>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
|
||||
Reference in New Issue
Block a user