Merge "ARM: dts: msm: enable GPIO buttons for MSM8992 CDP and MTP"

This commit is contained in:
Linux Build Service Account 2014-12-02 17:39:45 -08:00 committed by Gerrit - the friendly Code Review server
commit d9068dbf4a
2 changed files with 112 additions and 0 deletions

View file

@ -87,6 +87,30 @@
};
&pm8994_gpios {
gpio@c200 { /* GPIO 3 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c300 { /* GPIO 4 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c400 { /* GPIO 5 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c700 { /* GPIO 8 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
@ -140,4 +164,36 @@
qcom,panel-maxy = <2703>;
qcom,key-codes = <158 139 102 217>;
};
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
vol_up {
label = "volume_up";
gpios = <&pm8994_gpios 3 0x1>;
linux,input-type = <1>;
linux,code = <115>;
gpio-key,wakeup;
debounce-interval = <15>;
};
cam_snapshot {
label = "cam_snapshot";
gpios = <&pm8994_gpios 4 0x1>;
linux,input-type = <1>;
linux,code = <766>;
gpio-key,wakeup;
debounce-interval = <15>;
};
cam_focus {
label = "cam_focus";
gpios = <&pm8994_gpios 5 0x1>;
linux,input-type = <1>;
linux,code = <528>;
gpio-key,wakeup;
debounce-interval = <15>;
};
};
};

View file

@ -96,6 +96,30 @@
};
&pm8994_gpios {
gpio@c200 { /* GPIO 3 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c300 { /* GPIO 4 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c400 { /* GPIO 5 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
qcom,vin-sel = <2>; /* Logical 1 voltage value 1.8v */
qcom,src-sel = <0>; /* Constant */
status = "okay";
};
gpio@c700 { /* GPIO 8 */
qcom,mode = <0>; /* Digital in */
qcom,pull = <0>; /* PULL up 30uA */
@ -149,4 +173,36 @@
qcom,panel-maxy = <2703>;
qcom,key-codes = <158 139 102 217>;
};
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
vol_up {
label = "volume_up";
gpios = <&pm8994_gpios 3 0x1>;
linux,input-type = <1>;
linux,code = <115>;
gpio-key,wakeup;
debounce-interval = <15>;
};
cam_snapshot {
label = "cam_snapshot";
gpios = <&pm8994_gpios 4 0x1>;
linux,input-type = <1>;
linux,code = <766>;
gpio-key,wakeup;
debounce-interval = <15>;
};
cam_focus {
label = "cam_focus";
gpios = <&pm8994_gpios 5 0x1>;
linux,input-type = <1>;
linux,code = <528>;
gpio-key,wakeup;
debounce-interval = <15>;
};
};
};