ARM: dts: msm: Enable volume up key for 8998 QRD interposer

GPIO7 is used for volume up key on 8998 QRD interposer device,
configure it to input and pull-up and add gpio-keys device to
enable the key detection.

CRs-Fixed: 1098142
Change-Id: I45ec6a02fc6f74ee871455c5662f62f1cfa7bc74
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
This commit is contained in:
cyizhao 2016-12-13 17:55:50 +08:00 committed by Gerrit - the friendly Code Review server
parent 3162449f7d
commit ce1f9f6dab

View file

@ -113,3 +113,32 @@
qcom,vdd-voltage-level = <0 925000 925000>; qcom,vdd-voltage-level = <0 925000 925000>;
core-supply = <&pmfalcon_l1>; core-supply = <&pmfalcon_l1>;
}; };
&pm2falcon_gpios {
/* GPIO 7 for VOL_UP */
gpio@c600 {
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";
input-name = "gpio-keys";
status = "ok";
vol_up {
label = "volume_up";
gpios = <&pm2falcon_gpios 7 0x1>;
linux,input-type = <1>;
linux,code = <115>;
gpio-key,wakeup;
debounce-interval = <15>;
};
};
};