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 v1 0/2] Enable i.MX7 SOLO temperature sensor Date: Fri, 14 Jan 2022 16:18:45 +0100 [thread overview] Message-ID: <20220114151847.290518-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 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
WARNING: multiple messages have this Message-ID (diff)
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 v1 0/2] Enable i.MX7 SOLO temperature sensor Date: Fri, 14 Jan 2022 16:18:45 +0100 [thread overview] Message-ID: <20220114151847.290518-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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-01-14 15:19 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-14 15:18 Francesco Dolcini [this message] 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 ` Francesco Dolcini 2022-01-14 15:18 ` [PATCH v1 2/2] cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist Francesco Dolcini 2022-01-14 15:18 ` Francesco Dolcini
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=20220114151847.290518-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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.