[I.MX6UL Development Common Problems configuring and commissioning GPIO?

"I.MX6UL / i.MX6ULL Development Frequently Asked Questions"

Compiled by Mir Mir Electronics Engineers-based electronic i.MX6UL / i.MX6ULL product (V.10)

4.6 How to configure and debug GPIO?

Answer: The actual hardware circuit customer can determine the specific hardware with which a pin to open the source code kernel /arch/arm/boot/dts/myb-y6ull-14x14.dts.
GPIO: Here the LCD_DATA0 to gpio used:
& iomuxc {
    pinctrl-names = "default";
    pinctrl-0 = <& pinctrl_hog_1>;
    imx6ul-EVK {
        pinctrl_hog_1: hoggrp-. 1 {
            FSL, pins = <
                MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 / * SD1 of the CD * /
                MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x17059 / * * a WiFi Module1 Power /
                MX6UL_PAD_NAND_CE1_B__GPIO4_IO14 0x17059 / * * the Reset the LTE /
                MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059 / * ID * OTG1 the USB /
                MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1b0b0 / LCD_DISP * * /
                MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0x10b1
                MX6UL_PAD_LCD_DATA00__GPIO3_IO05 0x1b0b0 (defined GPIO pin)
......
& LCDIF {
    pinctrl-names = "default";
    pinctrl-0 = <& pinctrl_lcdif_dat_16bits
             & pinctrl_lcdif_ctrl
             & pinctrl_lcdif_reset>;
    the display = <& display0>;
    Status = "Disabled"; (the use to LCD_DATA0 of local disable the swap)
after more good dts modify, compile tool chain can be loaded.

 

Note: this post from Mill micro-channel public number [i.MX6UL / i.MX6ULL Development Common Problems feature articles by Mir Mir electronics engineer based electronic i.MX6UL / i.MX6ULL products i.MX6UL / i.MX6ULL Development common problems finishing, want to help you.

Published 52 original articles · won praise 7 · views 30000 +

Guess you like

Origin blog.csdn.net/u011837423/article/details/93875242