Renesas RZ/G3S Thermal Sensor Unit

Schema identifier ($id): "http://devicetree.org/schemas/thermal/renesas,r9a08g045-tsu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The thermal sensor unit (TSU) measures the temperature(Tj) inside the LSI.

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>"

Shared schema rule ($ref): thermal-sensor.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,r9a08g045-tsu"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

TSU module clock

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Array item rules (items) #

Item 1

TSU module reset

io-channels — required here #

Array item rules (items) #

Item 1

ADC channel which reports the TSU temperature

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tsu"

#thermal-sensor-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "power-domains", "resets", "io-channels", "io-channel-names", "#thermal-sensor-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a08g045-cpg.h>

tsu: thermal@10059000 {
    compatible = "renesas,r9a08g045-tsu";
    reg = <0x10059000 0x1000>;
    clocks = <&cpg CPG_MOD R9A08G045_TSU_PCLK>;
    resets = <&cpg R9A08G045_TSU_PRESETN>;
    power-domains = <&cpg>;
    #thermal-sensor-cells = <0>;
    io-channels = <&adc 8>;
    io-channel-names = "tsu";
};

thermal-zones {
    cpu-thermal {
        polling-delay-passive = <250>;
        polling-delay = <1000>;
        thermal-sensors = <&tsu>;

        trips {
            sensor_crit: sensor-crit {
                temperature = <125000>;
                hysteresis = <1000>;
                type = "critical";
            };
            target: trip-point {
                temperature = <100000>;
                hysteresis = <1000>;
                type = "passive";
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page