VAR-SOM-SD600 gpio: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
*Configurable output drive current
*Configurable output drive current
*Interruptable GPIOs
*Interruptable GPIOs
<br/>


= GPIO manipulation =
= GPIO manipulation =
<div><div>GPIO manipulation is done through the standard gpiolib<br/>The usage / API is well described in kernel/Documentation/gpio.txt.
<div><div>GPIO manipulation is done through the standard gpiolib<br/>The usage / API is well described in kernel/Documentation/gpio.txt.
Additional useful links: <a href="[http://elinux.org/GPIO http://elinux.org/GPIO]">[http://elinux.org/GPIO http://elinux.org/GPIO]&lt;/a&gt;
Additional useful links:


<a href="[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]&lt;/a&gt;
[http://elinux.org/GPIO http://elinux.org/GPIO]


<a href="[https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals]">[https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals]&lt;/a&gt;
[https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c]


<a href="[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]&lt;/a&gt;
[https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals]


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


= PinMux configuration =
= PinMux configuration =
Line 28: Line 22:
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.
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.


<br/>
= Generic serial bus interface (GSBI) =
The APQ8064 implements twelve Generic Serial Bus Interface (GSBI) ports. GSBI ports&nbsp;:an be configured for:


Generic serial bus interface (GSBI)
*UART_DM
The APQ8064 implements twelve Generic Serial Bus Interface (GSBI) ports. GSBI ports :an be configured for:
*I2C
* UART_DM
*SPI
* I2C
*General-purpose I/O (GPIO) bits
* SPI
* General-purpose I/O (GPIO) bits


Please refer to datasheet section: "Table ‎4_2 Detailed serial interface pinout" for elaborated list.
Please refer to datasheet section: "Table ‎4_2 Detailed serial interface pinout" for elaborated list.

Latest revision as of 14:42, 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. or example struct apq8064_gsbi2_UART2_configs configures GPIO pins 22,23,24 and 25 to serial port.


Generic serial bus interface (GSBI)

The APQ8064 implements twelve Generic Serial Bus Interface (GSBI) ports. GSBI ports :an be configured for:

  • UART_DM
  • I2C
  • SPI
  • General-purpose I/O (GPIO) bits

Please refer to datasheet section: "Table ‎4_2 Detailed serial interface pinout" for elaborated list.