1367 views|0 replies

253

Posts

0

Resources
The OP
 

How to configure the pins used by LCD as GPIO? [Copy link]

&iomuxc {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_nand_gpio &pinctrl_gpio_gpio &pinctrl_snvs_4g_rst &pinctrl_snvs_gpio>;
};
In it, &pinctrl_gpio_gpio means that when GPIO is registered, the pins in &pinctrl_gpio_gpio will be registered.

arch/arm/boot/dts/myimx6ek140p-iomuxc.dtsi
defines two pins
pinctrl_gpio_gpio: gpio_gpio_grp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0x80000000 /* P21:36 /
MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x80000000 / P21:35 */
>;
};
MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 is divided into two sections. The front section GPIO1_IO03 is the CPU pin name, as shown below

The following GPIO1_IO03 represents the function. In fact, we can see many predefined functions in myimx6y-pinfunc.h:
Here we choose the GPIO function: MX6UL_PAD_GPIO1_IO03__GPIO1_IO03

图1.jpg (115.64 KB, downloads: 0)

图1.jpg

图2.jpg (180.75 KB, downloads: 0)

图2.jpg
This post is from Linux and Android

Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list