Unimplemented set_config Function: GPIO Pin Configuration Loss on i.MX8MP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unimplemented set_config Function: GPIO Pin Configuration Loss on i.MX8MP

跳至解决方案
1,705 次查看
alexandreMarquis
Contributor II

Hi everyone,

I'm currently working with the i.MX8MP platform and encountered an issue while configuring a GPIO pin in input/pull-up mode. Here's the scenario:

In one of my drivers, the pin is used in output mode during the probe phase and then switched back to input mode. However, after this process, I found that the pin loses its configuration and is no longer in pull-up mode.

here is the dtb:

gt928@5d {
[...]
pincrtl-0 = <&pinctrl_ts>;
gt928,irq-gpios = <&gpio1 6 GPIO_PULL_UP>;
};

pinctrl_ts: tsgrp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x146 /* 0x146 == pull up, drive strength = 6 */
MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06 0xd6
>;
};

Here's the call stack for reference:

[ 14.630895] gpio_do_set_config+0x24/0x74
[ 14.630905] gpio_set_config_with_argument+0x38/0x44
[ 14.630911] gpio_set_bias+0x84/0xa4
[ 14.643448] gpiod_direction_input+0x198/0x1ac
[ 14.647892] goodix_irq_direction_input+0x40/0xa4 [goodix]
[ 14.653388] goodix_ts_probe+0x3fc/0x5c8 [goodix]

Upon further investigation, I noticed that the set_config function is not implemented (gpiolib.c do the following check):

