linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Enable i.MX7 SOLO temperature sensor
@ 2022-01-14 15:18 Francesco Dolcini
  2022-01-14 15:18 ` [PATCH v1 1/2] ARM: dts: imx7s: Define operating points table for cpufreq Francesco Dolcini
  2022-01-14 15:18 ` [PATCH v1 2/2] cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist Francesco Dolcini
  0 siblings, 2 replies; 3+ messages in thread
From: Francesco Dolcini @ 2022-01-14 15:18 UTC (permalink / raw)
  To: Rob Herring, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, NXP Linux Team, Rafael J. Wysocki, Viresh Kumar,
	Matthias Brugger
  Cc: Francesco Dolcini, devicetree, linux-arm-kernel, linux-pm,
	linux-kernel, Marcel Ziswiler, Denys Drozdov, Stefan Agner

To be able to read the T junction on i.MX CPU the imx-cpufreq-dt needs to be
loaded, however this is currently not the case for i.MX7S given that it does
have only one operating frequency.

Add "fsl,imx7s" to cpufreq-dt-platdev blocklist and a single frequency
operating point to the CPU.

With that it is now possible to correctly read the CPU T junction.

Tested on Toradex Colibri iMX7S

[    6.232577] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 0 mkt segment 1 supported-hw 0x1 0x2
...
[    6.880624] imx_thermal 30360000.anatop:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C

root@colibri-imx7-02983025:~# cat /sys/class/thermal/thermal_zone0/temp 
38000


Denys Drozdov (1):
  ARM: dts: imx7s: Define operating points table for cpufreq

Stefan Agner (1):
  cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist

 arch/arm/boot/dts/imx7s.dtsi         | 16 ++++++++++++++++
 drivers/cpufreq/cpufreq-dt-platdev.c |  2 ++
 2 files changed, 18 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-14 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 15:18 [PATCH v1 0/2] Enable i.MX7 SOLO temperature sensor Francesco Dolcini
2022-01-14 15:18 ` [PATCH v1 1/2] ARM: dts: imx7s: Define operating points table for cpufreq Francesco Dolcini
2022-01-14 15:18 ` [PATCH v1 2/2] cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist Francesco Dolcini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).