Changes
/* Overview */
__TOC__== fitlet GPIO SDK for Linux Overview ==* Not supported in mainline Linux kernel* [http[Fitlet://fit-pc.com/download/fitlet/sw/fitlet-gpio-sdk-for-linux.zip fitlet GPIO SDK for _Linux:_Kernel | LinuxKernel for Fitlet]] must 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* 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 connector pinout|-| Pin Number| Color Code| GPIO name| Power domain| HW source| Notes|-| 1| Brown| GPIO89| 3.3V| SoC| |-| 2| Red| GPIO132| 3. Open the terminal and install the new linux3V| SoC||-*| 3| Orange| GPIO65| 3.deb packages:3V $ sudo dpkg | SoC||-i /path/to/linux| 4| Yellow| GPIO66| 3.3V| SoC||-*| 5| Green| GPIO29| 1.deb5V| SoC||-| 6| Blue| I2C Clock| 3.3V| SoC| |-| 7| Purple| I2C Data| 3.3V| SoC| |-| 8| Grey| GPIO73| 3.3V| SoC||-| 9| White| GPIO27| 1.5V| SoC||-| 10| Black| GPIO28| 1.5V| SoC||-| 11| Brown| GPIO12| 3.3V| SoC||-| 12| Red| UART Rx| 3.3V| SuperIO| |-| 13| Orange| UART Tx| 3.3V| SuperIO| |-| 14| Yellow| | | GND| |}
$ echo 89 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio89/direction
$ echo 1 > /sys/class/gpio/gpio89/value
## at this point voltage measuring on P-1 (Brown) should give 3.3V
$ echo 0 > /sys/class/gpio/gpio89/value
## at this point voltage measuring on P-1 (Brown) should give 0.0V
$ echo 89 > /sys/class/gpio/unexport
[[category:fitlet]]