Colibri iMX7D I2C3 Enable

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

Colibri iMX7D I2C3 Enable

Jump to solution
230 Views
Bassam
Contributor I

Hello,

I'm configuring I2C3 on Colibri iMX7D board.

I'm using this dts configuration to enable I2C3 (pins 81, 94):

pinctrl_i2c3: i2c3grp {
    fsl,pins = <
    MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f
    MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f
    >;
};

i2c3: i2c@30a40000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
reg = <0x30a40000 0x10000>;
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX7D_I2C3_ROOT_CLK>;
status = "disabled";
};

And added this to my custom dts which include the previous:

&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
};

in /dev I can see the I2C but when trying to test it, I recieve nothing:

$ i2cdetect -y 2

And checking the HW with scope, there is no signal, it seems the iMX7d board is not configured correctly.

Any ideas?

Tags (1)
0 Kudos
Reply
1 Solution
169 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @Bassam!

Thank you for contacting NXP Support!

 

I am checking your source files and the pads that you want to use are used in the file imx7-colibri.dtsi on line 785 and 786.

 

Delete the previous declarations and you should able to use the i2c3.

 

Best Regards!

Chavira

View solution in original post

0 Kudos
Reply
4 Replies
170 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @Bassam!

Thank you for contacting NXP Support!

 

I am checking your source files and the pads that you want to use are used in the file imx7-colibri.dtsi on line 785 and 786.

 

Delete the previous declarations and you should able to use the i2c3.

 

Best Regards!

Chavira

0 Kudos
Reply
141 Views
Bassam
Contributor I
You are right, it works now, thanks a lot
0 Kudos
Reply
220 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Bassam!

Can you provide the full device tree?

 

I will check your device tree to see if  you are configuring correctly.

 

Best regards!

Chavira

0 Kudos
Reply
196 Views
Bassam
Contributor I

Hi,

I attached my custom dts, the zip file is the open-source dts files I include.

0 Kudos
Reply