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/AM5718: I2C4 & I2C5 Configuration problem

Part Number: AM5718

Tool/software: Linux

Hi.

My AM5718 custom board's i2c4 & i2c5 are connected to i2c peripherals.

* PIN description (I2C4 - J14, B14) (I2C5 - F12, G12)

I would like to pin-mux for am571x_idk, so I looked board.c file in "board-support/u-boot/board/ti/am57xx"

In board.c file, recalibrate_iodelay() function points core_padconf_xxx structure which is defined in mux_data.h

In mux_data.h it references "asm/arch/mux_dra7xx.h" and there is no I2C4 & I2C5 definitions.

How do I configure I2C4&5?

Regards.

  • Hi,

    You can adopt the approach with the other i2c interfaces enabled in AM571x_idk (for example i2c1).
    I don't think you need to set manual or virtual mode for the I2C pins. Check the device Data Manual, secion 7.5 Virtual and Manual I/O Timing Modes
    Some of the timings described in the following to be sure.

    Anyway you can also use the pinmux tool:
    dev.ti.com/.../app.html
    to understand what you need to set in your u-boot code.

    FYI, you should be aware that, if you use the latest sdk, except the mux_data.h, you need to do the I2C pinmuxing in arch/arm/dts/am571x-idk.dts

    Best Regards,
    Yordan