]>
Commit | Line | Data |
---|---|---|
1567e95a MS |
1 | Binding for Thermal Sensor driver for BCM2835 SoCs. |
2 | ||
3 | Required parameters: | |
4 | ------------------- | |
5 | ||
1e2ac982 SW |
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. | |
cff1d293 | 10 | #thermal-sensor-cells: should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.yaml) |
1567e95a MS |
11 | |
12 | Example: | |
13 | ||
1e2ac982 SW |
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 | ||
1567e95a MS |
36 | thermal: thermal@7e212000 { |
37 | compatible = "brcm,bcm2835-thermal"; | |
38 | reg = <0x7e212000 0x8>; | |
39 | clocks = <&clocks BCM2835_CLOCK_TSENS>; | |
1e2ac982 | 40 | #thermal-sensor-cells = <0>; |
1567e95a | 41 | }; |