Part Number: TDA4VM
Hi experts,
Our custom board of TDA4 resets frequently, i guess it may cause by the high temperature. Is there any method in Linux to get the temperature of tda4 like "soc thermal" module?
Thanks,
Hutian
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Hutian,
Thermal resets are by default disabled and the temperature reading driver is not supported on the current Linux SDK and no plans to support in future releases as well. There is a plan to enable temperature reading on RTOS SDK but no such plans on Linux.
How are you suspecting thermal? Thermal resets are not enabled.
Regards,
Keerthy
Hi Keerthy,
I find the thermal module in AM654 dts file and some modules of the physic address are the same as j721e. Considering that there is no thermal resets, can you provide a list of the reset reason about TDA4VM ?
Thanks,
Hutian
Hi Hutian,
Current temperature can be read using sysfs entries. Please run the below command and check the temperatures:
$ cat /sys/class/thermal/thermal_zone[012]/temp
Also can you share your bootlog?
Thanks and regards,
Lokesh
Hi Lokesh,
Here is part of bootlog and dts file.
[ 1.773465] k3-soc-thermal 42040000.wkup_vtm0: thermal zone device is NULL
[ 1.780726] mmc0: Unknown controller version (4). You may experience problems.
[ 1.787957] mmc0: CQHCI version 5.10
[ 1.822253] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[ 1.835531] vdd_mmc1: supplied by vsys_3v3
563 wkup_vtm0: wkup_vtm0@42040000 {
564 compatible = "ti,am654-vtm";
565 reg = <0x0 0x42040000 0x0 0x330>;
566 clocks = <&k3_clks 154 2>;
567 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
568 #thermal-sensor-cells = <1>;
569 };
570
571 thermal_zones: thermal-zones {
572 #include "am654-industrial-thermal.dtsi"
573 };
574
The result is shown below:
root@j7-evm:~# cat /sys/class/thermal/thermal_zone0/temp
cat: read error: Invalid argument
Thanks,
Hutian
I suspect few things in vtm node:
- wkup_cbass address-cells and size-cells is 1. But I see reg is defined with address cells and size cells 2
- I dont' think powe-domain entries are right. Can you double confirm that?
The above could be one of the reasons why vtm might fail probing.
Hi Lokesh,
I try again but failed, could you please give the dts configuration of VTM?
Thanks and regards,
Hutain
Example configuration can be found here https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi?h=ti-linux-5.4.y#n98
DT definition for vtm can be found here: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/Documentation/devicetree/bindings/thermal/ti_k3_thermal.txt?h=ti-linux-5.4.y
Hi Hutian,
Please remove all the DT code related to VTM. The register spaces for DTA4VM & Am65 are different.
Also current release does not support VTM. So please remove all the code that you have added related
to VTM thermal and try.
1) Can you have the logs when the reset happens?
2) What is the application you run which makes you think TDA4VM is becoming very hot and going towards thermal shutdown?
- Keerthy