Commit b37da9c8 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Maxime Ripard

ARM: dts: sun8i-h3: Add thermal sensor and thermal zones

There is just one sensor for the CPU.
Signed-off-by: default avatarOndrej Jirman <megous@megous.com>
Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 1b084d2e
...@@ -208,6 +208,26 @@ mali: gpu@1c40000 { ...@@ -208,6 +208,26 @@ mali: gpu@1c40000 {
assigned-clocks = <&ccu CLK_GPU>; assigned-clocks = <&ccu CLK_GPU>;
assigned-clock-rates = <384000000>; assigned-clock-rates = <384000000>;
}; };
ths: thermal-sensor@1c25000 {
compatible = "allwinner,sun8i-h3-ths";
reg = <0x01c25000 0x400>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
resets = <&ccu RST_BUS_THS>;
clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
clock-names = "bus", "mod";
nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration";
#thermal-sensor-cells = <0>;
};
};
thermal-zones {
cpu_thermal: cpu-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&ths 0>;
};
}; };
}; };
......
...@@ -231,6 +231,12 @@ mmc2: mmc@1c11000 { ...@@ -231,6 +231,12 @@ mmc2: mmc@1c11000 {
sid: eeprom@1c14000 { sid: eeprom@1c14000 {
/* compatible is in per SoC .dtsi file */ /* compatible is in per SoC .dtsi file */
reg = <0x1c14000 0x400>; reg = <0x1c14000 0x400>;
#address-cells = <1>;
#size-cells = <1>;
ths_calibration: thermal-sensor-calibration@34 {
reg = <0x34 4>;
};
}; };
usb_otg: usb@1c19000 { usb_otg: usb@1c19000 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment