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.

TPS65982-EVM \ I²C Registers

Hello,


For testing purposes i would like to send commands and read registers via I²C.

The module has the connections to do so, but I am just wondering if there is a list of readable/writable registers available?

Kind Regards,

Martijn

  • Hi Martijn,

    There is a list of readable/writable I2C registers and other I2C related information that can be found in our Firmware User's guide. The I2C section is in Appendix A for the Host Interface. Additionally, you can utilize our Host Interface Utility Tool (Aardvark + Python scripts) to read registers along with some other Host Interface functionality. For writing to specific registers we have a few python scripts that handle some of the registers, but depending on your needs you may need to create/modify your own Python scripts.

    If you have any other questions please let me know.

    Regards,

    Karl

  • Thank you for the reply,

    I have deducted a lot of the registers from the py scripts, but the document proves much more readable and useful.
    I am having an issue with sending I²C commands.
    The first thing i tried was sending a Hard Reset (HRST). This wasn't too complicated and is therefore implemented already.
    The problem I'm facing is sending different commands (such as PD Swaps).
    Currently I have this setup:

    TPS1 : Docking Station configuration (101 on switches), powered by 19,5V 4,76A power supply. connected to the I²C master
    TPS2: Notebook configuration (010 on switches), powered by 19,5V 4,76A power supply.
    When connecting a Type-C cable, the dock becomes provider (source) and the notebook becomes consumer (sink).
    When I issue a Swap to Sink, nothing happens.
    I tried clearing the Dead Battery Flag beforehand, but still nothing.
    Please advice.

    Kind regards,
    Martijn
  • Hi Martijn,

    I believe that the EVM FW does not have the "ProcessSwaptoSink" or "ProcessSwaptoSource" function in the configurations you mentioned. You can confirm this by looking at the device's control configuration. Another thing to confirm is to double check the EVM's "Port_info" in the device's system configuration to make sure that it is indeed a dual role port, although for the configuration switch settings you stated they are DRPs. These commands can be useful later when you generate your own images and would like to double-check their settings.

    Another way I would recommend going about testing the I2C commands is to generate your own FW images from the configuration tool in particular to emulate the same two applications (dock and notebook). The first and second preconfigured profiles of the configuration tool can be used to represent a docking system and notebook system. Once you have these images you can flash them onto the EVMs and repeat your test.

    If you have any other questions please let me know.

    Regards,
    Karl

    If this answered your question please click "Verify Answer" below.