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.

Linux/TPS65982: Need help with driver developement for TPS65982

Part Number: TPS65982

Tool/software: Linux

Hi,

We are trying to develop driver for TPS65982. The driver is for Freescale IMX7 sabre platform. I had following queries regarding driver development

1. As I understand, TPS65982 requires a application code which will be stored as part of flash memory present with TPS65982 chipset. This chipset will come with pre-flashed with default application code?

2. The configurations required for operating TPS65982 as per specific requirements will be done as part of application code which present in flash memory or will it be required to be done by driver by sending I2C commands.

Any references for sample driver code will be very helpful.

Regards,

Raunaq Sinha

  • Hi Raunaq,

    The TPS65982 requires an external flash chip that will contain the application code. The TPS65982 will load the application code from the external SPI Flash when booting.
    You can refer to our TPS65982-EVM to see the hardware configuration with the external SPI Flash. However, for creating your Linux driver, we have an application note for updating the TPS65982 via an embedded controller over I2C. It contains example C code that can be referenced when creating your driver. You can refer to the app note here: www.ti.com/.../slva783a.pdf

    Thank you,
    Eric
  • Hi Eric,

    Thanks for the quick reply!!

    I went through shared www.ti.com/.../slva783a.pdf document. It mostly mentions firmware upgrade procedure for TPS65982. I assume that driver which I am planning to develop is expected only to perform firmware upgrade of the application code present in the external flash.
    Please do let me know if this understanding is correct or not?

    I also wanted to know if the TPS65982 will come pre-loaded with application code flashed in external. I read some threads and found that v3.04 is the current version of preflashed firmware for TPS65982. Please do let me know if this understanding is correct or not?

    Regards,
    Raunaq
  • Hi Raunaq,

    The TPS65982-EVM will come with preflashed FW. However, if you develop your own board and place a flash chip onto it, the flash will be empty. The driver that you are planning to develop would change the host interface registers in the TPS65982 to update the application code present on the TPS65982 during run-time.

    Thank you,
    Eric
  • Hi Eric,

    Thanks for the reply,

    As per my understanding, the base application code required for TPS65982 will be made available by TI. The driver running on custom board which contains TPS65982 will perform following functions
    1. perform firmware upgrade to update the base application code on the flash. The base application code will be provided by TI
    2. Customize the base application code as per custom boards requirement during runtime.

    Please do let me know if this understanding is correct or not?

    Regards & Thanks
    Raunaq Sinha
  • Hi Raunaq,

    That is correct. You can download our application customization tool from the following link: www.ti.com/.../tps6598x-config
    The latest version is 3.08. That tool will be used to create your base application code.
    To create your custom linux driver for updating the code on the flash, please refer to our app note on updating the TPS6598x FW over I2C. You can refer to it at the following link: www.ti.com/.../slva783a.pdf

    Thank you,
    Eric
  • Thanks Eric, for the quick reply and support, really appreciate it