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

Commit ba262f66 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

dt-bindings: thermal: Add a property to account BCL threshold bit shift

Newer BCL hardware doesn't have the threshold registers bit shifted
compared to the ADC measurement register. Add a new flag
qcom,pmic7-threshold, which needs to be added for these new targets so
that the software driver will account for the bit shifting in the
threshold calculation.

Change-Id: I6bc33f14a2717e060c9d32d199df10cc269ca6f1
parent e0e90a03
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ Required Parameters:
		"bcl-lvl1",
		"bcl-lvl2",

Optional Parameters:
- qcom,pmic7-threshold:
	Value type: <bool>
	Definition: When this flag is defined, the BCL driver will account for
			no bit shift in the threshold registers.

Example:
		bcl@4200 {
			compatible = "qcom,bcl-v5";
@@ -38,4 +44,5 @@ Example:
					<0x2 0x42 0x1 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-lvl0",
						"bcl-lvl1";
			qcom,pmic7-threshold;
		};