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?
Solved! Go to Solution.
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
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
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