<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: imx6 tempmon device tree</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1558479#M197897</link>
    <description>&lt;P&gt;i.mx6 is different thermal driver from imx8, I don't find dts define this for imx6 in 5.10 bsp&lt;/P&gt;
&lt;P&gt;The thermal driver can be accessed through the following interface:&lt;BR /&gt;•&lt;BR /&gt;/sys/bus/platform/drivers/imx_thermal for i.MX 6 and i.MX 7.&lt;BR /&gt;•&lt;BR /&gt;/sys/class/thermal/thermal_zoneX for i.MX 8 and i.MX 8X.&lt;BR /&gt;•&lt;BR /&gt;/sys/bus/platform/drivers/qoriq_thermal for i.MX 8M Quad.&lt;BR /&gt;•&lt;BR /&gt;/sys/class/thermal/thermal_zone0/temp for i.MX 8M Mini.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 11:12:48 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2022-11-23T11:12:48Z</dc:date>
    <item>
      <title>imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1555382#M197638</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going through a Linux kernel bump for an imx6q based product from 3.0.35 to 5.10.&amp;nbsp; I was wondering if any one has a sample, and can point me to Thermal related device tree elements.&amp;nbsp; I have found some information on iMx8, but was wondering whether the memory maps are the same&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;HDF&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 02:02:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1555382#M197638</guid>
      <dc:creator>habib_farahani</dc:creator>
      <dc:date>2022-11-17T02:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1558479#M197897</link>
      <description>&lt;P&gt;i.mx6 is different thermal driver from imx8, I don't find dts define this for imx6 in 5.10 bsp&lt;/P&gt;
