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

LCD Registration problem #69

Closed Niraj001 closed 10 years ago

Niraj001 commented 10 years ago

Hey Guys, I am using Tinylcd35. Bought it from EBAY.

I configured it with Raspberry pi in following steps:

I first of all updated raspberry pi Then I upgraded raspberry pi Then I upgraded the kernel and firmware using

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

for tinylcd35 support

Then I enabled spi for spi

Then I rebooted Pi for letting firmware take its effect

Then I verified and confirmed that fbtft module is installed using sudo modprobe fbtft dma

Then I connected lcd to raspberry pi as follows: 3V3------3.3V RS-------GPIO24 MOSI----MOSI CS-------GND SCLK----SCLK RST------GPIO25 BL--------GPIO18 GND-----GND

The backlight of lcd screen is perfectly lit

Then finally I registered the lcd using: sudo modprobe fbtft_device name=tinylcd35

Then I verified the pinouts and configuration using: dmesg

Here I got all the information about master spi device using DMA and pinouts and lcd name and stuff like that..

Finally i used: FRAMEBUFFER=/dev/fb1 startx

After performing this my HDMI screen got blank and black but my tinylcd35 is only lit using its backlight nothing is getting displayed on it....

How can I move further????????????????????

Any help will be highly appreciated Thanks in advance

notro commented 10 years ago

Is the display black with backlight, or just white? From: https://github.com/notro/fbtft/wiki/Troubleshooting

A white display is uninitialized. When the device and driver is loaded, the display should turn black (no pixels set). If 'led' is used, the backlight should turn off momentarily during initialization.

If it is black and you use the latest raspian, have you done this: https://github.com/notro/fbtft/issues/63

Niraj001 commented 10 years ago

Thanks for replying...

The display is white with back-light... And when I register the LCD i.e. < sudo modprobe fbtft_device name=tinylcd35 speed=48000000 fps=50> It does turn black momentarily but then white again... Moreover I've disabled the <Option "fbdev" "/dev/fb0"> in 99-fbturbo.conf...

So is it registered successfully..????? And if it is then why the LCD screen is white only when I execute: ...???? How can I proceed??? Million thanks for help...

Niraj001 commented 10 years ago

Moreover I am using the LED pin as configured by loading fb_tinylcd driver...And so the display turns black momentarily.. But when redirecting to FRAMEBUFFER the lcd shows no response i.e. blank white with backlight...

notro commented 10 years ago

A white display is not initialized, and the driver is clearly controlling the backlight here. I don't know how long wires you use, but 48MHz is really pushing the envelope, even with very short wires. Try to lower the speed, ie. modprobe fbtft_device name=tinylcd35 speed=16000000

notro commented 10 years ago

Closing issue since there has been no activity for more than 2 months. Reopen if needed.