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

Commit bca93934 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

ARM: dts: msm: Add FG GEN3 and RRADC device node for PM660



Fuel gauge GEN 3 and round-robin ADC device nodes for
PM600.

CRs-Fixed: 2076000
Change-Id: I8d2bf3bfe7f76f17048d74310393126a7f7a249b
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 457eb7b6
Loading
Loading
Loading
Loading
+74 −0
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@
		};

		pm660_charger: qcom,qpnp-smb2 {
			spmi-dev-container;
			compatible = "qcom,qpnp-smb2";
			#address-cells = <1>;
			#size-cells = <1>;
@@ -424,6 +425,79 @@
			};
		};

		pm660_rradc: rradc@4500 {
			compatible = "qcom,rradc";
			reg = <0x4500 0x100>;
			#address-cells = <1>;
			#size-cells = <0>;
			#io-channel-cells = <1>;
			qcom,pmic-revid = <&pm660_revid>;
		};

		pm660_fg: qpnp,fg {
			spmi-dev-container;
			compatible = "qcom,fg-gen3";
			#address-cells = <1>;
			#size-cells = <1>;
			qcom,pmic-revid = <&pm660_revid>;
			io-channels = <&pm660_rradc 0>,
				      <&pm660_rradc 7>;
			io-channel-names = "rradc_batt_id",
					   "rradc_die_temp";
			qcom,rradc-base = <0x4500>;
			qcom,fg-esr-timer-awake = <96 96>;
			qcom,fg-esr-timer-asleep = <256 256>;
			qcom,fg-esr-timer-charging = <0 96>;
			qcom,cycle-counter-en;
			status = "okay";

			qcom,fg-batt-soc@4000 {
				status = "okay";
				reg = <0x4000 0x100>;
				interrupts = <0x0 0x40 0x0>,
					     <0x0 0x40 0x1>,
					     <0x0 0x40 0x2>,
					     <0x0 0x40 0x3>,
					     <0x0 0x40 0x4>,
					     <0x0 0x40 0x5>,
					     <0x0 0x40 0x6>,
					     <0x0 0x40 0x7>;
				interrupt-names = "soc-update",
						  "soc-ready",
						  "bsoc-delta",
						  "msoc-delta",
						  "msoc-low",
						  "msoc-empty",
						  "msoc-high",
						  "msoc-full";
			};

			qcom,fg-batt-info@4100 {
				status = "okay";
				reg = <0x4100 0x100>;
				interrupts = <0x0 0x41 0x0>,
					     <0x0 0x41 0x1>,
					     <0x0 0x41 0x2>,
					     <0x0 0x41 0x3>,
					     <0x0 0x41 0x6>;
				interrupt-names = "vbatt-pred-delta",
						  "vbatt-low",
						  "esr-delta",
						  "batt-missing",
						  "batt-temp-delta";
			};

			qcom,fg-memif@4400 {
				status = "okay";
				reg = <0x4400 0x100>;
				interrupts = <0x0 0x44 0x0>,
					     <0x0 0x44 0x1>,
					     <0x0 0x44 0x2>;
				interrupt-names = "ima-rdy",
						  "mem-xcp",
						  "dma-grant";
			};
		};

		pm660_pbs: qcom,pbs@7300 {
			compatible = "qcom,qpnp-pbs";