Commit 5142c392 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson
Browse files

ARM: dts: qcom: apq8064: create tsens device node



Create separate device node for thermal sensors on apq8064 platform.
Move related properties to the newly created device tree node.
This harmonizes apq8064 and ipq8064 device trees and allows gcc device
to be probed earlier by removing dependency on QFPROM nodes.

Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220521151437.1489111-5-dmitry.baryshkov@linaro.org
parent 864cfdeb
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ cpu0-thermal {
			polling-delay-passive = <250>;
			polling-delay = <1000>;

			thermal-sensors = <&gcc 7>;
			thermal-sensors = <&tsens 7>;
			coefficients = <1199 0>;

			trips {
@@ -126,7 +126,7 @@ cpu1-thermal {
			polling-delay-passive = <250>;
			polling-delay = <1000>;

			thermal-sensors = <&gcc 8>;
			thermal-sensors = <&tsens 8>;
			coefficients = <1132 0>;

			trips {
@@ -147,7 +147,7 @@ cpu2-thermal {
			polling-delay-passive = <250>;
			polling-delay = <1000>;

			thermal-sensors = <&gcc 9>;
			thermal-sensors = <&tsens 9>;
			coefficients = <1199 0>;

			trips {
@@ -168,7 +168,7 @@ cpu3-thermal {
			polling-delay-passive = <250>;
			polling-delay = <1000>;

			thermal-sensors = <&gcc 10>;
			thermal-sensors = <&tsens 10>;
			coefficients = <1132 0>;

			trips {
@@ -810,15 +810,24 @@ tsens_backup: backup_calib@414 {
		};

		gcc: clock-controller@900000 {
			compatible = "qcom,gcc-apq8064";
			compatible = "qcom,gcc-apq8064", "syscon";
			reg = <0x00900000 0x4000>;
			nvmem-cells = <&tsens_calib>, <&tsens_backup>;
			nvmem-cell-names = "calib", "calib_backup";
			#clock-cells = <1>;
			#power-domain-cells = <1>;
			#reset-cells = <1>;

			tsens: thermal-sensor {
				compatible = "qcom,msm8960-tsens";

				nvmem-cells = <&tsens_calib>, <&tsens_backup>;
				nvmem-cell-names = "calib", "calib_backup";
				interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
				interrupt-names = "uplow";

				#qcom,sensors = <11>;
				#thermal-sensor-cells = <1>;
			};
		};

		lcc: clock-controller@28000000 {
			compatible = "qcom,lcc-apq8064";