From: Francesco Dolcini <francesco.dolcini@toradex.com>
To: Rob Herring <robh+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: Francesco Dolcini <francesco.dolcini@toradex.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Denys Drozdov <denys.drozdov@toradex.com>,
Stefan Agner <stefan@agner.ch>
Subject: [PATCH v2 0/2] Enable i.MX7 SOLO temperature sensor
Date: Mon, 24 Jan 2022 09:28:01 +0100 [thread overview]
Message-ID: <20220124082803.94286-1-francesco.dolcini@toradex.com> (raw)
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
v2:
- removed empty new line
- rebased and tested on v5.17-rc1
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 | 1 +
2 files changed, 17 insertions(+)
--
2.25.1
next reply other threads:[~2022-01-24 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 8:28 Francesco Dolcini [this message]
2022-01-24 8:28 ` [PATCH v2 1/2] ARM: dts: imx7s: Define operating points table for cpufreq Francesco Dolcini
2022-02-02 18:15 ` Fabio Estevam
2022-01-24 8:28 ` [PATCH v2 2/2] cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist Francesco Dolcini
2022-02-02 18:15 ` Fabio Estevam
2022-02-01 13:37 ` [PATCH v2 0/2] Enable i.MX7 SOLO temperature sensor Francesco Dolcini
2022-02-09 6:37 ` Viresh Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220124082803.94286-1-francesco.dolcini@toradex.com \
--to=francesco.dolcini@toradex.com \
--cc=denys.drozdov@toradex.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marcel.ziswiler@toradex.com \
--cc=matthias.bgg@gmail.com \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=stefan@agner.ch \
--cc=viresh.kumar@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox