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.

TDA4VM: TPS6594-Q1 Linux simple code

Part Number: TDA4VM
Other Parts Discussed in Thread: TPS6594-Q1

We use TPS6594-Q1 as pmic.

But Pmic restart soc every 13min

We think This is restart by watchdog in pmic

so,how could we found TPS6594 simple code in linux?

  • Hi,

    There is NO PMIC driver in Linux. So you can use Linux use space utilities to check.

    i2cdump -f -y 0x2 0x48

    Output of the above command looks like below:

    i2cdump -f -y 0x2 0x48
    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 00 08 f0 06 23 2c 22 2f 23 2c 23 2c 23 1b 37 00    .???#,"/#,#,#?7.
    10: 37 00 41 00 73 00 b2 00 12 12 12 12 12 21 21 61    7.A.s.?.?????!!a
    20: 21 10 10 38 38 10 38 12 12 12 12 01 3f 00 00 00    !??88?8??????...
    30: 00 22 42 01 0a 21 21 3a 7a 82 ca 43 19 04 00 cc    ."B??!!:z??C??.?
    40: 0e 5a 96 05 3e 01 15 75 15 bb bb 0b bb bb 03 ff    ?Z??>??u???????.
    50: 37 2f 11 0b 2e 00 08 ab 00 00 0c 00 00 00 00 00    7/??..??..?.....
    60: 00 00 00 0a c8 02 00 00 00 00 00 00 00 00 00 00    ...???..........
    70: 00 00 00 02 00 00 00 00 aa 02 aa 80 01 00 00 00    ...?....?????...
    80: 00 13 06 00 0f 00 00 00 00 00 00 0c ff ff 01 01    .??.?......?..??
    90: 00 00 60 00 00 00 00 00 00 00 00 00 00 00 00 00    ..`.............
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 39 01 00 01 01 00 00 00 00 00 00    .....9?.??......
    c0: 00 00 01 7b 82 00 00 00 00 00 00 00 00 42 00 00    ..?{?........B..
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    This gives the register dump of PMIC via I2C.

    Data Sheet: https://www.ti.com/lit/ds/symlink/tps6594-q1.pdf?ts=1631081130125&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTPS6594-Q1

    C
    heck page 152 for the register map.

    You can check the values using the above command.

    If no further questions please click on verify answer.

    - Keerthy

  • Thank you for reply

    but I am confuse about register map with offset like 0x406

    so how read and write it by i2ctools?

    I think 0x4c is the 4 page slave addr ,so I can get value from 0x406 like

    i2cget -f -y 2 0x4c 0x06

    Is that right?

  • i2cdump -f -y 0x02 0x48
    No size specified (using byte-data access)
    0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
    00: 00 82 13 02 31 2b 20 2b 30 2f 31 2b 31 1b 37 37 .???1+ +0/1+1?77
    10: 37 37 fd fd 41 41 b2 b2 1b 1b 1b 1b 1b 31 31 31 77??AA???????111
    20: 31 00 00 38 38 10 38 1b 1b 1b 1b 21 3f 00 00 00 1..88?8????!?...
    30: 00 20 40 58 c8 29 28 38 78 01 d8 43 19 00 01 c4 . @X?)(8x??C?.??
    40: 0f 5a 96 05 1e 01 55 55 15 00 00 00 00 00 00 ff ?Z????UU?.......
    50: ff 3f 11 02 20 00 00 00 00 3f 18 00 00 00 00 00 .??? ....??.....
    60: 00 00 00 00 00 02 01 00 00 00 00 00 00 00 00 00 .....??.........
    70: 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 ...?............
    80: 00 1b 06 03 0f 00 00 00 00 00 00 0b ff ff 00 00 .????......?....
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    a0: 00 00 00 80 00 00 08 00 00 00 00 00 00 00 00 00 ...?..?.........
    b0: 00 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 ........??......
    c0: 00 00 00 f8 80 00 00 00 00 00 00 00 00 58 9d 00 ...??........X?.
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    f0: 7a 28 ea a9 d7 62 ff b0 95 9f 5a e2 00 00 90 7b z(???b.???Z?..?{

    This is our pmic i2c dump.

    It is different from yours or spec reset value.

    how to get correct value from pmic?

  • I think 0x4c is the 4 page slave addr ,so I can get value from 0x406 like

    i2cget -f -y 2 0x4c 0x06

    That is correct. 

    This is our pmic i2c dump.

    It is different from yours or spec reset value.

    how to get correct value from pmic?

    Do you have the same PMIC on board? If not please specify the part number.

    - Keerthy