Enable I2C3 support in Uboot.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Enable I2C3 support in Uboot.

41,205件の閲覧回数
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,183件の閲覧回数
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,181件の閲覧回数
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,166件の閲覧回数
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,145件の閲覧回数
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,123件の閲覧回数
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,084件の閲覧回数
Nilesh
Contributor II

Hi Chavira,

What eeprom are you using?

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

Thanks,
Nilesh

 

タグ(3)
0 件の賞賛
返信

2,066件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @Nilesh1!

Try without modify the drivers the memory should be detected.

 

Best Regards!

Chavira

0 件の賞賛
返信