Merge "ARM: dts: msm: Add GPIO keys configuration"

This commit is contained in:
qctecmdr
2022-08-17 03:17:30 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 43 additions and 1 deletions

View File

@@ -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";

View File

@@ -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";