ARM: dts: msm: add gpio keys support for msmcobalt
Add support for gpio keys on msmcobalt CDP and MTP. CDP and MTP use pmcobalt gpios 6, 7 and 8 for volume up, camera snapshot and camera focus respectively. CDP additionally supports home key through pmcobalt gpio 5. Change-Id: I31f3ed15e8cf02046cfcc8d9c062522065bb022c Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
This commit is contained in:
parent
b2b8dc615f
commit
236b83d1ea
2 changed files with 146 additions and 0 deletions
|
@ -97,6 +97,46 @@
|
|||
};
|
||||
|
||||
&pmcobalt_gpios {
|
||||
/* GPIO 5 for Home Key */
|
||||
gpio@c400 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 6 for Vol+ Key */
|
||||
gpio@c500 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 7 for Snapshot Key */
|
||||
gpio@c600 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 8 for Focus Key */
|
||||
gpio@c700 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
gpio@cc00 { /* GPIO 13 */
|
||||
qcom,mode = <1>;
|
||||
qcom,output-type = <0>;
|
||||
|
@ -358,4 +398,47 @@
|
|||
sound-9335 {
|
||||
qcom,wcn-btfm;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
input-name = "gpio-keys";
|
||||
status = "okay";
|
||||
|
||||
home {
|
||||
label = "home";
|
||||
gpios = <&pmcobalt_gpios 5 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <102>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
|
||||
};
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pmcobalt_gpios 6 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <115>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_snapshot {
|
||||
label = "cam_snapshot";
|
||||
gpios = <&pmcobalt_gpios 7 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <766>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_focus {
|
||||
label = "cam_focus";
|
||||
gpios = <&pmcobalt_gpios 8 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <528>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -97,6 +97,36 @@
|
|||
};
|
||||
|
||||
&pmcobalt_gpios {
|
||||
/* GPIO 6 for Vol+ Key */
|
||||
gpio@c500 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 7 for Snapshot Key */
|
||||
gpio@c600 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 8 for Focus Key */
|
||||
gpio@c700 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
gpio@cc00 { /* GPIO 13 */
|
||||
qcom,mode = <1>;
|
||||
qcom,output-type = <0>;
|
||||
|
@ -279,4 +309,37 @@
|
|||
sound-9335 {
|
||||
qcom,wcn-btfm;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
input-name = "gpio-keys";
|
||||
status = "okay";
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pmcobalt_gpios 6 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <115>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_snapshot {
|
||||
label = "cam_snapshot";
|
||||
gpios = <&pmcobalt_gpios 7 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <766>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_focus {
|
||||
label = "cam_focus";
|
||||
gpios = <&pmcobalt_gpios 8 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <528>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue