Kernel crash on exporting gpio 23 in imx6ull

Hi,
peter.tx

On imx6ull module , i want to use MX6UL_PAD_UART2_RTS_B pin as gpio . So, i change in the imx6ull-colibri.dtsi file and imx6ull-pinfunc.h file.

Previously pin MX6UL_PAD_UART2_RTS_B used in pinctrl_uart2: as rts of uart2. So, i remove from there and use as gpio MX6UL_PAD_UART2_RTS_B__GPIO1_IO23 0x14 in hog4-ctrl in colibri.dtsi file.

During exporting gpio 23 , kernel is crash. so what is the issue here.
please tell me if am doing anything wrong here. Or can you suggest me correct changes ??

Regards,
Nikunj patel

link text

What exact hardware and software versions of things are you talking about?

I want to use MX6UL_PAD_UART2_RTS_B pin as gpio . How can i do that ?? provide a way to use this pin as gpio and what changes need to be done for that??

Could you provide the software version of your module? Which carrier board are you using? Please read the following guide to configure the devicetree to use MX6UL_PAD_UART2_RTS_B as GPIO.

Hi,

I’m using yocto 2.4 rocko for creating custom image for imx6ull module.

After using pin MX6UL_PAD_UART2_RTS_B as GPIO23 , my kenel is crashing and system restart .can you help me with that?

What exact hardware and software versions of things are you talking about?

Colibri imx6ull 512MB V1.1A

Linux colibri-imx6ull 4.9.84-+gb2a7f2f #2 SMP Thu Nov 1 17:56:57 IST 2018 armv7l GNU/Linux

It will be very difficult to figure out which image with which exact options you build. The best will be if you flash a regular image using Toradex Easy Installer and just make the changes for the GPIO and check if the kernel is still crashing.

Hi @jaski.tx

any update on this ??

Also i’m not able to export GPIO 26,27,15,39 .

&iomuxc {

imx6ull-colibri {

	pinctrl_hog_1: hoggrp-1 {

		fsl,pins = <

			MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25	0X14 /* SODIMM 77 */

			MX6UL_PAD_JTAG_TCK__GPIO1_IO14		0x14 /* SODIMM 99 */

			MX6UL_PAD_NAND_CE1_B__GPIO4_IO14	0x14 /* SODIMM 133 */

			MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24	0x14 /* SODIMM 135 */

			MX6UL_PAD_UART3_CTS_B__GPIO1_IO26	0x14 /* SODIMM 100 */

			MX6UL_PAD_JTAG_TRST_B__GPIO1_IO15	0x14 /* SODIMM 102 */
			MX6UL_PAD_ENET1_RX_ER__GPIO2_IO07	0x14 /* SODIMM 104 */
			MX6UL_PAD_UART3_RTS_B__GPIO1_IO27	0x14 /* SODIMM 186 */
		>;
	};

It is define as GPIO by Default . Still kernel is crashed… Why??

regards

Could you provide the dmesg log and crash log in a text file?

link text

what is your kernel .config?