1 # SPDX-License-Identifier: GPL-2.0-only 1 # SPDX-License-Identifier: GPL-2.0-only 2 # Copyright (C) 2020 Renesas Electronics Corp. 2 # Copyright (C) 2020 Renesas Electronics Corp. 3 %YAML 1.2 3 %YAML 1.2 4 --- 4 --- 5 $id: http://devicetree.org/schemas/thermal/rca 5 $id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml# 6 $schema: http://devicetree.org/meta-schemas/co 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 7 8 title: Renesas R-Car Gen3 Thermal Sensor 8 title: Renesas R-Car Gen3 Thermal Sensor 9 9 10 description: 10 description: 11 On most R-Car Gen3 and later SoCs, the therm 11 On most R-Car Gen3 and later SoCs, the thermal sensor controllers (TSC) 12 control the thermal sensors (THS) which are 12 control the thermal sensors (THS) which are the analog circuits for 13 measuring temperature (Tj) inside the LSI. 13 measuring temperature (Tj) inside the LSI. 14 14 15 maintainers: 15 maintainers: 16 - Niklas Söderlund <niklas.soderlund@ragnate 16 - Niklas Söderlund <niklas.soderlund@ragnatech.se> 17 17 18 $ref: thermal-sensor.yaml# 18 $ref: thermal-sensor.yaml# 19 19 20 properties: 20 properties: 21 compatible: 21 compatible: 22 enum: 22 enum: 23 - renesas,r8a774a1-thermal # RZ/G2M 23 - renesas,r8a774a1-thermal # RZ/G2M 24 - renesas,r8a774b1-thermal # RZ/G2N 24 - renesas,r8a774b1-thermal # RZ/G2N 25 - renesas,r8a774e1-thermal # RZ/G2H 25 - renesas,r8a774e1-thermal # RZ/G2H 26 - renesas,r8a7795-thermal # R-Car H3 26 - renesas,r8a7795-thermal # R-Car H3 27 - renesas,r8a7796-thermal # R-Car M3-W 27 - renesas,r8a7796-thermal # R-Car M3-W 28 - renesas,r8a77961-thermal # R-Car M3-W+ 28 - renesas,r8a77961-thermal # R-Car M3-W+ 29 - renesas,r8a77965-thermal # R-Car M3-N 29 - renesas,r8a77965-thermal # R-Car M3-N 30 - renesas,r8a77980-thermal # R-Car V3H 30 - renesas,r8a77980-thermal # R-Car V3H 31 - renesas,r8a779a0-thermal # R-Car V3U 31 - renesas,r8a779a0-thermal # R-Car V3U 32 - renesas,r8a779f0-thermal # R-Car S4-8 32 - renesas,r8a779f0-thermal # R-Car S4-8 33 - renesas,r8a779g0-thermal # R-Car V4H 33 - renesas,r8a779g0-thermal # R-Car V4H 34 - renesas,r8a779h0-thermal # R-Car V4M 34 - renesas,r8a779h0-thermal # R-Car V4M 35 35 36 reg: true 36 reg: true 37 37 38 interrupts: 38 interrupts: 39 items: 39 items: 40 - description: TEMP1 interrupt 40 - description: TEMP1 interrupt 41 - description: TEMP2 interrupt 41 - description: TEMP2 interrupt 42 - description: TEMP3 interrupt 42 - description: TEMP3 interrupt 43 43 44 clocks: 44 clocks: 45 maxItems: 1 45 maxItems: 1 46 46 47 power-domains: 47 power-domains: 48 maxItems: 1 48 maxItems: 1 49 49 50 resets: 50 resets: 51 maxItems: 1 51 maxItems: 1 52 52 53 "#thermal-sensor-cells": 53 "#thermal-sensor-cells": 54 const: 1 54 const: 1 55 55 56 required: 56 required: 57 - compatible 57 - compatible 58 - reg 58 - reg 59 - clocks 59 - clocks 60 - power-domains 60 - power-domains 61 - resets 61 - resets 62 62 63 if: 63 if: 64 properties: 64 properties: 65 compatible: 65 compatible: 66 contains: 66 contains: 67 enum: 67 enum: 68 - renesas,r8a779a0-thermal 68 - renesas,r8a779a0-thermal 69 then: 69 then: 70 properties: 70 properties: 71 reg: 71 reg: 72 items: 72 items: 73 - description: TSC0 registers 73 - description: TSC0 registers 74 - description: TSC1 registers 74 - description: TSC1 registers 75 - description: TSC2 registers 75 - description: TSC2 registers 76 - description: TSC3 registers 76 - description: TSC3 registers 77 - description: TSC4 registers 77 - description: TSC4 registers 78 else: 78 else: 79 properties: 79 properties: 80 reg: 80 reg: 81 minItems: 2 81 minItems: 2 82 items: 82 items: 83 - description: TSC1 registers 83 - description: TSC1 registers 84 - description: TSC2 registers 84 - description: TSC2 registers 85 - description: TSC3 registers 85 - description: TSC3 registers 86 - description: TSC4 registers 86 - description: TSC4 registers 87 if: 87 if: 88 not: 88 not: 89 properties: 89 properties: 90 compatible: 90 compatible: 91 contains: 91 contains: 92 enum: 92 enum: 93 - renesas,r8a779f0-thermal 93 - renesas,r8a779f0-thermal 94 - renesas,r8a779g0-thermal 94 - renesas,r8a779g0-thermal 95 - renesas,r8a779h0-thermal 95 - renesas,r8a779h0-thermal 96 then: 96 then: 97 required: 97 required: 98 - interrupts 98 - interrupts 99 99 100 unevaluatedProperties: false 100 unevaluatedProperties: false 101 101 102 examples: 102 examples: 103 - | 103 - | 104 #include <dt-bindings/clock/r8a7795-cpg-ms 104 #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 105 #include <dt-bindings/interrupt-controller 105 #include <dt-bindings/interrupt-controller/arm-gic.h> 106 #include <dt-bindings/power/r8a7795-sysc.h 106 #include <dt-bindings/power/r8a7795-sysc.h> 107 107 108 tsc: thermal@e6198000 { 108 tsc: thermal@e6198000 { 109 compatible = "renesas,r8a7795-thermal" 109 compatible = "renesas,r8a7795-thermal"; 110 reg = <0xe6198000 0x100>, 110 reg = <0xe6198000 0x100>, 111 <0xe61a0000 0x100>, 111 <0xe61a0000 0x100>, 112 <0xe61a8000 0x100>; 112 <0xe61a8000 0x100>; 113 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVE 113 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, 114 <GIC_SPI 68 IRQ_TYPE_LEVE 114 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, 115 <GIC_SPI 69 IRQ_TYPE_LEVE 115 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; 116 clocks = <&cpg CPG_MOD 522>; 116 clocks = <&cpg CPG_MOD 522>; 117 power-domains = <&sysc R8A7795_PD_ALWA 117 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 118 resets = <&cpg 522>; 118 resets = <&cpg 522>; 119 #thermal-sensor-cells = <1>; 119 #thermal-sensor-cells = <1>; 120 }; 120 }; 121 121 122 thermal-zones { 122 thermal-zones { 123 sensor_thermal: sensor-thermal { 123 sensor_thermal: sensor-thermal { 124 polling-delay-passive = <250>; 124 polling-delay-passive = <250>; 125 polling-delay = <1000>; 125 polling-delay = <1000>; 126 thermal-sensors = <&tsc 0>; 126 thermal-sensors = <&tsc 0>; 127 127 128 trips { 128 trips { 129 sensor1_crit: sensor1-crit { 129 sensor1_crit: sensor1-crit { 130 temperature = <90000>; 130 temperature = <90000>; 131 hysteresis = <2000>; 131 hysteresis = <2000>; 132 type = "critical"; 132 type = "critical"; 133 }; 133 }; 134 }; 134 }; 135 }; 135 }; 136 }; 136 }; 137 - | 137 - | 138 #include <dt-bindings/clock/r8a779a0-cpg-m 138 #include <dt-bindings/clock/r8a779a0-cpg-mssr.h> 139 #include <dt-bindings/interrupt-controller 139 #include <dt-bindings/interrupt-controller/arm-gic.h> 140 #include <dt-bindings/power/r8a779a0-sysc. 140 #include <dt-bindings/power/r8a779a0-sysc.h> 141 141 142 tsc_r8a779a0: thermal@e6190000 { 142 tsc_r8a779a0: thermal@e6190000 { 143 compatible = "renesas,r8a779a0-thermal 143 compatible = "renesas,r8a779a0-thermal"; 144 reg = <0xe6190000 0x200>, 144 reg = <0xe6190000 0x200>, 145 <0xe6198000 0x200>, 145 <0xe6198000 0x200>, 146 <0xe61a0000 0x200>, 146 <0xe61a0000 0x200>, 147 <0xe61a8000 0x200>, 147 <0xe61a8000 0x200>, 148 <0xe61b0000 0x200>; 148 <0xe61b0000 0x200>; 149 clocks = <&cpg CPG_MOD 919>; 149 clocks = <&cpg CPG_MOD 919>; 150 power-domains = <&sysc R8A779A0_PD_ALW 150 power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; 151 resets = <&cpg 919>; 151 resets = <&cpg 919>; 152 #thermal-sensor-cells = <1>; 152 #thermal-sensor-cells = <1>; 153 }; 153 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.