ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON

MSM GPIO 64 is connected to Camera Focus Button and MSM GPIO 113 is
connected to Camera Snapshot Button. Add the nodes for these buttons
along with their pintrl configuration.

Change-Id: Ifc03c72233dcf1081fc3f2fed495d19e48bb8c7d
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
This commit is contained in:
Himanshu Aggarwal 2016-12-12 16:22:27 +05:30
parent a80e267a8c
commit 66f8dff8c8
2 changed files with 48 additions and 1 deletions

View file

@ -760,5 +760,33 @@
bias-disable;
};
};
tlmm_gpio_key {
gpio_key_active: gpio_key_active {
mux {
pins = "gpio64", "gpio113";
function = "gpio";
};
config {
pins = "gpio64", "gpio113";
drive-strength = <2>;
bias-pull-up;
};
};
gpio_key_suspend: gpio_key_suspend {
mux {
pins = "gpio64", "gpio113";
function = "gpio";
};
config {
pins = "gpio64", "gpio113";
drive-strength = <2>;
bias-pull-up;
};
};
};
};
};

View file

@ -1672,9 +1672,28 @@
&soc {
gpio_keys {
status = "okay";
compatible = "gpio-keys";
input-name = "gpio-keys";
status = "okay";
pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend";
pinctrl-0 = <&gpio_key_active>;
pinctrl-1 = <&gpio_key_suspend>;
camera_focus {
label = "camera_focus";
gpios = <&tlmm 64 0x1>;
linux,input-type = <1>;
linux,code = <0x210>;
debounce-interval = <15>;
};
camera_snapshot {
label = "camera_snapshot";
gpios = <&tlmm 113 0x1>;
linux,input-type = <1>;
linux,code = <0x2fe>;
debounce-interval = <15>;
};
vol_up {
label = "volume_up";