mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
3c94f17e72
i.MX6SX has some new features of thermal interrupt function, there are LOW, HIGH and PANIC irq for thermal sensor, so add platform data to separate different thermal version; The reset value of LOW ALARM is 0 which means the highest temp, so the LOW ALARM will be triggered once irq is enabled, so we need to correct it before enabling thermal irq; Enable PANIC ALARM as critical trip point, it will trigger system reset via SRC module once PANIC IRQ is triggered, it is pure hardware function, so use it instead of software reset by cooling device. Signed-off-by: Anson Huang <b20788@freescale.com> Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
25 lines
922 B
Plaintext
25 lines
922 B
Plaintext
* Temperature Monitor (TEMPMON) on Freescale i.MX SoCs
|
|
|
|
Required properties:
|
|
- compatible : "fsl,imx6q-tempmon" for i.MX6Q, "fsl,imx6sx-tempmon" for i.MX6SX.
|
|
i.MX6SX has two more IRQs than i.MX6Q, one is IRQ_LOW and the other is IRQ_PANIC,
|
|
when temperature is below than low threshold, IRQ_LOW will be triggered, when temperature
|
|
is higher than panic threshold, system will auto reboot by SRC module.
|
|
- fsl,tempmon : phandle pointer to system controller that contains TEMPMON
|
|
control registers, e.g. ANATOP on imx6q.
|
|
- fsl,tempmon-data : phandle pointer to fuse controller that contains TEMPMON
|
|
calibration data, e.g. OCOTP on imx6q. The details about calibration data
|
|
can be found in SoC Reference Manual.
|
|
|
|
Optional properties:
|
|
- clocks : thermal sensor's clock source.
|
|
|
|
Example:
|
|
|
|
tempmon {
|
|
compatible = "fsl,imx6q-tempmon";
|
|
fsl,tempmon = <&anatop>;
|
|
fsl,tempmon-data = <&ocotp>;
|
|
clocks = <&clks 172>;
|
|
};
|