@@ -66,6 +66,14 @@
};
};
+ thermal-zones {
+ cpu_thermal: cpu_thermal {
+ polling-delay-passive = <330>;
+ polling-delay = <1000>;
+ thermal-sensors = <&ths 0>;
+ };
+ };
+
timer {
compatible = "arm,armv7-timer";
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
@@ -473,6 +481,14 @@
status = "disabled";
};
+ ths: ths@01c25000 {
+ #thermal-sensor-cells = <0>;
+ /* compatible is in per-cpu dtsi file */
+ reg = <0x01c25000 0x44>;
+ clocks = <&pll2 0>;
+ clock-names = "pll2";
+ };
+
uart0: serial@01c28000 {
compatible = "snps,dw-apb-uart";
reg = <0x01c28000 0x400>;
@@ -124,3 +124,7 @@
<GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
};
+
+&ths {
+ compatible = "allwinner,sun8i-a23-ths";
+};
@@ -173,3 +173,7 @@
};
};
+
+&ths {
+ compatible = "allwinner,sun8i-a33-ths";
+};
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> --- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/sun8i-a23.dtsi | 4 ++++ arch/arm/boot/dts/sun8i-a33.dtsi | 4 ++++ 3 files changed, 24 insertions(+)