ARM: dts: msm: Enable home key for qrd sdm630

PM660 GPIO11 is used for home key on QRD sdm630 device.
Configure it to input/pull-up mode and add it to gpio-keys
device for key detection.

CRs-Fixed: 2008859
Change-Id: I3f673d925b2186069ac55ab7c9bf72fd241242c8
Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
This commit is contained in:
cyizhao 2017-02-13 19:35:32 +08:00 committed by Gerrit - the friendly Code Review server
parent 5a092dc83c
commit d67267d1e3

View file

@ -123,6 +123,18 @@
};
};
&pm660_gpios {
/* GPIO 11 for home key */
gpio@ca00 {
status = "ok";
qcom,mode = <0>;
qcom,pull = <0>;
qcom,vin-sel = <0>;
qcom,src-sel = <0>;
qcom,out-strength = <1>;
};
};
&soc {
gpio_keys {
compatible = "gpio-keys";
@ -137,5 +149,15 @@
gpio-key,wakeup;
debounce-interval = <15>;
};
home {
label = "home";
gpios = <&pm660_gpios 11 0x1>;
linux,input-type = <1>;
linux,code = <102>;
gpio-key,wakeup;
debounce-interval = <15>;
};
};
};