Renesas R-Car Gen3 Thermal Sensor
Schema identifier ($id): "http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
On most R-Car Gen3 and later SoCs, the thermal sensor controllers (TSC) control the thermal sensors (THS) which are the analog circuits for measuring temperature (Tj) inside the LSI.
Maintainers (maintainers): "Niklas Söderlund <niklas.soderlund@ragnatech.se>"
Shared schema rule ($ref): thermal-sensor.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "renesas,r8a774a1-thermal", "renesas,r8a774b1-thermal", "renesas,r8a774e1-thermal", "renesas,r8a7795-thermal", "renesas,r8a7796-thermal", "renesas,r8a77961-thermal", "renesas,r8a77965-thermal", "renesas,r8a77980-thermal", "renesas,r8a779a0-thermal", "renesas,r8a779f0-thermal", "renesas,r8a779g0-thermal", "renesas,r8a779h0-thermal"
reg — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Array item rules (items) #
Item 1
TEMP1 interrupt
Item 2
TEMP2 interrupt
Item 3
TEMP3 interrupt
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
#thermal-sensor-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "power-domains", "resets"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
reg— not listed as required here #Array item rules (
items)Item 1
TSC0 registers
Item 2
TSC1 registers
Item 3
TSC2 registers
Item 4
TSC3 registers
Item 5
TSC4 registers
When the condition does not match (else) #
Properties and child nodes (
properties) #
reg— not listed as required here #Minimum number of items (
minItems):2Array item rules (
items)Item 1
TSC1 registers
Item 2
TSC2 registers
Item 3
TSC3 registers
Item 4
TSC4 registers
Condition (
if) #This rule must not match (
not) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r8a779f0-thermal","renesas,r8a779g0-thermal","renesas,r8a779h0-thermal"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
tsc: thermal@e6198000 {
compatible = "renesas,r8a7795-thermal";
reg = <0xe6198000 0x100>,
<0xe61a0000 0x100>,
<0xe61a8000 0x100>;
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>;
resets = <&cpg 522>;
#thermal-sensor-cells = <1>;
};
thermal-zones {
sensor_thermal: sensor-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;
thermal-sensors = <&tsc 0>;
trips {
sensor1_crit: sensor1-crit {
temperature = <90000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};
#include <dt-bindings/clock/r8a779a0-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a779a0-sysc.h>
tsc_r8a779a0: thermal@e6190000 {
compatible = "renesas,r8a779a0-thermal";
reg = <0xe6190000 0x200>,
<0xe6198000 0x200>,
<0xe61a0000 0x200>,
<0xe61a8000 0x200>,
<0xe61b0000 0x200>;
clocks = <&cpg CPG_MOD 919>;
power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
resets = <&cpg 919>;
#thermal-sensor-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 2: Copyright (C) 2020 Renesas Electronics Corp.
Line 23: RZ/G2M
Line 24: RZ/G2N
Line 25: RZ/G2H
Line 26: R-Car H3
Line 27: R-Car M3-W
Line 28: R-Car M3-W+
Line 29: R-Car M3-N
Line 30: R-Car V3H
Line 31: R-Car V3U
Line 32: R-Car S4-8
Line 33: R-Car V4H
Line 34: R-Car V4M