Enable I2C3 support in Uboot.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable I2C3 support in Uboot.

41,028 Views
Nilesh
Contributor II

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

Tags (3)
0 Kudos
Reply
7 Replies

41,006 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh!

Thank you for contacting NXP Support!

 

Unfortunately the iMX8MP does not support I3C.

 

Best Regards!

Chavira

0 Kudos
Reply

2,004 Views
Nilesh
Contributor II

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

 

0 Kudos
Reply

1,989 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh!

 

Sorry for the misunderstanding!

 

The problem was solved?

 

If not let me try to help you.

 

Best Regards!

Alejandro

0 Kudos
Reply

1,968 Views
Nilesh
Contributor II

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

0 Kudos
Reply

1,946 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh!

 

I am able to detect the atmel24c04 memory without driver modifications.

 

What eeprom are you using?

 

 

0 Kudos
Reply

1,907 Views
Nilesh
Contributor II

Hi Chavira,

What eeprom are you using?

> We are using AT24C04D-MAHM eeprom on our board. 

Thanks,
Nilesh

 

Tags (3)
0 Kudos
Reply

1,889 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh1!

Try without modify the drivers the memory should be detected.

 

Best Regards!

Chavira

0 Kudos
Reply