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.85k stars 494 forks source link

New adafruit 2.2" with raspberry pi b+, screen always white. #157

Closed raghavraman59 closed 9 years ago

raghavraman59 commented 10 years ago

Hi, -I am not able to get the new adafruit 2.2" display to work with my raspberry pi b+ model. -I am running 2014-06-20-wheezy-raspbian-2014-07-25-fbtft-master-firmware.zip. -When i load the drivers using sudo modprobe fbtft_device name=adafruit22 -The screen flashes black and then returns to white. -Connections RST GPIO25 (P1-22) and BL to GPIO23 (P1-16) -Previous connections: BL was wired to GPIO18 (P1-12) as recommended for the new adafruit 2.2", still not luck with the display. always white

-dmesg output fbtft_device: SPI devices registered: fbtft_device: spidev spi0.0 500kHz 8 bits mode=0x00 fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00 fbtft_device: 'fb' Platform devices registered: fbtft_device: bcm2708_fb id=-1 pdata? no fbtft_device: Deleting spi0.0 fbtft_device: GPIOS used by 'adafruit22': fbtft_device: 'reset' = GPIO25 fbtft_device: 'led' = GPIO23 fbtft_device: SPI devices registered: fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00 fbtft_device: fb_hx8340bn spi0.0 32000kHz 8 bits mode=0x00 fb_hx8340bn spi0.0: setup: invalid bits_per_word 9 (must be 8) fb_hx8340bn spi0.0: 9-bit SPI not available, emulating using 8-bit. graphics fb1: fb_hx8340bn frame buffer, 176x220, 75 KiB video memory, 16 KiB buffer memory, fps=20, spi0.0 at 32 MHz

-when i try con2fbmap 1 1 the adafruit display remains white. -I have use con2fbmap 1 0 to switch back to HDMI,

This is my first time using an Rpi, Any ideas on what I might be doing wrong?

Thanks for the help

notro commented 10 years ago

Which Adafruit 2.2" display? The pitft display is called pitft.

concefly commented 10 years ago

I'am sorry. Maybe you need to use name=adafruit22a

raghavraman59 commented 10 years ago

http://www.adafruit.com/products/1480 Thanks, the name was the issue all along. It works now.