tft driver

20 views
Skip to first unread message

evilwulfie

unread,
Feb 21, 2018, 10:49:08 PM2/21/18
to beagl...@googlegroups.com
How would one know if if a particular driver is already build in the bone kernel fb_ra8875.c


https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing

root@bone:/home/debian# modinfo fbtft
filename:       /lib/modules/4.9.78-ti-r94/kernel/drivers/staging/fbtft/fbtft.ko
license:        GPL
depends:
staging:        Y
intree:         Y
vermagic:       4.9.78-ti-r94 SMP preempt mod_unload modversions ARMv7 p2v8
parm:           debug:override device debug level (ulong)


If the driver is already compiled in how would one add it to a device tree file for use

spi driven device but no dc pin, first command byte upper bits select either a command or data and w/r

kinda a different animal than most tft displays

Drew Fustini

unread,
Feb 22, 2018, 1:41:24 PM2/22/18
to Beagle Board
Hi, it looks like the ra8875 driver is included, at least for the
kernel I'm running:

debian@beaglebone:~$ modinfo
/lib/modules/4.16.0-rc2-bone3/kernel/drivers/staging/fbtft/fb_ra8875.ko.xz
filename:
/lib/modules/4.16.0-rc2-bone3/kernel/drivers/staging/fbtft/fb_ra8875.ko.xz
license: GPL
author: Pf@nne
description: FB driver for the RA8875 LCD Controller
alias: platform:ra8875
alias: spi:ra8875
alias: platform:fb_ra8875
alias: spi:fb_ra8875
alias: of:N*T*Craio,ra8875C*
alias: of:N*T*Craio,ra8875
depends: fbtft
staging: Y
intree: Y
name: fb_ra8875
vermagic: 4.16.0-rc2-bone3 mod_unload modversions ARMv7 p2v8

fyi - I installed that kernel with this command:
sudo /opt/scripts/tools/update_kernel.sh --bone-channel --exp

This page from the fbtft wiki might be of interest:
https://github.com/notro/fbtft/wiki/fbtft_device#parameters

Here is example of the parameters one person uses:
https://github.com/notro/fbtft/issues/476

I'm curious which RA8875 display do you have?

I do support for Adafruit so I could request this one to try it out:
https://www.adafruit.com/product/1590

thanks,
drew
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/7eb65c10-babd-33d3-b1d9-304b0b757fb1%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Jason Kridner

unread,
Feb 23, 2018, 8:24:28 AM2/23/18
to beagl...@googlegroups.com
To know before installing, the last commit on any of the beagleboard kernels is the defconfig. Pick the kernel branch on github and go to the last commit. 


Search for RA8875. 


Reply all
Reply to author
Forward
0 new messages