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:
parent
5a092dc83c
commit
d67267d1e3
1 changed files with 22 additions and 0 deletions
|
@ -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>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue