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

Commit fa29e922 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

dt-bindings: qpnp-fg-gen4: support register with thermal core framework



Add support to register FG driver to register with thermal core
framework so that the battery temperature can be monitored by any
thermal governor and userspace is one of them.

Change-Id: Idfe7a2313330d01ceff3d205521939016376caed
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent ca60967b
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ First Level Node - FG Gen4 device
	Definition: Should specify the phandle of PMIC revid module. This is
		    used to identify the PMIC subtype.

- #thermal-sensor-cells: Should be 0. See thermal.txt for the description.

- qcom,fg-cutoff-voltage
	Usage:      optional
	Value type: <u32>
@@ -423,6 +425,7 @@ pm8150b_fg: qpnp,fg {
	#address-cells = <1>;
	#size-cells = <1>;
	qcom,pmic-revid = <&pm8150b_revid>;
	#thermal-sensor-cells = <0>;
	status = "okay";

	qcom,fg-batt-soc@4000 {
@@ -487,3 +490,32 @@ pm8150b_fg: qpnp,fg {
	};

};

======================================
Example for thermal zone configuration
======================================

thermal_zones {
	pm8150b_fg {
		polling-delay-passive = <200>;
		polling-delay = <200>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm8150b_fg>;

		pm8150b_fg_trip1: pm8150b-fg-trip1 {
			temperature = <40000>;
			hysteresis = <0>;
			type = "passive";
		};
		pm8150b_fg_trip2: pm8150b-fg-trip2 {
			temperature = <45000>;
			hysteresis = <0>;
			type = "passive";
		};
		pm8150b_fg_trip3: pm8150b-fg-trip3 {
			temperature = <55000>;
			hysteresis = <0>;
			type = "passive";
		};
	};
};