IMX7 boot hangs after altering device tree

Hi,
We are developing our product with Colibri imx7d with a custom board. The design for our custom board is going on and now we are checking the peripherals that we are going to use with the help of Colibri Evaluation board.I am altering the device tree as per our design and quite successful in enabling GPIOs,SPIs and one I2C (i2c2, SODIMM29 and SODIMM37) peripheral.Now when I tried to enable the I2C3 SCL and SDA (SODIMM 140 and SODIMM 142), the device tree is compiling sucessfully but when I load the device tree into emmc with ums 0 mmc 0 I am getting the below error and kernel hangs

 **## Flattened Device Tree blob at 82000000 
Booting using the fdt blob at 0x82000000 
Using Device Tree in place at 82000000, end 8200e224
Starting kernel...**

I checked the device tree for the existence of the corresponding pads and pins but they are not used anywhere in device tree.When I comment those lines, the kernel is booting successfully. I am attaching the configuration that I made in the device tree for this I2C peripheral.

In imx7-colibri.dtsi file,

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

In iomux
    	pinctrl_i2c3: i2c3-grp {
		fsl,pins = <
 		        MX7D_PAD_LCD_DATA20__I2C3_SCL   	0x4000007f
			     MX7D_PAD_LCD_DATA21__I2C3_SDA   	0x4000007f
		>;
	};

In imx7-colibri-eval-v3.dtsi file,

&i2c3 {
	status = "okay";
};

Is the configuration correct or am I missing anything?

Thank you in advance and regards,
Nishanth

Welcome to Toradex Community!

It looks like you didn’t remove both pins configuration from pinctrl_gpio3 . See here .
Remove it and try again.

Hi @deven.tx ,
I already commented out the existence of these two pins in pinctrl_lcdif_dat_24 and pinctrl_gpio3. I also confirmed that there is no existence of those pins in the device tree but still the kernel hangs.
Thanks and regards,
Nishanth

Hi @nishanth1829 ,

Could you please attach your full patch with respective commit.
I will test at my end and update you.

For uploading files, you can use share.toradex.com.

Hi @deven.tx ,
Please find the attached patch file and my commit code is

6bd85ffba9f2297627b12ca9ace709ee403b5800
Thanks and regards
Nishanth

Let me test at my end. I will update you soon.
Meanwhile, you can also test by changing only I2C3 related changes.

Hi @deven.tx , I did exactly as in your patch but the only difference is I have placed the pinctrl-i23 grp atlast in the iomux. Now looking on your patch, I have placed it after pinctrl-i2c4 group. Now the kernel is booting but the below warning is still there before kernel booting
## Flattened Device Tree blob at 82000000
Booting using the fdt blob at 0x82000000
Using Device Tree in place at 82000000, end 8200e224
Starting kernel…

What does it mean exactly?Can we neglect this?
Regards,
Nishanth

Hi @nishanth1829 ,

Those are the regular boot logs. You can neglect it.

Hi @nishanth1829 ,

I checked by modifying DTS related to i2c3, and for me Kernel is booting properly.
Here is my patch.

I will suggest you to again look at your all changes step by step.