Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-binding: thermal: Convert marvell,armada-ap806-thermal to DT schema

Convert the Marvell Armada AP80x/CP110 thermal binding to schema. It is
a straight forward conversion.

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20250822225701.766947-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+46 -82
-39
Documentation/devicetree/bindings/arm/marvell/ap80x-system-controller.txt
··· 115 115 SYSTEM CONTROLLER 1 116 116 =================== 117 117 118 - Thermal: 119 - -------- 120 - 121 - For common binding part and usage, refer to 122 - Documentation/devicetree/bindings/thermal/thermal*.yaml 123 - 124 - The thermal IP can probe the temperature all around the processor. It 125 - may feature several channels, each of them wired to one sensor. 126 - 127 - It is possible to setup an overheat interrupt by giving at least one 128 - critical point to any subnode of the thermal-zone node. 129 - 130 - Required properties: 131 - - compatible: must be one of: 132 - * marvell,armada-ap806-thermal 133 - - reg: register range associated with the thermal functions. 134 - 135 - Optional properties: 136 - - interrupts: overheat interrupt handle. Should point to line 18 of the 137 - SEI irqchip. See interrupt-controller/interrupts.txt 138 - - #thermal-sensor-cells: shall be <1> when thermal-zones subnodes refer 139 - to this IP and represents the channel ID. There is one sensor per 140 - channel. O refers to the thermal IP internal channel, while positive 141 - IDs refer to each CPU. 142 - 143 - Example: 144 - ap_syscon1: system-controller@6f8000 { 145 - compatible = "syscon", "simple-mfd"; 146 - reg = <0x6f8000 0x1000>; 147 - 148 - ap_thermal: thermal-sensor@80 { 149 - compatible = "marvell,armada-ap806-thermal"; 150 - reg = <0x80 0x10>; 151 - interrupt-parent = <&sei>; 152 - interrupts = <18>; 153 - #thermal-sensor-cells = <1>; 154 - }; 155 - }; 156 - 157 118 Cluster clocks: 158 119 --------------- 159 120
-43
Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt
··· 189 189 }; 190 190 191 191 }; 192 - 193 - SYSTEM CONTROLLER 1 194 - =================== 195 - 196 - Thermal: 197 - -------- 198 - 199 - The thermal IP can probe the temperature all around the processor. It 200 - may feature several channels, each of them wired to one sensor. 201 - 202 - It is possible to setup an overheat interrupt by giving at least one 203 - critical point to any subnode of the thermal-zone node. 204 - 205 - For common binding part and usage, refer to 206 - Documentation/devicetree/bindings/thermal/thermal*.yaml 207 - 208 - Required properties: 209 - - compatible: must be one of: 210 - * marvell,armada-cp110-thermal 211 - - reg: register range associated with the thermal functions. 212 - 213 - Optional properties: 214 - - interrupts-extended: overheat interrupt handle. Should point to 215 - a line of the ICU-SEI irqchip (116 is what is usually used by the 216 - firmware). The ICU-SEI will redirect towards interrupt line #37 of the 217 - AP SEI which is shared across all CPs. 218 - See interrupt-controller/interrupts.txt 219 - - #thermal-sensor-cells: shall be <1> when thermal-zones subnodes refer 220 - to this IP and represents the channel ID. There is one sensor per 221 - channel. O refers to the thermal IP internal channel. 222 - 223 - Example: 224 - CP110_LABEL(syscon1): system-controller@6f8000 { 225 - compatible = "syscon", "simple-mfd"; 226 - reg = <0x6f8000 0x1000>; 227 - 228 - CP110_LABEL(thermal): thermal-sensor@70 { 229 - compatible = "marvell,armada-cp110-thermal"; 230 - reg = <0x70 0x10>; 231 - interrupts-extended = <&CP110_LABEL(icu_sei) 116 IRQ_TYPE_LEVEL_HIGH>; 232 - #thermal-sensor-cells = <1>; 233 - }; 234 - };
+46
Documentation/devicetree/bindings/thermal/marvell,armada-ap806-thermal.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/thermal/marvell,armada-ap806-thermal.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Armada AP80x/CP110 thermal management 8 + 9 + maintainers: 10 + - Miquel Raynal <miquel.raynal@bootlin.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - marvell,armada-ap806-thermal 16 + - marvell,armada-ap807-thermal 17 + - marvell,armada-cp110-thermal 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + description: 24 + Overheat interrupt. The interrupt is connected thru a System Error 25 + Interrupt (SEI) controller. 26 + maxItems: 1 27 + 28 + '#thermal-sensor-cells': 29 + description: Cell represents the channel ID. There is one sensor per 30 + channel. O refers to the thermal IP internal channel. 31 + const: 1 32 + 33 + required: 34 + - compatible 35 + - reg 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + thermal-sensor@80 { 42 + compatible = "marvell,armada-ap806-thermal"; 43 + reg = <0x80 0x10>; 44 + interrupts = <18>; 45 + #thermal-sensor-cells = <1>; 46 + };