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.

TUSB546-DCI: I2C reference driver code

Part Number: TUSB546-DCI

Dear : 

 Could you help me provide TUSB546-DCI reference driver code ,  I need I2C communication way , many thanks~

  • Hi,

    There is no specialized I2C driver for TUSB546. A standard I2C host should be able to access TUSB546 register as listed in the datasheet. 

  • Hi Malik:

    GPIO driver code ?  or any similar function driver code is ok . many thanks~

    reference code will be fast to design , but configurate register is more complicated; 

  • Sorry no example code exists, You can find some example pseudo-code/register configurations below. The TUSB54-DCi is typically configured by the PD controller with is own stand alone GUI for these configurations I2C or GPIO mode.

    // (address, data)

    // Initial power-on configuration.

    (0x0A, 0x11), // EQ_OVERRIDE and USB3.1 default.

    (0x10, 0x55), // DP lanes 0 and 1 EQ

    (0x11, 0x55), // DP lanes 2 and 2 EQ

    (0x20, 0x11), // USB-C Rx1/Rx2 EQ. Not used in Full AEQ

    (0x21, 0x05), // SSTX receiver EQ.

    // Controls when selecting between USB and DP modes.

    If (USBonly_normal) {

    (0x0A,0x11); }

    Else if (USBonly_flip) {

    (0x0A, 0x15); }

    Else if (Dponly_normal) {

    (0x0A, 0x12); }

    Else if (Dponly_flip) {

    (0x0A, 0x16); }

    Else if (DPUSB_normal) {

    (0x0A, 0x13); }

    Else if (DPUSB_flip) {

    (0x0A,0x17); }

    Else // Nothing connected to Type-C {

    (0x0A, 0x10); }