Renesas R-Car Thermal
Schema identifier ($id): "http://devicetree.org/schemas/thermal/rcar-thermal.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Niklas Söderlund <niklas.soderlund@ragnatech.se>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,thermal-r8a73a4","renesas,thermal-r8a7779"Item 2
Exact value (
const):"renesas,rcar-thermal"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,thermal-r8a7742","renesas,thermal-r8a7743","renesas,thermal-r8a7744"Item 2
Exact value (
const):"renesas,rcar-gen2-thermal"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,thermal-r8a7790","renesas,thermal-r8a7791","renesas,thermal-r8a7792","renesas,thermal-r8a7793"Item 2
Exact value (
const):"renesas,rcar-gen2-thermal"Item 3
Exact value (
const):"renesas,rcar-thermal"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,thermal-r8a774c0","renesas,thermal-r8a77970","renesas,thermal-r8a77990","renesas,thermal-r8a77995"
reg — required here #
Address ranges of the thermal registers. If more then one range is given the first one must be the common registers followed by each sensor according to the datasheet.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clocks — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
#thermal-sensor-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
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,thermal-r8a73a4","renesas,thermal-r8a7779"When the condition matches (
then) #Required in this object (
required):"resets","#thermal-sensor-cells"
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,thermal-r8a7779"When the condition matches (
then) #Required in this object (
required):"interrupts","clocks","power-domains"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
thermal@ffc48000 {
compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
reg = <0xffc48000 0x38>;
};
#include <dt-bindings/clock/r8a73a4-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
thermal@e61f0000 {
compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
reg = <0xe61f0000 0x14>, <0xe61f0100 0x38>,
<0xe61f0200 0x38>, <0xe61f0300 0x38>;
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp5_clks R8A73A4_CLK_THERMAL>;
power-domains = <&pd_c5>;
};
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
thermal: thermal@e61f0000 {
compatible = "renesas,thermal-r8a7790",
"renesas,rcar-gen2-thermal",
"renesas,rcar-thermal";
reg = <0xe61f0000 0x10>, <0xe61f0100 0x38>;
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 522>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 522>;
#thermal-sensor-cells = <0>;
};
thermal-zones {
cpu_thermal: cpu-thermal {
polling-delay-passive = <1000>;
polling-delay = <5000>;
thermal-sensors = <&thermal>;
trips {
cpu-crit {
temperature = <115000>;
hysteresis = <0>;
type = "critical";
};
};
cooling-maps {
};
};
};
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 18: R-Mobile APE6
Line 19: R-Car H1
Line 20: Generic without thermal-zone
Line 23: RZ/G1H
Line 24: RZ/G1M
Line 25: RZ/G1N
Line 26: Generic thermal-zone
Line 29: R-Car H2
Line 30: R-Car M2-W
Line 31: R-Car V2H
Line 32: R-Car M2-N
Line 33: Generic thermal-zone
Line 34: Generic without thermal-zone
Line 37: RZ/G2E
Line 38: R-Car V3M
Line 39: R-Car E3
Line 40: R-Car D3
Line 76: R-Mobile APE6
Line 77: R-Car H1
Line 88: R-Car H1
Line 98: Example (non interrupt support)
Line 105: Example (interrupt support)
Line 120: Example (with thermal-zone)