gpio_do_set_config(struct gpio_chip *gc, unsigned int offset, unsigned long config) {
{
if (!gc->set_config)
return -ENOTSUPP;
[...]
}
I'm curious as to why set_config hasn't been implemented.
I've seen that other have done it :
 

 

​gc->set_config = pca953x_gpio_set_config;
or
gc->set_config = ep93xx_gpio_set_config;

 

 

 
Any insights or suggestions on how to address this issue would be greatly appreciated.

Thank you in advance for your help!

Best regards,
Alexandre

0 项奖励
回复
1 解答
1,554 次查看
alexandreMarquis
Contributor II

This is how I resolved my problem.
Based on my findings, placing <&pinctrl_ts> under the touchscreen node doesn't apply the pin function correctly.

 

&i2c3 {
	clock-frequency = <400000>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c3>,<&pinctrl_ts>;
	status = "okay";

	ov5640_0: ov5640_mipi@3c {
		status = "disabled";
	};

	gt928@5d {
		compatible = "goodix,gt928";
		reg = <0x5d>;
		pincrtl-names = "default";
		pincrtl-0 = <&pinctrl_ts>;
		interrupt-parent = <&gpio1>;
		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
		gt928,irq-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
		gt928,reset-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
		touchscreen-inverted-x; 
		status = "okay";
	};
};

[...]

&iomuxc {
	pinctrl_ts: tsgrp {
		fsl,pins = <
			MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06		0x146 /* 0x146 == pull up, drive strength = 6 */
			MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06		0xd6
		>;
	};
};

 


However, when I move it to the &i2c3 node, the pins are configured properly.

Thank you for your time!

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,555 次查看
alexandreMarquis
Contributor II

This is how I resolved my problem.
Based on my findings, placing <&pinctrl_ts> under the touchscreen node doesn't apply the pin function correctly.

 

&i2c3 {
	clock-frequency = <400000>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c3>,<&pinctrl_ts>;
	status = "okay";

	ov5640_0: ov5640_mipi@3c {
		status = "disabled";
	};

	gt928@5d {
		compatible = "goodix,gt928";
		reg = <0x5d>;
		pincrtl-names = "default";
		pincrtl-0 = <&pinctrl_ts>;
		interrupt-parent = <&gpio1>;
		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
		gt928,irq-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
		gt928,reset-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
		touchscreen-inverted-x; 
		status = "okay";
	};
};

[...]

&iomuxc {
	pinctrl_ts: tsgrp {
		fsl,pins = <
			MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06		0x146 /* 0x146 == pull up, drive strength = 6 */
			MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06		0xd6
		>;
	};
};

 


However, when I move it to the &i2c3 node, the pins are configured properly.

Thank you for your time!

0 项奖励
回复
1,664 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @alexandreMarquis 

The gpio iomux value has been written with imx_pmx_set before gpio driver probe, so there is no need to use set_config function in gpio driver. The imx_pinctrl_probe

For gpio io expander driver, this function is need, because there is no another driver setting pull up/down.

 

Best Regards

Zhiming

0 项奖励
回复
1,648 次查看
alexandreMarquis
Contributor II
I see, but then my question would be, why do i lose the pin configuration from the device-tree when I change my pin direction?

Scenario:



My pin is configure with a pull-up.
My driver load, set the pin in output. There is no more pull-up.
Put it back in input

expectation : the pin is set input, pull-up
current behaviour: the pin is set in input but the is no more pull-up on it.



From what i can see, when we call
gpiod_direction_input()


the function set the pin in input and then call the function
gpio_set_bias(struct gpio_desc *desc)


Which seem to try to restore the pull/pull down state of the pin, but as mention earlier, the no function seem to be implemented to reapply the device tree flag.

0 项奖励
回复
1,617 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @alexandreMarquis 

I test such behavior on GPIO3_IO16(gpio-80). The iomux value in device tree will not be covered. There is no such issue using sysfs to control gpio.

NXP i.MX Release Distro 6.6-nanbield imx8mp-lpddr4-evk ttymxc1

imx8mp-lpddr4-evk login: [   14.532349] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

imx8mp-lpddr4-evk login: root
root@imx8mp-lpddr4-evk:~# echo 80 > /sys/class/gpio/export
root@imx8mp-lpddr4-evk:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:
 gpio-10  (                    |reset               ) out hi ACTIVE LOW
 gpio-14  (                    |regulator-vbus      ) out hi

gpiochip1: GPIOs 32-63, parent: platform/30210000.gpio, 30210000.gpio:
 gpio-38  (                    |regulator-pcie      ) out hi
 gpio-39  (                    |PCIe reset          ) out hi
 gpio-44  (                    |cd                  ) in  hi ACTIVE LOW
 gpio-51  (                    |regulator-usdhc2    ) out lo

gpiochip2: GPIOs 64-95, parent: platform/30220000.gpio, 30220000.gpio:
 gpio-80  (                    |sysfs               ) out hi

gpiochip3: GPIOs 96-127, parent: platform/30230000.gpio, 30230000.gpio:
 gpio-98  (                    |PHY reset           ) out hi ACTIVE LOW
 gpio-116 (                    |switch              ) out hi ACTIVE LOW
 gpio-118 (                    |PHY reset           ) out hi ACTIVE LOW
 gpio-123 (                    |regulator-can2-stby ) out lo
 gpio-124 (                    |Headphone detection ) in  lo
 gpio-125 (                    |regulator-audio-pwr ) out hi

gpiochip4: GPIOs 128-159, parent: platform/30240000.gpio, 30240000.gpio:
 gpio-133 (                    |regulator-can1-stby ) out lo
 gpio-141 (                    |spi1 CS0            ) out hi ACTIVE LOW
 gpio-149 (                    |host-wake           ) in  hi ACTIVE LOW

gpiochip5: GPIOs 512-527, parent: i2c/2-0020, 2-0020, can sleep:
 gpio-512 (EXT_PWREN1          )
 gpio-513 (EXT_PWREN2          )
 gpio-514 (CAN1/I2C5_SEL       )
 gpio-515 (PDM/CAN2_SEL        )
 gpio-516 (FAN_EN              )
 gpio-517 (PWR_MEAS_IO1        )
 gpio-518 (PWR_MEAS_IO2        )
 gpio-519 (EXP_P0_7            )
 gpio-520 (EXP_P1_0            )
 gpio-521 (EXP_P1_1            )
 gpio-522 (EXP_P1_2            )
 gpio-523 (EXP_P1_3            )
 gpio-524 (EXP_P1_4            )
 gpio-525 (EXP_P1_5            )
 gpio-526 (EXP_P1_6            )
 gpio-527 (EXP_P1_7            )
root@imx8mp-lpddr4-evk:~# memtool -32 30330380 1
E
Reading 0x1 count starting at address 0x30330380

0x30330380:  00000140

root@imx8mp-lpddr4-evk:~# echo in > /sys/class/gpio/gpio80/direction
root@imx8mp-lpddr4-evk:~# memtool -32 30330380 1
E
Reading 0x1 count starting at address 0x30330380

0x30330380:  00000140

root@imx8mp-lpddr4-evk:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:
 gpio-10  (                    |reset               ) out hi ACTIVE LOW
 gpio-14  (                    |regulator-vbus      ) out hi

gpiochip1: GPIOs 32-63, parent: platform/30210000.gpio, 30210000.gpio:
 gpio-38  (                    |regulator-pcie      ) out hi
 gpio-39  (                    |PCIe reset          ) out hi
 gpio-44  (                    |cd                  ) in  hi ACTIVE LOW
 gpio-51  (                    |regulator-usdhc2    ) out lo

gpiochip2: GPIOs 64-95, parent: platform/30220000.gpio, 30220000.gpio:
 gpio-80  (                    |sysfs               ) in  hi

gpiochip3: GPIOs 96-127, parent: platform/30230000.gpio, 30230000.gpio:
 gpio-98  (                    |PHY reset           ) out hi ACTIVE LOW
 gpio-116 (                    |switch              ) out hi ACTIVE LOW
 gpio-118 (                    |PHY reset           ) out hi ACTIVE LOW
 gpio-123 (                    |regulator-can2-stby ) out lo
 gpio-124 (                    |Headphone detection ) in  lo
 gpio-125 (                    |regulator-audio-pwr ) out hi

gpiochip4: GPIOs 128-159, parent: platform/30240000.gpio, 30240000.gpio:
 gpio-133 (                    |regulator-can1-stby ) out lo
 gpio-141 (                    |spi1 CS0            ) out hi ACTIVE LOW
 gpio-149 (                    |host-wake           ) in  hi ACTIVE LOW

gpiochip5: GPIOs 512-527, parent: i2c/2-0020, 2-0020, can sleep:
 gpio-512 (EXT_PWREN1          )
 gpio-513 (EXT_PWREN2          )
 gpio-514 (CAN1/I2C5_SEL       )
 gpio-515 (PDM/CAN2_SEL        )
 gpio-516 (FAN_EN              )
 gpio-517 (PWR_MEAS_IO1        )
 gpio-518 (PWR_MEAS_IO2        )
 gpio-519 (EXP_P0_7            )
 gpio-520 (EXP_P1_0            )
 gpio-521 (EXP_P1_1            )
 gpio-522 (EXP_P1_2            )
 gpio-523 (EXP_P1_3            )
 gpio-524 (EXP_P1_4            )
 gpio-525 (EXP_P1_5            )
 gpio-526 (EXP_P1_6            )
 gpio-527 (EXP_P1_7            )

 

I think maybe you miss some code in your driver, you can refer the sysfs code, have you add mutex during your operation?

Zhiming_Liu_0-1715147008336.png

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1859981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%9C%AA%E5%AE%9E%E7%8E%B0%E7%9A%84%20set_config%20%E5%87%BD%E6%95%B0%EF%BC%9Ai.MX8MP%20%E4%B8%8A%E7%9A%84%20GPIO%20%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%A2%E5%A4%B1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1859981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20i.MX8MP%20%E5%B9%B3%E5%8F%B0%EF%BC%8C%E5%9C%A8%E8%BE%93%E5%85%A5%2F%E4%B8%8A%E6%8B%89%E6%A8%A1%E5%BC%8F%E4%B8%8B%E9%85%8D%E7%BD%AE%20GPIO%20%E5%BC%95%E8%84%9A%E6%97%B6%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%E3%80%82%E5%9C%BA%E6%99%AF%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FP%3E%3CP%3E%E5%9C%A8%E6%88%91%E7%9A%84%E4%B8%80%E4%B8%AA%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E4%B8%AD%EF%BC%8C%E5%BC%95%E8%84%9A%E5%9C%A8%E6%8E%A2%E6%B5%8B%E9%98%B6%E6%AE%B5%E4%BB%A5%E8%BE%93%E5%87%BA%E6%A8%A1%E5%BC%8F%E4%BD%BF%E7%94%A8%EF%BC%8C%E7%84%B6%E5%90%8E%E5%88%87%E6%8D%A2%E5%9B%9E%E8%BE%93%E5%85%A5%E6%A8%A1%E5%BC%8F%E3%80%82%E7%84%B6%E8%80%8C%EF%BC%8C%E7%BB%8F%E8%BF%87%E8%BF%99%E4%B8%AA%E8%BF%87%E7%A8%8B%E5%90%8E%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%E8%AF%A5%E5%BC%95%E8%84%9A%E5%A4%B1%E5%8E%BB%E4%BA%86%E9%85%8D%E7%BD%AE%E5%B9%B6%E4%B8%94%E4%B8%8D%E5%86%8D%E5%A4%84%E4%BA%8E%E4%B8%8A%E6%8B%89%E6%A8%A1%E5%BC%8F%E3%80%82%3C%2FP%3E%3CP%3E%E8%BF%99%E6%98%AF%20dtb%EF%BC%9A%3C%2FP%3E%3CPRE%20translate%3D%22no%22%3Egt928%405d%20%7B%3CBR%20%2F%3E%5B...%5D%3CBR%20%2F%3Epincrtl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_ts%26gt%3B%3B%3CBR%20%2F%3Egt928%2Cirq-gpios%20%3D%20%26lt%3B%26amp%3Bgpio1%206%20GPIO_PULL_UP%26gt%3B%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3Epinctrl_ts%3A%20tsgrp%20%7B%3CBR%20%2F%3Efsl%2Cpins%20%3D%20%26lt%3B%3CBR%20%2F%3EMX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06%200x146%20%2F*%200x146%20%3D%3D%20pull%20up%2C%20drive%20strength%20%3D%206%20*%2F%3CBR%20%2F%3EMX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06%200xd6%3CBR%20%2F%3E%26gt%3B%3B%3CBR%20%2F%3E%7D%3B%3C%2FPRE%3E%3CP%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E4%BE%9B%E5%8F%82%E8%80%83%E7%9A%84%E8%B0%83%E7%94%A8%E5%A0%86%E6%A0%88%EF%BC%9A%3C%2FP%3E%3CPRE%20translate%3D%22no%22%3E%5B%2014.630895%5D%20gpio_do_set_config%2B0x24%2F0x74%3CBR%20%2F%3E%5B%2014.630905%5D%20gpio_set_config_with_argument%2B0x38%2F0x44%3CBR%20%2F%3E%5B%2014.630911%5D%20gpio_set_bias%2B0x84%2F0xa4%3CBR%20%2F%3E%5B%2014.643448%5D%20gpiod_direction_input%2B0x198%2F0x1ac%3CBR%20%2F%3E%5B%2014.647892%5D%20goodix_irq_direction_input%2B0x40%2F0xa4%20%5Bgoodix%5D%3CBR%20%2F%3E%5B%2014.653388%5D%20goodix_ts_probe%2B0x3fc%2F0x5c8%20%5Bgoodix%5D%3C%2FPRE%3E%3CP%3E%E7%BB%8F%E8%BF%87%E8%BF%9B%E4%B8%80%E6%AD%A5%E8%B0%83%E6%9F%A5%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%20set_config%20%E5%87%BD%E6%95%B0%E5%B0%9A%E6%9C%AA%E5%AE%9E%E7%8E%B0%EF%BC%88gpiolib.c%E8%BF%9B%E8%A1%8C%E4%BB%A5%E4%B8%8B%E6%A3%80%E6%9F%A5%EF%BC%89%EF%BC%9A%3C%2FP%3E%3CPRE%20translate%3D%22no%22%3Egpio_do_set_config(struct%20gpio_chip%20*gc%2C%20unsigned%20int%20offset%2C%20unsigned%20long%20config)%20%7B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%20if%20(!gc-%26gt%3Bset_config)%3CBR%20%2F%3E%20%20%20%20return%20-ENOTSUPP%3B%3CBR%20%2F%3E%5B...%5D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%E6%88%91%E5%BE%88%E5%A5%BD%E5%A5%87%E4%B8%BA%E4%BB%80%E4%B9%88%20set_config%20%E5%B0%9A%E6%9C%AA%E5%AE%9E%E7%8E%B0%E3%80%82%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%E6%88%91%E7%9C%8B%E5%88%B0%E5%85%B6%E4%BB%96%E4%BA%BA%E4%B9%9F%E8%BF%99%E4%B9%88%E5%81%9A%E8%BF%87%EF%BC%9A%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%20translate%3D%22no%22%3E%E2%80%8Bgc-%26gt%3Bset_config%20%3D%20pca953x_gpio_set_config%3B%0Aor%0Agc-%26gt%3Bset_config%20%3D%20ep93xx_gpio_set_config%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E8%83%BD%E5%B0%B1%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E6%AD%A4%E9%97%AE%E9%A2%98%E6%8F%90%E5%87%BA%E4%BB%BB%E4%BD%95%E8%A7%81%E8%A7%A3%E6%88%96%E5%BB%BA%E8%AE%AE%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%3C%2FDIV%3E%3CP%3E%E6%8F%90%E5%89%8D%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%AE%E5%8A%A9%EF%BC%81%3C%2FP%3E%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3CBR%20%2F%3E%E4%BA%9A%E5%8E%86%E5%B1%B1%E5%A4%A7%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1868239%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9C%AA%E5%AE%9E%E7%8E%B0%E7%9A%84%20set_config%20%E5%87%BD%E6%95%B0%EF%BC%9Ai.MX8MP%20%E4%B8%8A%E7%9A%84%20GPIO%20%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%A2%E5%A4%B1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1868239%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%BF%99%E5%B0%B1%E6%98%AF%E6%88%91%E8%A7%A3%E5%86%B3%E9%97%AE%E9%A2%98%E7%9A%84%E6%96%B9%E6%B3%95%E3%80%82%3CBR%20%2F%3E%E6%A0%B9%E6%8D%AE%E6%88%91%E7%9A%84%E5%8F%91%E7%8E%B0%EF%BC%8C%E5%B0%86%20%26lt%3B%26amp%3Bpinctrl_ts%26gt%3B%20%E6%94%BE%E7%BD%AE%E5%9C%A8%E8%A7%A6%E6%91%B8%E5%B1%8F%E8%8A%82%E7%82%B9%E4%B8%8B%E5%B9%B6%E4%B8%8D%E8%83%BD%E6%AD%A3%E7%A1%AE%E5%BA%94%E7%94%A8%E5%BC%95%E8%84%9A%E5%8A%9F%E8%83%BD%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3E%26amp%3Bi2c3%20%7B%0A%09clock-frequency%20%3D%20%26lt%3B400000%26gt%3B%3B%0A%09pinctrl-names%20%3D%20%22default%22%3B%0A%09pinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_i2c3%26gt%3B%2C%26lt%3B%26amp%3Bpinctrl_ts%26gt%3B%3B%0A%09status%20%3D%20%22okay%22%3B%0A%0A%09ov5640_0%3A%20ov5640_mipi%403c%20%7B%0A%09%09status%20%3D%20%22disabled%22%3B%0A%09%7D%3B%0A%0A%09gt928%405d%20%7B%0A%09%09compatible%20%3D%20%22goodix%2Cgt928%22%3B%0A%09%09reg%20%3D%20%26lt%3B0x5d%26gt%3B%3B%0A%09%09pincrtl-names%20%3D%20%22default%22%3B%0A%09%09pincrtl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_ts%26gt%3B%3B%0A%09%09interrupt-parent%20%3D%20%26lt%3B%26amp%3Bgpio1%26gt%3B%3B%0A%09%09interrupts%20%3D%20%26lt%3B6%20IRQ_TYPE_LEVEL_LOW%26gt%3B%3B%0A%09%09gt928%2Cirq-gpios%20%3D%20%26lt%3B%26amp%3Bgpio1%206%20GPIO_ACTIVE_HIGH%26gt%3B%3B%0A%09%09gt928%2Creset-gpios%20%3D%20%26lt%3B%26amp%3Bgpio2%206%20GPIO_ACTIVE_HIGH%26gt%3B%3B%0A%09%09touchscreen-inverted-x%3B%20%0A%09%09status%20%3D%20%22okay%22%3B%0A%09%7D%3B%0A%7D%3B%0A%0A%5B...%5D%0A%0A%26amp%3Biomuxc%20%7B%0A%09pinctrl_ts%3A%20tsgrp%20%7B%0A%09%09fsl%2Cpins%20%3D%20%26lt%3B%0A%09%09%09MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06%09%090x146%20%2F*%200x146%20%3D%3D%20pull%20up%2C%20drive%20strength%20%3D%206%20*%2F%0A%09%09%09MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06%09%090xd6%0A%09%09%26gt%3B%3B%0A%09%7D%3B%0A%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3E%3CBR%20%2F%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E5%B0%86%E5%85%B6%E7%A7%BB%E5%8A%A8%E5%88%B0%EF%BC%86i2c3%20%E8%8A%82%E7%82%B9%E6%97%B6%EF%BC%8C%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E6%AD%A3%E7%A1%AE%E3%80%82%3C%2FP%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9C%AA%E5%AE%9E%E7%8E%B0%E7%9A%84%20set_config%20%E5%87%BD%E6%95%B0%EF%BC%9Ai.MX8MP%20%E4%B8%8A%E7%9A%84%20GPIO%20%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%A2%E5%A4%B1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E6%98%8E%E7%99%BD%E4%BA%86%EF%BC%8C%E4%BD%86%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%E6%98%AF%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%E5%BD%93%E6%88%91%E6%94%B9%E5%8F%98%E5%BC%95%E8%84%9A%E6%96%B9%E5%90%91%E6%97%B6%EF%BC%8C%E8%AE%BE%E5%A4%87%E6%A0%91%E4%B8%AD%E7%9A%84%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E4%BC%9A%E4%B8%A2%E5%A4%B1%EF%BC%9F%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AE%BE%E6%83%B3%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E7%9A%84%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E6%9C%89%E4%B8%8A%E6%8B%89%E7%94%B5%E9%98%BB%E3%80%82%3CBR%20%2F%3E%E6%88%91%E7%9A%84%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E5%8A%A0%E8%BD%BD%EF%BC%8C%E5%B0%86%E5%BC%95%E8%84%9A%E8%AE%BE%E7%BD%AE%E5%9C%A8%E8%BE%93%E5%87%BA%E4%B8%AD%E3%80%82%E4%B8%8D%E5%86%8D%E6%9C%89%E5%BC%95%E4%BD%93%E5%90%91%E4%B8%8A%E3%80%82%3CBR%20%2F%3E%E5%B0%86%E5%85%B6%E6%94%BE%E5%9B%9E%E8%BE%93%E5%85%A5%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%9C%9F%E6%9C%9B%EF%BC%9A%E5%BC%95%E8%84%9A%E8%AE%BE%E7%BD%AE%E4%B8%BA%E8%BE%93%E5%85%A5%EF%BC%8C%E4%B8%8A%E6%8B%89%3CBR%20%2F%3E%E5%BD%93%E5%89%8D%E8%A1%8C%E4%B8%BA%EF%BC%9A%E5%BC%95%E8%84%9A%E8%AE%BE%E7%BD%AE%E4%B8%BA%E8%BE%93%E5%85%A5%EF%BC%8C%E4%BD%86%E4%B8%8D%E5%86%8D%E6%9C%89%E4%B8%8A%E6%8B%89%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%8D%AE%E6%88%91%E6%89%80%E8%A7%81%EF%BC%8C%E5%BD%93%E6%88%91%E4%BB%AC%E6%89%93%E7%94%B5%E8%AF%9D%E6%97%B6%3CBR%20%2F%3Egpiod_direction_input%EF%BC%88%EF%BC%89%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AF%A5%E5%87%BD%E6%95%B0%E5%B0%86%E5%BC%95%E8%84%9A%E8%AE%BE%E7%BD%AE%E4%B8%BA%E8%BE%93%E5%85%A5%EF%BC%8C%E7%84%B6%E5%90%8E%E8%B0%83%E7%94%A8%E8%AF%A5%E5%87%BD%E6%95%B0%3CBR%20%2F%3Egpio_set_bias%EF%BC%88%E7%BB%93%E6%9E%84gpio_desc%20*%20desc%EF%BC%89%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%BF%99%E4%BC%BC%E4%B9%8E%E8%AF%95%E5%9B%BE%E6%81%A2%E5%A4%8D%E5%BC%95%E8%84%9A%E7%9A%84%E6%8B%89%2F%E4%B8%8B%E6%8B%89%E7%8A%B6%E6%80%81%EF%BC%8C%E4%BD%86%E5%A6%82%E5%89%8D%E6%89%80%E8%BF%B0%EF%BC%8C%E4%BC%BC%E4%B9%8E%E6%B2%A1%E6%9C%89%E5%AE%9E%E7%8E%B0%E9%87%8D%E6%96%B0%E5%BA%94%E7%94%A8%E8%AE%BE%E5%A4%87%E6%A0%91%E6%A0%87%E5%BF%97%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9C%AA%E5%AE%9E%E7%8E%B0%E7%9A%84%20set_config%20%E5%87%BD%E6%95%B0%EF%BC%9Ai.MX8MP%20%E4%B8%8A%E7%9A%84%20GPIO%20%E5%BC%95%E8%84%9A%E9%85%8D%E7%BD%AE%E4%B8%A2%E5%A4%B1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223632%22%20target%3D%22_blank%22%3E%40alexandreMarquis%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E5%9C%A8%20gpio%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6%8E%A2%E6%B5%8B%E4%B9%8B%E5%89%8D%EF%BC%8Cgpio%20iomux%20%E5%80%BC%E5%B7%B2%E7%BB%8F%E7%94%A8%3CSPAN%3Eimx_pmx_set%3C%2FSPAN%3E%E5%86%99%E5%85%A5%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%97%A0%E9%9C%80%E5%9C%A8%20gpio%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E4%B8%AD%E4%BD%BF%E7%94%A8%20set_config%20%E5%87%BD%E6%95%B0%E3%80%82%3CSPAN%3Eimx_pinctrl_probe%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E5%AF%B9%E4%BA%8E%20gpio%20io%20%E6%89%A9%E5%B1%95%E5%99%A8%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%EF%BC%8C%E9%9C%80%E8%A6%81%E6%AD%A4%E5%8A%9F%E8%83%BD%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%B2%A1%E6%9C%89%E5%85%B6%E4%BB%96%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E8%AE%BE%E7%BD%AE%E4%B8%8A%E6%8B%89%2F%E4%B8%8B%E6%8B%89%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E5%BF%97%E6%98%8E%3C%2FP%3E%3C%2FLINGO-BODY%3E