Changes

Jump to: navigation, search

Fitlet GPIO SDK for Linux

208 bytes removed, 09:03, 24 January 2016
/* Overview */
__TOC__== Installation Overview ==* Download the [http://www.fit-pc2.com/download/fitlet/Not supported in mainline Linux/mint/17/linux-image-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel image] and * [http[Fitlet:_Linux://www.fit-pc2.com/download/fitlet/_Kernel | Linux/mint/17/linux-headers-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel headersKernel for Fitlet] ] must be installed to the fitlet. * Open the terminal and install the new linux-*.deb packages: $ sudo dpkg -i /path/to/linux-*.deb * Reboot the system: $ sudo reboot -f == Usage ==make this feature work* GPIO interface on fitlet consists of 9 I/Os GPIOs provided by AMD FCH (Fusion Controller Hub)
* The responsible kernel module is gpio_fch
* The kernel module uses the following pin naming convention:
{| cellpadding="3" border="1" style="border: 1px solid rgb(85, 85, 85); border-collapse: collapse;"
|+ GPIO pin naming convention on fitletconnector pinout
|-
| Pin numberNumber| Color codeCode
| GPIO name
| Power domain
| HW source
| Notes
|-
| P-1
| Brown
| GPIO89
| FCH3.3V| SoC
|
|-
| P-2
| Red
| GPIO132
| FCH3.3V| SoC|
|-
| P-3
| Orange
| GPIO65
| FCH3.3V| SoC|
|-
| P-4
| Yellow
| GPIO66
| FCH3.3V| SoC|
|-
| P-5
| Green
| GPIO29
| FCH| Vout 1.5V| SoC|
|-
| P6| Blue| I2C Clock| 3.3V| SoC| |-| 7| Purple| I2C Data| 3.3V| SoC| |-| 8
| Grey
| GPIO73
| FCH3.3V| SoC|
|-
| P-9
| White
| GPIO27
| FCH| Vout 1.5V| SoC|
|-
| P-10
| Black
| GPIO28
| FCH| Vout 1.5V| SoC|
|-
| P-11
| Brown
| GPIO12
| FCH3.3V| SoC||-| 12| Red| UART Rx| 3.3V| SuperIO
|
|-
| 13
| Orange
| UART Tx
| 3.3V
| SuperIO
|
|-
| 14
| Yellow
|
|
| GND
|
|}
== Usage ==
* The GPIO sysfs interface allows users to manipulate any GPIO from userspace dynamically.
* A basic example of GPIO P-1 (Brown) usage (as root user):
$ modprobe fch_gpiogpio_fch
$ echo 89 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio89/direction
$ echo 89 > /sys/class/gpio/unexport
* The source code of gpio_fch driver [http://www.fit-pc2.com/download/fitlet/Linux/mint/17/fitlet.gpio.3.16.diff fitlet.gpio.3.16.diff]== Documentation ==* The GPIO framework and GPIO sysfs interface are documented in [https://www.kernel.org/doc/Documentation/gpio/gpio.txt Linux Kernel Documentation :: GPIO]
[[category:fitlet]]
1,916
edits