Skip to content

Commit bf9ff83

Browse files
miquelraynalEduardo Valentin
authored andcommitted
dt-bindings: cp110: document the thermal interrupt capabilities
The thermal IP can produce interrupts on overheat situation. Describe them. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 1bc7523 commit bf9ff83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ Thermal:
199199
The thermal IP can probe the temperature all around the processor. It
200200
may feature several channels, each of them wired to one sensor.
201201

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+
202205
For common binding part and usage, refer to
203206
Documentation/devicetree/bindings/thermal/thermal.txt
204207

@@ -208,6 +211,11 @@ Required properties:
208211
- reg: register range associated with the thermal functions.
209212

210213
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
211219
- #thermal-sensor-cells: shall be <1> when thermal-zones subnodes refer
212220
to this IP and represents the channel ID. There is one sensor per
213221
channel. O refers to the thermal IP internal channel.
@@ -220,6 +228,7 @@ CP110_LABEL(syscon1): system-controller@6f8000 {
220228
CP110_LABEL(thermal): thermal-sensor@70 {
221229
compatible = "marvell,armada-cp110-thermal";
222230
reg = <0x70 0x10>;
231+
interrupts-extended = <&CP110_LABEL(icu_sei) 116 IRQ_TYPE_LEVEL_HIGH>;
223232
#thermal-sensor-cells = <1>;
224233
};
225234
};

0 commit comments

Comments
 (0)