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.

AM623: How to use I2C1 bus at R5 SPL

Part Number: AM623

Tool/software:

Hello experts

I use PROCESSOR-SDK-LINUX-RT-AM62X 10.01.10.04.

I would like to use I2C bus on R5 SPL, before loading tispl. Becouse I should check board via I2C bus before tispl.bin loading.

According to below tickets, I should provide clock and power to I2C peripheral becouse most of peripherals is not working on SPL step.

e2e.ti.com/.../am6442-how-to-read-from-adc-in-u-boot-spl
e2e.ti.com/.../am62p-watchdog-support-in-u-boot-r5-spl

I already set below configs,
CONFIG_SPL=y
CONFIG_SPL_OS_BOOT=y
CONFIG_SPL_ENV_SUPPORT=y

CONFIG_SPL_I2C=y
CONFIG_SYS_I2C_LEGACY=y
CONFIG_SPL_SYS_I2C_LEGACY=y

and configured DTSs as below.

&main_i2c1 {
status = "okay";
bootph-all;
}

Would you take me any document, tool or method to enable I2C.
Or if I can take more simple step, calling any API, please tell me the way.

Tahnk you