Hello,
We are working on custom board based on imx8mp. We need to enable I2C3 from the Uboot, as we are having an EEPROM placed on I2C3 bus and we are not able to detect the EEPROM while booting of uboot. We see that for EEPROM to get detected we need to enable the I2C3 bus from the u-boot.
We have made the changes to enable the I2C3 bus but not able to get the EEPROM detected.
But we are facing some issue while detecting the EEPROM, i am able to detect the EEPROM in bootloader using uboot i2c tool.
Can you guys please help me to solve this issue.
Thanks,
Nilesh
Hi @Nilesh!
Thank you for contacting NXP Support!
Unfortunately the iMX8MP does not support I3C.
Best Regards!
Chavira
Hi Chavira,
We need to enable I2C in the uboot. The device is on I2C-3. Below is the node for i2c-3 from uboot dtsi file 'arch/arm/dts/imx8mp.dtsi'
aliases {
i2c3 = &i2c4;
};
&i2c4 {
clock-frequency = <400000>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c4>;
pinctrl-1 = <&pinctrl_i2c4_gpio>;
scl-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>;
status = "okay";
id_eeprom: eeprom@50 {
compatible = "atmel,24c04";
reg = <0x50>;
pagesize = <16>;
status = "okay";
};
};
We get the eeprom detected using i2c tool from uboot.
Thanks,
Nilesh
Hi @Nilesh!
Sorry for the misunderstanding!
The problem was solved?
If not let me try to help you.
Best Regards!
Alejandro
Hi Alejandro,
No the issue is still not solved, above i have attached the diff with changes i made changes for enabling i2c-3 and also the device tree node for the eeprom.
Please let me know if i'm missing any necessary changes.
Thanks,
Nilesh
Hi @Nilesh!
I am able to detect the atmel24c04 memory without driver modifications.
What eeprom are you using?