Commit 0fe4d218 authored by Stefan Wahren's avatar Stefan Wahren Committed by Eric Anholt

ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point

As suggested by Eduardo Valentin this adds the thermal zone for
the bcm2835 SoC with its single thermal sensor. We start with
the criticial trip point and leave the cooling devices empty
since we don't have any at the moment. Since the coefficients
could vary depending on the SoC we need to define them separate.
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Acked-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 072f58af
...@@ -24,6 +24,10 @@ arm-pmu { ...@@ -24,6 +24,10 @@ arm-pmu {
}; };
}; };
&cpu_thermal {
coefficients = <(-538) 407000>;
};
/* enable thermal sensor with the correct compatible property set */ /* enable thermal sensor with the correct compatible property set */
&thermal { &thermal {
compatible = "brcm,bcm2835-thermal"; compatible = "brcm,bcm2835-thermal";
......
...@@ -77,6 +77,10 @@ &intc { ...@@ -77,6 +77,10 @@ &intc {
interrupts = <8>; interrupts = <8>;
}; };
&cpu_thermal {
coefficients = <(-538) 407000>;
};
/* enable thermal sensor with the correct compatible property set */ /* enable thermal sensor with the correct compatible property set */
&thermal { &thermal {
compatible = "brcm,bcm2836-thermal"; compatible = "brcm,bcm2836-thermal";
......
...@@ -19,6 +19,26 @@ chosen { ...@@ -19,6 +19,26 @@ chosen {
bootargs = "earlyprintk console=ttyAMA0"; bootargs = "earlyprintk console=ttyAMA0";
}; };
thermal-zones {
cpu_thermal: cpu-thermal {
polling-delay-passive = <0>;
polling-delay = <1000>;
thermal-sensors = <&thermal>;
trips {
cpu-crit {
temperature = <80000>;
hysteresis = <0>;
type = "critical";
};
};
cooling-maps {
};
};
};
soc { soc {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
...@@ -430,6 +450,7 @@ thermal: thermal@7e212000 { ...@@ -430,6 +450,7 @@ thermal: thermal@7e212000 {
compatible = "brcm,bcm2835-thermal"; compatible = "brcm,bcm2835-thermal";
reg = <0x7e212000 0x8>; reg = <0x7e212000 0x8>;
clocks = <&clocks BCM2835_CLOCK_TSENS>; clocks = <&clocks BCM2835_CLOCK_TSENS>;
#thermal-sensor-cells = <0>;
status = "disabled"; status = "disabled";
}; };
......
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