2016-12-22 10:38:20 +00:00
|
|
|
* DT bindings for Renesas R-Car Gen3 Thermal Sensor driver
|
|
|
|
|
|
|
|
On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
|
|
|
|
sensors (THS) which are the analog circuits for measuring temperature (Tj)
|
|
|
|
inside the LSI.
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : "renesas,<soctype>-thermal",
|
|
|
|
Examples with soctypes are:
|
2018-08-17 14:53:04 +00:00
|
|
|
- "renesas,r8a774a1-thermal" (RZ/G2M)
|
2016-12-22 10:38:20 +00:00
|
|
|
- "renesas,r8a7795-thermal" (R-Car H3)
|
|
|
|
- "renesas,r8a7796-thermal" (R-Car M3-W)
|
2018-04-26 19:42:01 +00:00
|
|
|
- "renesas,r8a77965-thermal" (R-Car M3-N)
|
2018-10-09 19:10:14 +00:00
|
|
|
- "renesas,r8a77980-thermal" (R-Car V3H)
|
2016-12-22 10:38:20 +00:00
|
|
|
- reg : Address ranges of the thermal registers. Each sensor
|
|
|
|
needs one address range. Sorting must be done in
|
|
|
|
increasing order according to datasheet, i.e.
|
|
|
|
TSC1, TSC2, ...
|
|
|
|
- clocks : Must contain a reference to the functional clock.
|
|
|
|
- #thermal-sensor-cells : must be <1>.
|
|
|
|
|
|
|
|
Optional properties:
|
|
|
|
|
2018-11-07 13:35:00 +00:00
|
|
|
- interrupts : interrupts routed to the TSC (must be 3).
|
2016-12-22 10:38:20 +00:00
|
|
|
- power-domain : Must contain a reference to the power domain. This
|
|
|
|
property is mandatory if the thermal sensor instance
|
|
|
|
is part of a controllable power domain.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
tsc: thermal@e6198000 {
|
|
|
|
compatible = "renesas,r8a7795-thermal";
|
2018-04-17 20:49:58 +00:00
|
|
|
reg = <0 0xe6198000 0 0x100>,
|
|
|
|
<0 0xe61a0000 0 0x100>,
|
|
|
|
<0 0xe61a8000 0 0x100>;
|
2016-12-22 10:38:20 +00:00
|
|
|
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&cpg CPG_MOD 522>;
|
|
|
|
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
|
|
|
|
#thermal-sensor-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
thermal-zones {
|
|
|
|
sensor_thermal1: sensor-thermal1 {
|
|
|
|
polling-delay-passive = <250>;
|
|
|
|
polling-delay = <1000>;
|
|
|
|
thermal-sensors = <&tsc 0>;
|
|
|
|
|
|
|
|
trips {
|
|
|
|
sensor1_crit: sensor1-crit {
|
|
|
|
temperature = <90000>;
|
|
|
|
hysteresis = <2000>;
|
|
|
|
type = "critical";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|