Configuring pins in IMX6ULEVK

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

Configuring pins in IMX6ULEVK

跳至解决方案
2,442 次查看
chandraevolute
Contributor V


When I did cat /sys/kernel/debug/gpio

below is the output i got.

GPIOs 0-31, platform/209c000.gpio, 209c000.gpio:

gpio-3   (tsc_X-              ) in  hi

gpio-9   (VSD_3V3             ) out lo

gpio-19  (2190000.usdhc cd    ) in  hi

GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio:

GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio:

GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio:

gpio-119 (?                   ) out lo

GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio:

gpio-131 (?                   ) out lo

gpio-132 (headset detect      ) in  lo

gpio-135 (spi32766.0          ) out lo

gpio-136 (?                   ) out lo

gpio-138 (spi4.14             ) out lo

gpio-139 (spi4.14             ) out lo

GPIOs 248-255, spi/spi32766.0, 74hc595, can sleep:

what does this mean??

I want to configure gpio1_IO00 pin as I/O. I will connect a switch. whenever a switch is pressed it should generate a interrupt. and it should servie the ISR.

标签 (3)
0 项奖励
回复
1 解答
2,118 次查看
art
NXP Employee
NXP Employee

For detailed information on GPIO configuration and operation, please refer to the Chapter 3 "Machine-Specific Layer (MSL)", especially, to the IOMUX and GPIO sections, of the attached document.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,119 次查看
art
NXP Employee
NXP Employee

For detailed information on GPIO configuration and operation, please refer to the Chapter 3 "Machine-Specific Layer (MSL)", especially, to the IOMUX and GPIO sections, of the attached document.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,118 次查看
chandraevolute
Contributor V

Thank you Artur.

Now I am able to configure the GPIOS and write high and low for the same. I am able to use gpio_keys, gpio_leds and normal Gpio driver.

0 项奖励
回复