Skip to content

Commit 1e2ac98

Browse files
lategoodbyeEduardo Valentin
authored andcommitted
dt-bindings: Add thermal zone to bcm2835-thermal example
Add a thermal zone in order to make the example complete. Signed-off-by: Stefan Wahren <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
1 parent 75f78d6 commit 1e2ac98

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,39 @@ Binding for Thermal Sensor driver for BCM2835 SoCs.
33
Required parameters:
44
-------------------
55

6-
compatible: should be one of: "brcm,bcm2835-thermal",
7-
"brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
8-
reg: Address range of the thermal registers.
9-
clocks: Phandle of the clock used by the thermal sensor.
6+
compatible: should be one of: "brcm,bcm2835-thermal",
7+
"brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
8+
reg: Address range of the thermal registers.
9+
clocks: Phandle of the clock used by the thermal sensor.
10+
#thermal-sensor-cells: should be 0 (see thermal.txt)
1011

1112
Example:
1213

14+
thermal-zones {
15+
cpu_thermal: cpu-thermal {
16+
polling-delay-passive = <0>;
17+
polling-delay = <1000>;
18+
19+
thermal-sensors = <&thermal>;
20+
21+
trips {
22+
cpu-crit {
23+
temperature = <80000>;
24+
hysteresis = <0>;
25+
type = "critical";
26+
};
27+
};
28+
29+
coefficients = <(-538) 407000>;
30+
31+
cooling-maps {
32+
};
33+
};
34+
};
35+
1336
thermal: thermal@7e212000 {
1437
compatible = "brcm,bcm2835-thermal";
1538
reg = <0x7e212000 0x8>;
1639
clocks = <&clocks BCM2835_CLOCK_TSENS>;
40+
#thermal-sensor-cells = <0>;
1741
};

0 commit comments

Comments
 (0)