Enable I2C3 support in Uboot.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Enable I2C3 support in Uboot.

41,144 次查看
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

标记 (3)
0 项奖励
回复
7 回复数

41,122 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh!

Thank you for contacting NXP Support!

 

Unfortunately the iMX8MP does not support I3C.

 

Best Regards!

Chavira

0 项奖励
回复

2,120 次查看
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 项奖励
回复

2,105 次查看
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 项奖励
回复

2,084 次查看
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 项奖励
回复

2,062 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh!

 

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

 

What eeprom are you using?

 

 

0 项奖励
回复

2,023 次查看
Nilesh
Contributor II

Hi Chavira,

What eeprom are you using?

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

Thanks,
Nilesh

 

标记 (3)
0 项奖励
回复

2,005 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh1!

Try without modify the drivers the memory should be detected.

 

Best Regards!

Chavira

0 项奖励
回复