Changes

Jump to: navigation, search

Fitlet GPIO SDK for Linux

846 bytes removed, 13:06, 17 December 2015
== Installation ==
* Download the [http://www.fit-pc2.com/download/fitlet/Linux/mint/17/linux-image-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel image] and [http://www.fit-pc2.com/download/fitlet/Linux/mint/17/linux-headers-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel headers] 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
 
== GPIO ==
* '''NOTE!''' Not supported in mainline Linux kernel. [[Fitlet:_Linux:_Kernel | Linux Kernel for Fitlet]] should be installed to make this feature work
* GPIO interface on fitlet consists of 9 GPIOs provided by AMD FCH (Fusion Controller Hub)
* The responsible kernel module is gpio_fch
{| cellpadding="3" border="1" style="border: 1px solid rgb(85, 85, 85); border-collapse: collapse;"
|+ style="caption-side:top; text-align:left;"|'''GPIO connector pinout'''! colspan="2" | GPIO Connector! rowspan="2" | Source! rowspan="2" | Function/GPIO#! rowspan="2" | Linux Kernel GPIO#! rowspan="2" | Power domain! rowspan="2" | Direction/Drive! rowspan="2" | Pull (PU/PD)
|-
| Pin Number
| Color Code
| GPIO name
| Power domain
| HW source
| Notes
|-
| 1
| Brown
| SoC
| GPIO_1
| GPIO89
| 3.3V
| InSoC| PU
|-
| 2
| Red
| SoC
| GPIO_2
| GPIO132
| 3.3V
| InSoC| PU
|-
| 3
| Orange
| SoC
| GPIO_3
| GPIO65
| 3.3V
| Out/HighSoC| PU
|-
| 4
| Yellow
| SoC
| GPIO_4
| GPIO66
| 3.3V
| Out/HighSoC| PU
|-
| 5
| Green
| SoC
| GPIO_5
| GPIO29
| 1.5V
| InSoc| PD
|-
| 6
| Blue
| SoC
| I2C Clock
|
| 3.3V
| SoC
|
|-
| 7
| Purple
| SoC
| I2C Data
|
| 3.3V
| SoC
|
|-
| 8
| Grey
| SoC
| GPIO_6
| GPIO73
| 3.3V
| Out/LowSoC| PD
|-
| 9
| White
| SoC
| GPIO_7
| GPIO27
| 1.5V
| InSoC| PD
|-
| 10
| Black
| SoC
| GPIO_8
| GPIO28
| 1.5V
| InSoC| PD
|-
| 11
| Brown
| SoC
| GPIO_9
| GPIO12
| 3.3V
| InSoC| PU
|-
| 12
| Red
| SuperIO
| UART Rx
|
| 3.3V
| SuperIO
|
|-
| 13
| Orange
| SuperIO
| UART Tx
|
| 3.3V
| SuperIO
|
|-
| 14
| Yellow
|
|
|
| GND
|
|
|}
* 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_gpio
$ 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]* 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]]
[[category:gpio]]