&lt;P&gt;The thermal driver can be accessed through the following interface:&lt;BR /&gt;•&lt;BR /&gt;/sys/bus/platform/drivers/imx_thermal for i.MX 6 and i.MX 7.&lt;BR /&gt;•&lt;BR /&gt;/sys/class/thermal/thermal_zoneX for i.MX 8 and i.MX 8X.&lt;BR /&gt;•&lt;BR /&gt;/sys/bus/platform/drivers/qoriq_thermal for i.MX 8M Quad.&lt;BR /&gt;•&lt;BR /&gt;/sys/class/thermal/thermal_zone0/temp for i.MX 8M Mini.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1558479#M197897</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-11-23T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1587808#M200628</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1587808#M200628</guid>
      <dc:creator>habib_farahani</dc:creator>
      <dc:date>2023-01-25T17:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1688943#M209377</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;We are struggling with that topic as well.&lt;/P&gt;&lt;P&gt;We've updated your system from yocto (3.0.3, zeus) to yocto (4.0.8, kirkstone), which is the kernel update from 4.14.98 -&amp;gt; 5.10.72 in our case. Updates are done on platforms i.MX6, i.MXSX6, i.MX8.&lt;/P&gt;&lt;P&gt;Since we have the 5.10.72, we are missing the&amp;nbsp; &lt;SPAN&gt;&lt;STRONG&gt;/sys/devices/virtual/thermal/thermal_zone0/temp on the i.MX6 and i.MXSX6&lt;/STRONG&gt;, which was present with the 4.14.98 version.&lt;BR /&gt;&lt;/SPAN&gt;With i.MX8 it's fine. there we have it. Of course we recognized that i.MX8 is implemented in a different way for thermal stuff. devicetree + &lt;SPAN&gt;drivers/thermal/imx8mm_thermal.c&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;kernel config was merged from 4.14.98 to 5.10.72 and should bi fine:&lt;/P&gt;&lt;P&gt;imx8:&lt;BR /&gt;CONFIG_SCHED_THERMAL_PRESSURE=y&lt;BR /&gt;CONFIG_THERMAL=y&lt;BR /&gt;CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0&lt;BR /&gt;CONFIG_THERMAL_HWMON=y&lt;BR /&gt;CONFIG_THERMAL_OF=y&lt;BR /&gt;CONFIG_THERMAL_WRITABLE_TRIPS=y&lt;BR /&gt;CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_THERMAL_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_CPU_THERMAL=y&lt;BR /&gt;CONFIG_CPU_FREQ_THERMAL=y&lt;BR /&gt;CONFIG_THERMAL_EMULATION=y&lt;BR /&gt;CONFIG_IMX_SC_THERMAL=y&lt;BR /&gt;CONFIG_IMX8MM_THERMAL=y&lt;BR /&gt;CONFIG_DEVICE_THERMAL=y&lt;/P&gt;&lt;P&gt;imx6:&lt;BR /&gt;CONFIG_SCHED_THERMAL_PRESSURE=y&lt;BR /&gt;CONFIG_THERMAL=y&lt;BR /&gt;CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0&lt;BR /&gt;CONFIG_THERMAL_HWMON=y&lt;BR /&gt;CONFIG_THERMAL_OF=y&lt;BR /&gt;CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_THERMAL_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_CPU_THERMAL=y&lt;BR /&gt;CONFIG_CPU_FREQ_THERMAL=y&lt;BR /&gt;CONFIG_IMX_THERMAL=y&lt;BR /&gt;CONFIG_DEVICE_THERMAL=y&lt;/P&gt;&lt;P&gt;imxsx6:&lt;BR /&gt;CONFIG_SCHED_THERMAL_PRESSURE=y&lt;BR /&gt;CONFIG_THERMAL=y&lt;BR /&gt;CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0&lt;BR /&gt;CONFIG_THERMAL_HWMON=y&lt;BR /&gt;CONFIG_THERMAL_OF=y&lt;BR /&gt;CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_THERMAL_GOV_STEP_WISE=y&lt;BR /&gt;CONFIG_CPU_THERMAL=y&lt;BR /&gt;CONFIG_CPU_FREQ_THERMAL=y&lt;BR /&gt;CONFIG_IMX_THERMAL=y&lt;BR /&gt;CONFIG_DEVICE_THERMAL=y&lt;/P&gt;&lt;P&gt;Can you please give as a hint how we can bring the sysfs interface "temp" back to our i.MX6 and i.MXSX6 version, like we had it with 4.14.98 kernel? Or is there at least a way to get the same data out?&lt;/P&gt;&lt;P&gt;that would be our goal:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cat /sys/devices/virtual/thermal/thermal_zone0/temp&lt;BR /&gt;62494&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i.MX8, this is still possible. But not anymore on the others.&lt;/P&gt;&lt;P&gt;We started to modify the devicetree for i.MX6 and i.MXSX6, but without success so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 05:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1688943#M209377</guid>
      <dc:creator>emptyfridge</dc:creator>
      <dc:date>2023-07-20T05:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1766451#M216631</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26581"&gt;@emptyfridge&lt;/a&gt;any news on this? we're basically facing the same situation here and i just cam across this thread.&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;christian&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 10:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1766451#M216631</guid>
      <dc:creator>christianreich</dc:creator>
      <dc:date>2023-11-30T10:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 tempmon device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1766488#M216634</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226454"&gt;@christianreich&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;In fact we were able to solve the issue, yes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;definition of tempmon in dtsi changed from kernel 4 to 5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tempmon now uses nvmem to access temperature data.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;This needs NVMEM_IMX_OCOTP and ARM_IMX6Q_CPUFREQ in .config&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so what we changed is this in our .config file for the kernel 5.10.y:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;diff --git a/arch/arm/configs/xxx_defconfig b/arch/arm/configs/xxx_defconfig
index 84d9c30db9de..1ac48e4f3d35 100644
--- a/arch/arm/configs/xxx_defconfig
+++ b/arch/arm/configs/xxx_defconfig
@@ -39,6 +39,7 @@ CONFIG_CMDLINE="noinitrd console=ttymxc0,115200"
 CONFIG_KEXEC=y
 CONFIG_CPU_FREQ=y
 CONFIG_CPUFREQ_DT=y
+CONFIG_ARM_IMX6Q_CPUFREQ=y
 CONFIG_CPU_IDLE=y
 CONFIG_CPU_IDLE_GOV_LADDER=y
 CONFIG_ARM_CPUIDLE=y
@@ -271,6 +272,7 @@ CONFIG_MAILBOX=y
 # CONFIG_IMX_GPCV2_PM_DOMAINS is not set
 CONFIG_PWM=y
 CONFIG_PWM_IMX27=y
+CONFIG_NVMEM_IMX_OCOTP=y
 CONFIG_TEE=y
 CONFIG_OPTEE=y
 CONFIG_MXC_IPU=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 12:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-tempmon-device-tree/m-p/1766488#M216634</guid>
      <dc:creator>emptyfridge</dc:creator>
      <dc:date>2023-11-30T12:58:39Z</dc:date>
    </item>
  </channel>
</rss>

