Dobrica Pavlinušić's random unstructured stuff
fbtft: Revision 7

2.2 TFT LCD: TFT01-2.2SP

http://www.elecfreaks.com/estore/2-2-tft-lcd-tft01-2-2sp.html
http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S

ILI9341

RaspberryPi

https://github.com/notro/fbtft/wiki

# enable spi in raspi-config

pi@jpi1 ~ $ grep spi /boot/config.txt 
dtparam=spi=on


sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update

sudo reboot

sudo modprobe fbtft_device name=tm022hdh26
[   77.928639] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[   77.941004] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[   77.945461] fbtft_device:  SPI devices registered:
[   77.945514] fbtft_device:      spidev spi0.0 500kHz 8 bits mode=0x00
[   77.945535] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[   77.945547] fbtft_device:  'fb' Platform devices registered:
[   77.945595] fbtft_device:      bcm2708_fb id=-1 pdata? no
[   77.945673] fbtft_device: Deleting spi0.0
[   77.946333] fbtft_device:  GPIOS used by 'tm022hdh26':
[   77.946361] fbtft_device:    'reset' = GPIO25
[   77.946378] fbtft_device:    'dc' = GPIO24
[   77.946390] fbtft_device:    'led' = GPIO18
[   77.946399] fbtft_device:  SPI devices registered:
[   77.946415] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[   77.946430] fbtft_device:      fb_ili9341 spi0.0 32000kHz 8 bits mode=0x00
[   77.986607] fb_ili9341: module is from the staging directory, the quality is unknown, you have been warned.
[   78.281829] graphics fb1: fb_ili9341 frame buffer, 240x320, 150 KiB video memory, 16 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz



# test
cd /usr/share/X11/xorg.conf.d/
sudo mv 99-fbturbo.conf ~/
FRAMEBUFFER=/dev/fb1 startx