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

Commit e5126d13 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add device-tree node for QG_LITE"

parents 6aca7cce 8f84e95a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ First Level Node - QGAUGE device
- compatible
	Usage:      required
	Value type: <string>
	Definition: Should be "qcom,qpnp-qg".
	Definition: Should be "qcom,qpnp-qg" or "qcom,qpnp-qg-lite".

- qcom,pmic-revid
	Usage:      required
+35 −0
Original line number Diff line number Diff line
@@ -173,6 +173,41 @@
		pm2250_spmi: qcom,pm2250-spmi {
			compatible = "qcom,pm2250-spmi";
		};

		pm2250_qg: qpnp,qg {
			compatible = "qcom,qpnp-qg-lite";
			#address-cells = <1>;
			#size-cells = <1>;

			qcom,vbatt-cutoff-mv = <3400>;
			qcom,vbatt-low-mv = <3500>;
			qcom,vbatt-low-cold-mv = <3800>;
			qcom,vbatt-empty-mv = <3200>;
			qcom,vbatt-empty-cold-mv = <3000>;
			qcom,s3-entry-fifo-length = <2>;

			qcom,pmic-revid = <&pm2250_revid>;
			io-channels = <&pm2250_vadc ADC_BAT_THERM_PU2>,
				      <&pm2250_vadc ADC_BAT_ID_PU2>;
			io-channel-names = "batt-therm", "batt-id";

			qcom,qgauge@4800 {
				status = "okay";
				reg = <0x4800 0x100>;
				interrupts =
					<0x0 0x48 0x2 IRQ_TYPE_EDGE_RISING>,
					<0x0 0x48 0x3 IRQ_TYPE_EDGE_RISING>,
					<0x0 0x48 0x5 IRQ_TYPE_EDGE_RISING>;
				interrupt-names = "qg-vbat-empty",
						  "qg-fifo-done",
						  "qg-good-ocv";
			};

			qcom,qg-sdam@b600 {
				status = "okay";
				reg = <0xb600 0x100>;
			};
		};
	};

	pm2250_1: qcom,pm2250@1 {
+17 −0
Original line number Diff line number Diff line
#include "scuba-audio-overlay.dtsi"

&soc {
	scuba_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
		#include "qg-batterydata-alium-3600mah.dtsi"
		#include "qg-batterydata-atl466271_3300mAh.dtsi"
	};
};

&pm2250_rg_leds {
	status = "disabled";
};

&pm2250_qg {
	qcom,battery-data = <&scuba_batterydata>;
	qcom,qg-iterm-ma = <100>;
	qcom,hold-soc-while-full;
	qcom,linearize-soc;
	qcom,cl-feedback-on;
	qcom,tcss-enable;
	qcom,fvss-enable;
	qcom,fvss-vbatt-mv = <3500>;
	qcom,bass-enable;
};
+17 −0
Original line number Diff line number Diff line
&soc {
	scuba_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
		#include "qg-batterydata-alium-3600mah.dtsi"
		#include "qg-batterydata-atl466271_3300mAh.dtsi"
	};
};

&pm2250_qg {
	qcom,battery-data = <&scuba_batterydata>;
	qcom,qg-iterm-ma = <100>;
	qcom,hold-soc-while-full;
	qcom,linearize-soc;
	qcom,cl-feedback-on;
	qcom,tcss-enable;
	qcom,fvss-enable;
	qcom,fvss-vbatt-mv = <3500>;
	qcom,bass-enable;
};