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.

AM5728: Thermal Zones, Temperature Sensor & Fan Controller on TI AM5728 - Detection & Usage

Part Number: AM5728

Hi,

I am using TI's AM5728 with Linux PSDK 6.03 on it.

I am trying to get proper understanding around Thermal Zones, Temperature Sensors & Fan Controller on AM5728. I tried to search about working of fan controller in datasheet, general purpose evm hardware guide and TRM but couldn't find anything helpful. I am listing some queries below but they might sound weird as I don't have complete knowledge.

To start with, I have following queries -

  1. Are there any temperature sensors, fan controller present on AM5728 GP EVM (which I have with me) ?
  2. What is the thermal zone concept? 
  3. How does the temperature sensor work currently on EVM? What is the driver corresponding to temperature sensor?
  4. How does the fan controller work currently on EVM? 
  5. How is fan and temp sensor configured on EVM - as GPIO pin or interrupt ?

I hope TI experts will be able to guide and help me understand these concepts.

Thanks & Regards,

Devashish Tiwari

  • Devashish,

    Referring to the EVM schematics:https://www.ti.com/tool/TMDSEVM572X

    The SoC signal GPIO_2 can be asserted/deasserted in software to enable the fan via the PCB signal AUXFAN_EN.

    You can learn more about the on die temp sensors in the TRM section titled:  18.4.6.2 Thermal Management Related Registers

    https://www.ti.com/lit/ug/spruhz6l/spruhz6l.pdf

    Regards,

    Kyle

  • Hi,

    Thanks for your response.

    I have posted a list of questions numbered from 1 to 5 in the original post. Can you please try to answer them in sequence?

    Regards,

    Devashish

  • Hi,

    This is a reminder that I am waiting for your reply on this post.

    Regards,

    Devashish

  • Hi,

    This is a gentle reminder to reply to following queries -

    1. According to TRM, there are five on-die temperature sensors on the SoC. They are responsible for recording the junction temperature. How can I add any external temperature sensor to this framework?
    2. The five temperature sensors have divided the SoC into multiple thermal zones. I would like to add a new thermal zone corresponding to the new external temp. sensor. What is the procedure for that?
    3. Which is the driver responsible for temperature sensors currently on the EVM?
    4. Is there any on-die fan connected? If yes, what is the default state of the fan? How to ON/OFF the fan?
    5. I would like to add a new fan controller on a GPIO pin and make this as cooling device. How can I do that?

    Regards,

    Devashish 

  • Hi,

    This is a repeat reminder that I am waiting for your reply on this post.

    Regards,

    Devashish

  • Hello TI Experts,

    This is a gentle reminder to reply to following queries -

    1. According to TRM, there are five on-die temperature sensors on the SoC. They are responsible for recording the junction temperature. How can I add any external temperature sensor to this framework?
    2. The five temperature sensors have divided the SoC into multiple thermal zones. I would like to add a new thermal zone corresponding to the new external temp. sensor. What is the procedure for that?
    3. Which is the driver responsible for temperature sensors currently on the EVM?
    4. Is there any on-die fan connected? If yes, what is the default state of the fan? How to ON/OFF the fan?
    5. I would like to add a new fan controller on a GPIO pin and make this as cooling device. How can I do that?

    Regards,

    Devashish 

  • According to TRM, there are five on-die temperature sensors on the SoC. They are responsible for recording the junction temperature. How can I add any external temperature sensor to this framework?

    Please follow the example under:

    "arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi"

    gpio_fan: gpio_fan {
    /* Based on 5v 500mA AFB02505HHB */
    compatible = "gpio-fan";
    gpios = <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
    gpio-fan,speed-map = <0 0>,
    <13000 1>;
    #cooling-cells = <2>;
    };

    The five temperature sensors have divided the SoC into multiple thermal zones. I would like to add a new thermal zone corresponding to the new external temp. sensor. What is the procedure for that?

    This is a generic Linux themal question. Please go through: Documentation/devicetree/bindings/thermal/thermal.txt

    Which is the driver responsible for temperature sensors currently on the EVM?

    drivers/thermal/ti-soc-thermal/ti-bandgap.c

    Is there any on-die fan connected? If yes, what is the default state of the fan? How to ON/OFF the fan?

    Please check schematics of your particular board.

    I would like to add a new fan controller on a GPIO pin and make this as cooling device. How can I do that?

    gpio_fan: gpio_fan {
    /* Based on 5v 500mA AFB02505HHB */
    compatible = "gpio-fan";
    gpios = <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
    gpio-fan,speed-map = <0 0>,
    <13000 1>;
    #cooling-cells = <2>;
    };

    Please follow example like above for your particular GPIO.

    Best Regards,
    Keerthy

  • Hi,

    Thanks for your response.

    I will try with the information you provided. Meanwhile, please keep this thread open.

    Regards,

    Devashish