Skip to content

Commit

Permalink
ARM: dts: stm32: add thermal sensor support on STM32MP157c
Browse files Browse the repository at this point in the history
Add configuration on DT for thermal sensor driver.

Signed-off-by: David Hernandez Sanchez <david.hernandezsanchez@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
  • Loading branch information
David Hernandez Sanchez authored and Alexandre Torgue committed Dec 3, 2018
1 parent e3b3d0b commit 8914b63
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm/boot/dts/stm32mp157c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,31 @@
};
};

thermal-zones {
cpu_thermal: cpu-thermal {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&dts>;

trips {
cpu_alert1: cpu-alert1 {
temperature = <85000>;
hysteresis = <0>;
type = "passive";
};

cpu-crit {
temperature = <120000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
};
};
};

soc {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down Expand Up @@ -966,6 +991,16 @@
status = "disabled";
};

dts: thermal@50028000 {
compatible = "st,stm32-thermal";
reg = <0x50028000 0x100>;
interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc TMPSENS>;
clock-names = "pclk";
#thermal-sensor-cells = <0>;
status = "disabled";
};

cryp1: cryp@54001000 {
compatible = "st,stm32mp1-cryp";
reg = <0x54001000 0x400>;
Expand Down

0 comments on commit 8914b63

Please sign in to comment.