notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.86k stars 494 forks source link

PiTFT on Arch Linux #116

Closed stevenguh closed 9 years ago

stevenguh commented 10 years ago

Hi,

I am actually having troubles to install adafruit's PiTFT on Arch Linux. It seems like I don't even have the SPI driver. Is there anyway I could install the driver for PiTFT on Arch? I really need the fast boot of Arch. Thanks.

notro commented 10 years ago

I did a test just now:

Image: ArchLinuxARM-2014.05-rpi.img.zip

Install

wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update
REPO_URI=https://github.com/notro/rpi-firmware BRANCH=builtin rpi-update

Add to /boot/cmdline.txt

fbtft_device.name=pitft fbtft_device.rotate=90 fbtft_device.verbose=0 fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo

reboot

It worked just fine for me.

Backlight and touch:

modprobe stmpe_device cs=1 chip=stmpe610 blocks=gpio,ts irq-pullup irq-gpio=24 irq-base=330 sample-time=4 mod-12b=1 ref-sel=0 adc-freq=2 ave-ctrl=3 touch-det-delay=4 settling=2 fraction-z=7 i-drive=0
modprobe gpio_backlight_device gpio=252
stevenguh commented 10 years ago

It does work, I was using the wrong device name. Thanks a lot.

gorzilla commented 8 years ago

try stmpe_ts