mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Add support for the on-die Thermal Monitoring Unit (TMU) of the new QorIQ/Layerscape SoCs (LX2160A, LS1028A, LS1088A, ...): examples on a lx2160: => temperature list | Device | Driver | Parent | tmu@1f80000 | imx_tmu | root_driver | cluster67-thermal | imx_tmu | tmu@1f80000 | ddr1-cluster5-thermal | imx_tmu | tmu@1f80000 | wriop-thermal | imx_tmu | tmu@1f80000 | dce-qbman-hsio2-thermal | imx_tmu | tmu@1f80000 | ccn-dpaa-tbu-thermal | imx_tmu | tmu@1f80000 | cluster4-hsio3-thermal | imx_tmu | tmu@1f80000 | cluster23-thermal | imx_tmu | tmu@1f80000 => temperature get tmu@1f80000 tmu@1f80000: 82000 mC => temperature get wriop-thermal wriop-thermal: 81000 mC The parent tmu@... node owns the MMIO and calibration; one UCLASS_THERMAL device is bound per/thermal-zones site so each shows up by its zone name: => dm tree ... thermal 2 [ + ] imx_tmu |-- tmu@1f80000 thermal 3 [ + ] imx_tmu | |-- cluster67-thermal thermal 4 [ + ] imx_tmu | |-- ddr1-cluster5-thermal thermal 5 [ + ] imx_tmu | |-- wriop-thermal thermal 6 [ + ] imx_tmu | |-- dce-qbman-hsio2-thermal thermal 7 [ + ] imx_tmu | |-- ccn-dpaa-tbu-thermal thermal 8 [ + ] imx_tmu | |-- cluster4-hsio3-thermal thermal 9 [ + ] imx_tmu | `-- cluster23-thermal ... The dtsi additions mirror the existing fsl-ls1028a.dtsi: the LX2160A SoC dtsi gains the tmu@1f80000 node plus a thermal-zones hierarchy with 7 sites: cluster67-thermal site 0 A72 clusters 6 + 7 ddr1-cluster5-thermal site 1 DDR1 + A72 cluster 5 wriop-thermal site 2 WRIOP dce-qbman-hsio2-thermal site 3 DCE + QBMAN + HSIO2 ccn-dpaa-tbu-thermal site 4 CCN508 + DPAA + TBU cluster4-hsio3-thermal site 5 A72 cluster 4 + HSIO3 cluster23-thermal site 6 A72 clusters 2 + 3 Signed-off-by: Vincent Jardin <vjardin@free.fr> Suggested-by: Tom Rini <trini@konsulko.com> Inspired-by: Peng Fan <peng.fan@oss.nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
67 lines
2.3 KiB
Plaintext
67 lines
2.3 KiB
Plaintext
config DM_THERMAL
|
|
bool "Driver support for thermal devices"
|
|
help
|
|
Enable support for temperature-sensing devices. Some SoCs have on-chip
|
|
temperature sensors to permit warnings, speed throttling or even
|
|
automatic power-off when the temperature gets too high or low. Other
|
|
devices may be discrete but connected on a suitable bus.
|
|
|
|
if DM_THERMAL
|
|
|
|
config IMX_THERMAL
|
|
bool "Temperature sensor driver for Freescale i.MX SoCs"
|
|
depends on MX6 || MX7
|
|
help
|
|
Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
|
|
It supports one critical trip point and one passive trip point. The
|
|
cpufreq is used as the cooling device to throttle CPUs when the
|
|
passive trip is crossed.
|
|
|
|
config IMX_SCU_THERMAL
|
|
bool "Temperature sensor driver for NXP i.MX8"
|
|
depends on ARCH_IMX8
|
|
help
|
|
Support for Temperature sensors on NXP i.MX8.
|
|
It supports one critical trip point and one passive trip point. The
|
|
boot is hold to the cool device to throttle CPUs when the passive
|
|
trip is crossed
|
|
|
|
config IMX_TMU
|
|
bool "Thermal Management Unit driver for NXP i.MX8M / i.MX93 and QorIQ"
|
|
depends on ARCH_IMX8M || IMX93 || FSL_LAYERSCAPE
|
|
help
|
|
Support for the NXP Thermal Management Unit (TMU) sensors on
|
|
i.MX8M, i.MX93 and on QorIQ/Layerscape SoCs (LX2160A,
|
|
LS1028A, LS1088A, ...).
|
|
The boot is hold to the cool device to throttle CPUs when the
|
|
passive trip is crossed
|
|
|
|
config RCAR_GEN3_THERMAL
|
|
bool "Renesas R-Car Gen3/Gen4 and RZ/G2 thermal driver"
|
|
depends on ARCH_RENESAS
|
|
depends on RCAR_64
|
|
help
|
|
Enable this to plug the R-Car Gen3/Gen4 or RZ/G2 thermal sensor
|
|
driver into the U-Boot thermal framework.
|
|
|
|
config TI_DRA7_THERMAL
|
|
bool "Temperature sensor driver for TI dra7xx SOCs"
|
|
help
|
|
Enable thermal support for for the Texas Instruments DRA752 SoC family.
|
|
The driver supports reading CPU temperature.
|
|
|
|
config TI_LM74_THERMAL
|
|
bool "Temperature sensor driver for TI LM74 chip"
|
|
help
|
|
Enable thermal support for the Texas Instruments LM74 chip.
|
|
The driver supports reading CPU temperature.
|
|
|
|
config DM_THERMAL_JC42
|
|
bool "JEDEC JC-42.4/TSE2004av SPD temperature sensor"
|
|
depends on DM_I2C
|
|
help
|
|
Enable support for the JEDEC JC-42.4 temperature sensor found
|
|
on the SPD bus of DDR3 and DDR4 DIMMs (TSE2004av and compatible).
|
|
|
|
endif # if DM_THERMAL
|