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/AM5728: I2C controller timed out

Part Number: AM5728


Tool/software: Linux

Hi

    I wanna enable i2c2,and connect a sensor with I2C interface;but when linux booted up, I executed the command "i2cdetect -r -y 1" and kernel told me that omap_i2c 48072000.i2c:controller timed out.It make me confused,any available suggestions would be appreciated.

    SDK:am57xx-evm-linux-sdk-src-05.02.00.10

    Kernel:linux-4.14.79

    Note:

1. I enabled the I2C2 in uboot/linux ;

2.My HW design included pull-up resister in right place and the bus is at expected voltage.(3.3V)

  • Hi Ibiza,

    You need to enable I2C2 pinmux in u-boot code base:

    u-boot-2018.01/board/ti/am57xx/mux_data.h


    Then you need to enable I2C2 into linux kernel DTS file, see below DTS fiels for examples if I2C and camera sensor usage:

    linux-kernel/arch/arm/boot/dts/ti/ov10635.dtso
    linux-kernel/arch/arm/boot/dts/am57xx-idk-common.dtsi


    Regards,
    Pavel