Difference between revisions of "VAR-SOM-SD600 gpio"

From Variscite Wiki
(Created page with "= GPIOs features = <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 *In...")
 
Line 15: Line 15:
  
 
[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/><br/><br/></div></div>
 
<br/>
 
  
 
= PinMux configuration =
 
= PinMux configuration =
<br/><br/>
 
  
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
+
 
 +
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.
 +
or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.

Revision as of 12:00, 4 May 2014

1 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

2 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

3 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. or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.