VAR-SOM-SD600 gpios: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= GPIOs features =
= GPIOs features =
<div>The APQ8064 SoC GPIOs features are as follows</div><div>* 90 GPIO pins (GPIO_0 to GPIO_89)</div><div>* Configurable pull-up/down</div><div>* Configurable output drive current</div><div>* Interruptable GPIOs</div><div><br/></div>
<div>The APQ8064 SoC GPIOs features are as follows</div>
*90 GPIO pins (GPIO_0 to GPIO_89)
*Configurable pull-up/down
*Configurable output drive current
*Interruptable GPIOs
<div><br/><br/><br/><br/></div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
 
<br/>
 
<br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
 
 
= GPIO manipulation =
= GPIO manipulation =
<div><div>GPIO manipulation is done through the standard gpiolib<br/></div><div>The usage / API is well described in kernel/Documentation/gpio.txt.</div><div><br/></div><div>Additional useful links:</div><div>
<div><div>GPIO manipulation is done through the standard gpiolib<br/>The usage / API is well described in kernel/Documentation/gpio.txt.<br/><br/><br/><br/><br/><br/><br/></div><div><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></div><div>Additional useful links:</div><div>
http://elinux.org/GPIO
[http://elinux.org/GPIO http://elinux.org/GPIO]


[https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c]
[https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c]
Line 10: Line 23:


[http://mondi.web.cs.unibo.it/gpio_control.html http://mondi.web.cs.unibo.it/gpio_control.html]
[http://mondi.web.cs.unibo.it/gpio_control.html http://mondi.web.cs.unibo.it/gpio_control.html]
<br/></div></div>


<br/><br/>
 
 
= PinMux configuration<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> =
 
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><span style="font-size: 12px;">GPIO mux configuration is done in kernel\arch\arm\mach-msm\board-8064-gpiomux.c</span> <br/> <br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
 
At apq8064_init_gpiomux(void) you can find several examples of pinmux configuration
 
&nbsp;for example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.
</div></div><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
 
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>

Latest revision as of 10:51, 4 May 2014

GPIOs features

The APQ8064 SoC GPIOs features are as follows
  • 90 GPIO pins (GPIO_0 to GPIO_89)
  • Configurable pull-up/down
  • Configurable output drive current
  • Interruptable GPIOs


































































GPIO manipulation

GPIO manipulation is done through the standard gpiolib
The usage / API is well described in kernel/Documentation/gpio.txt.






























Additional useful links:

http://elinux.org/GPIO

https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c

https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals

http://mondi.web.cs.unibo.it/gpio_control.html


PinMux configuration







































































GPIO mux configuration is done in kernel\arch\arm\mach-msm\board-8064-gpiomux.c








































At apq8064_init_gpiomux(void) you can find several examples of pinmux configuration

 for example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.