1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun# Copyright (C) 2020 Renesas Electronics Corp. 3*4882a593Smuzhiyun%YAML 1.2 4*4882a593Smuzhiyun--- 5*4882a593Smuzhiyun$id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml# 6*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 7*4882a593Smuzhiyun 8*4882a593Smuzhiyuntitle: Renesas R-Car Gen3 Thermal Sensor 9*4882a593Smuzhiyun 10*4882a593Smuzhiyundescription: 11*4882a593Smuzhiyun On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal 12*4882a593Smuzhiyun sensors (THS) which are the analog circuits for measuring temperature (Tj) 13*4882a593Smuzhiyun inside the LSI. 14*4882a593Smuzhiyun 15*4882a593Smuzhiyunmaintainers: 16*4882a593Smuzhiyun - Niklas Söderlund <niklas.soderlund@ragnatech.se> 17*4882a593Smuzhiyun 18*4882a593Smuzhiyunproperties: 19*4882a593Smuzhiyun compatible: 20*4882a593Smuzhiyun enum: 21*4882a593Smuzhiyun - renesas,r8a774a1-thermal # RZ/G2M 22*4882a593Smuzhiyun - renesas,r8a774b1-thermal # RZ/G2N 23*4882a593Smuzhiyun - renesas,r8a774e1-thermal # RZ/G2H 24*4882a593Smuzhiyun - renesas,r8a7795-thermal # R-Car H3 25*4882a593Smuzhiyun - renesas,r8a7796-thermal # R-Car M3-W 26*4882a593Smuzhiyun - renesas,r8a77961-thermal # R-Car M3-W+ 27*4882a593Smuzhiyun - renesas,r8a77965-thermal # R-Car M3-N 28*4882a593Smuzhiyun - renesas,r8a77980-thermal # R-Car V3H 29*4882a593Smuzhiyun reg: 30*4882a593Smuzhiyun minItems: 2 31*4882a593Smuzhiyun maxItems: 3 32*4882a593Smuzhiyun items: 33*4882a593Smuzhiyun - description: TSC1 registers 34*4882a593Smuzhiyun - description: TSC2 registers 35*4882a593Smuzhiyun - description: TSC3 registers 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun interrupts: 38*4882a593Smuzhiyun items: 39*4882a593Smuzhiyun - description: TEMP1 interrupt 40*4882a593Smuzhiyun - description: TEMP2 interrupt 41*4882a593Smuzhiyun - description: TEMP3 interrupt 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun clocks: 44*4882a593Smuzhiyun maxItems: 1 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun power-domains: 47*4882a593Smuzhiyun maxItems: 1 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun resets: 50*4882a593Smuzhiyun maxItems: 1 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun "#thermal-sensor-cells": 53*4882a593Smuzhiyun const: 1 54*4882a593Smuzhiyun 55*4882a593Smuzhiyunrequired: 56*4882a593Smuzhiyun - compatible 57*4882a593Smuzhiyun - reg 58*4882a593Smuzhiyun - interrupts 59*4882a593Smuzhiyun - clocks 60*4882a593Smuzhiyun - power-domains 61*4882a593Smuzhiyun - resets 62*4882a593Smuzhiyun - "#thermal-sensor-cells" 63*4882a593Smuzhiyun 64*4882a593SmuzhiyunadditionalProperties: false 65*4882a593Smuzhiyun 66*4882a593Smuzhiyunexamples: 67*4882a593Smuzhiyun - | 68*4882a593Smuzhiyun #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 69*4882a593Smuzhiyun #include <dt-bindings/interrupt-controller/arm-gic.h> 70*4882a593Smuzhiyun #include <dt-bindings/power/r8a7795-sysc.h> 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun tsc: thermal@e6198000 { 73*4882a593Smuzhiyun compatible = "renesas,r8a7795-thermal"; 74*4882a593Smuzhiyun reg = <0xe6198000 0x100>, 75*4882a593Smuzhiyun <0xe61a0000 0x100>, 76*4882a593Smuzhiyun <0xe61a8000 0x100>; 77*4882a593Smuzhiyun interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, 78*4882a593Smuzhiyun <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, 79*4882a593Smuzhiyun <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; 80*4882a593Smuzhiyun clocks = <&cpg CPG_MOD 522>; 81*4882a593Smuzhiyun power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 82*4882a593Smuzhiyun resets = <&cpg 522>; 83*4882a593Smuzhiyun #thermal-sensor-cells = <1>; 84*4882a593Smuzhiyun }; 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun thermal-zones { 87*4882a593Smuzhiyun sensor_thermal: sensor-thermal { 88*4882a593Smuzhiyun polling-delay-passive = <250>; 89*4882a593Smuzhiyun polling-delay = <1000>; 90*4882a593Smuzhiyun thermal-sensors = <&tsc 0>; 91*4882a593Smuzhiyun 92*4882a593Smuzhiyun trips { 93*4882a593Smuzhiyun sensor1_crit: sensor1-crit { 94*4882a593Smuzhiyun temperature = <90000>; 95*4882a593Smuzhiyun hysteresis = <2000>; 96*4882a593Smuzhiyun type = "critical"; 97*4882a593Smuzhiyun }; 98*4882a593Smuzhiyun }; 99*4882a593Smuzhiyun }; 100*4882a593Smuzhiyun }; 101