summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingwei Zhao <cyizhao@codeaurora.org>2017-02-14 13:45:33 +0800
committerYingwei Zhao <cyizhao@codeaurora.org>2017-02-16 13:42:49 +0800
commit830c80287495b7bb25b3b9974327dce47dfcb109 (patch)
treefbcd313e5bb61c8503ea3e2a4886d75c4d5be5e2
parent3ba1a36ad812171629b91f5a49e486b2529c22a2 (diff)
ARM: dts: msm: Add pmic bring up changes for SDM630 QRD
Add battery configuration, enable volume up key, and add PM660A configuration for SDM630 QRD device. CRs-Fixed: 2006325 Change-Id: Ifa87e30ebaced84b18c26041c0f659332266d5ee Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
-rw-r--r--arch/arm/boot/dts/qcom/sdm630-qrd.dtsi37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom/sdm630-qrd.dtsi b/arch/arm/boot/dts/qcom/sdm630-qrd.dtsi
index 59afb993fb83..b1fed582aa1e 100644
--- a/arch/arm/boot/dts/qcom/sdm630-qrd.dtsi
+++ b/arch/arm/boot/dts/qcom/sdm630-qrd.dtsi
@@ -10,8 +10,19 @@
* GNU General Public License for more details.
*/
+#include "msm-pm660a.dtsi"
#include "sdm660-pinctrl.dtsi"
/ {
+ qrd_batterydata: qcom,battery-data {
+ qcom,batt-id-range-pct = <15>;
+
+ #include "fg-gen3-batterydata-qrd-skuk-4v4-3000mah.dtsi"
+ };
+};
+
+&pm660_fg {
+ qcom,battery-data = <&qrd_batterydata>;
+ qcom,fg-jeita-thresholds = <0 5 55 55>;
};
&uartblsp1dm1 {
@@ -100,5 +111,31 @@
status = "ok";
};
+&pm660l_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 = <&pm660l_gpios 7 0x1>;
+ linux,input-type = <1>;
+ linux,code = <115>;
+ gpio-key,wakeup;
+ debounce-interval = <15>;
+ };
+ };
};