| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/thermal/renesas,r9a09g047-tsu.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Renesas RZ/G3E Temperature Sensor Unit (TSU) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- John Madieu <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The Temperature Sensor Unit (TSU) is an integrated thermal sensor that |
| 14 |
monitors the chip temperature on the Renesas RZ/G3E SoC. The TSU provides |
| 15 |
real-time temperature measurements for thermal management. |
| 16 |
|
| 17 |
properties: |
| 18 |
compatible: |
| 19 |
oneOf: |
| 20 |
- enum: |
| 21 |
- renesas,r9a09g047-tsu # RZ/G3E |
| 22 |
- renesas,r9a09g077-tsu # RZ/T2H |
| 23 |
- items: |
| 24 |
- enum: |
| 25 |
- renesas,r9a09g056-tsu # RZ/V2N |
| 26 |
- renesas,r9a09g057-tsu # RZ/V2H |
| 27 |
- const: renesas,r9a09g047-tsu # RZ/G3E |
| 28 |
- items: |
| 29 |
- const: renesas,r9a09g087-tsu # RZ/N2H |
| 30 |
- const: renesas,r9a09g077-tsu # RZ/T2H |
| 31 |
|
| 32 |
reg: |
| 33 |
maxItems: 1 |
| 34 |
|
| 35 |
clocks: |
| 36 |
maxItems: 1 |
| 37 |
|
| 38 |
resets: |
| 39 |
maxItems: 1 |
| 40 |
|
| 41 |
power-domains: |
| 42 |
maxItems: 1 |
| 43 |
|
| 44 |
interrupts: |
| 45 |
items: |
| 46 |
- description: Conversion complete interrupt signal (pulse) |
| 47 |
- description: Comparison result interrupt signal (level) |
| 48 |
|
| 49 |
interrupt-names: |
| 50 |
items: |
| 51 |
- const: adi |
| 52 |
- const: adcmpi |
| 53 |
|
| 54 |
"#thermal-sensor-cells": |
| 55 |
const: 0 |
| 56 |
|
| 57 |
renesas,tsu-trim: |
| 58 |
$ref: /schemas/types.yaml#/definitions/phandle-array |
| 59 |
items: |
| 60 |
- items: |
| 61 |
- description: phandle to system controller |
| 62 |
- description: offset of trim registers |
| 63 |
description: |
| 64 |
Phandle and offset to the system controller containing the TSU |
| 65 |
calibration trim values. The offset points to the first trim register |
| 66 |
(OTPTSU1TRMVAL0), with the second trim register (OTPTSU1TRMVAL1) located |
| 67 |
at offset + 4. |
| 68 |
|
| 69 |
required: |
| 70 |
- compatible |
| 71 |
- reg |
| 72 |
- clocks |
| 73 |
- power-domains |
| 74 |
- interrupts |
| 75 |
- interrupt-names |
| 76 |
- "#thermal-sensor-cells" |
| 77 |
|
| 78 |
allOf: |
| 79 |
- if: |
| 80 |
properties: |
| 81 |
compatible: |
| 82 |
contains: |
| 83 |
const: renesas,r9a09g047-tsu |
| 84 |
then: |
| 85 |
required: |
| 86 |
- resets |
| 87 |
- renesas,tsu-trim |
| 88 |
|
| 89 |
- if: |
| 90 |
properties: |
| 91 |
compatible: |
| 92 |
contains: |
| 93 |
const: renesas,r9a09g077-tsu |
| 94 |
then: |
| 95 |
properties: |
| 96 |
resets: false |
| 97 |
renesas,tsu-trim: false |
| 98 |
|
| 99 |
additionalProperties: false |
| 100 |
|
| 101 |
examples: |
| 102 |
- | |
| 103 |
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h> |
| 104 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 105 |
|
| 106 |
thermal-sensor@14002000 { |
| 107 |
compatible = "renesas,r9a09g047-tsu"; |
| 108 |
reg = <0x14002000 0x1000>; |
| 109 |
clocks = <&cpg CPG_MOD 0x10a>; |
| 110 |
resets = <&cpg 0xf8>; |
| 111 |
power-domains = <&cpg>; |
| 112 |
interrupts = <GIC_SPI 250 IRQ_TYPE_EDGE_RISING>, |
| 113 |
<GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>; |
| 114 |
interrupt-names = "adi", "adcmpi"; |
| 115 |
#thermal-sensor-cells = <0>; |
| 116 |
renesas,tsu-trim = <&sys 0x330>; |
| 117 |
}; |