Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 830c8028 authored by Yingwei Zhao's avatar Yingwei Zhao
Browse files

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: default avatarYingwei Zhao <cyizhao@codeaurora.org>
parent 3ba1a36a
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -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>;
		};
	};
};