Hi, I am trying to bring up the https://www.buydisplay.com/default/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board with DRM_TILCDC on the RGB 16 pins on P8. First I tried to go SPI. Here is my saga.
I flashed the latest http://debian.beagleboard.org/images/bone-debian-9.5-lxqt-armhf-2018-10-07-4gb.img.xz to BBB I killed the default u-boot from eMMC, the right uBoot is taken from sdcard The display wiring is: LCD________________BBB___________________GPIO_______________________________ JP2 1 P9_27 (VSYNC) JP2 2 P9_29 (HSYNC) JP2 3 P9_28 (PCLK) JP2 4 P9_30 (DE) JP1 [3-20] P8 31-46 (keep first 8 LCD off due: BBB is not booting) JP1 1 P9_1 GND JP1 2 P9_3 +VCC JP1 21 RESET P9_12 RST GPIO 60 JP1 23 CS P9_17 CS SPI0_CS0 JP1 24 SCLK P9_22 CLK SPI0_SCLK JP1 25 DC P9_15 D/C GPIO 48 JP1 27 MOSI P9_18 MOSI SPI 0 D1 JP1 28 MISO P9_21 MISO SPI 0 D0 JP1 29 BL/LED P9_27 LED/BL 29 GPIO 115 I have the uEnv.txt as: #Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0 uname_r=4.14.108-ti-r108 #uuid= #dtb= ###U-Boot Overlays### ###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays ###Master Enable enable_uboot_overlays=1 ### ###Overide capes with eeprom #uboot_overlay_addr0=/lib/firmware/<file0>.dtbo #uboot_overlay_addr1=/lib/firmware/<file1>.dtbo #uboot_overlay_addr2=/lib/firmware/<file2>.dtbo #uboot_overlay_addr3=/lib/firmware/<file3>.dtbo ### ###Additional custom capes #uboot_overlay_addr4=/lib/firmware/<file4>.dtbo #uboot_overlay_addr5=/lib/firmware/<file5>.dtbo #uboot_overlay_addr6=/lib/firmware/<file6>.dtbo #uboot_overlay_addr7=/lib/firmware/<file7>.dtbo ### ###Custom Cape #dtb_overlay=/lib/firmware/<file8>.dtbo # dtb_overlay=/boot/dtbs/4.14.108-ti-r108/katerra_tow.dtbo ### ###Disable auto loading of virtual capes (emmc/video/wireless/adc) #disable_uboot_overlay_emmc=1 #disable_uboot_overlay_video=1 #disable_uboot_overlay_audio=1 #disable_uboot_overlay_wireless=1 #disable_uboot_overlay_adc=1 ### ###PRUSS OPTIONS ###pru_rproc (4.4.x-ti kernel) #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo ###pru_rproc (4.14.x-ti kernel) uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo ###pru_uio (4.4.x-ti, 4.14.x-ti & mainline/bone kernel) #uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo ### ###Cape Universal Enable enable_uboot_cape_universal=1 ### ###Debug: disable uboot autoload of Cape #disable_uboot_overlay_addr0=1 #disable_uboot_overlay_addr1=1 #disable_uboot_overlay_addr2=1 #disable_uboot_overlay_addr3=1 ### ###U-Boot fdt tweaks... (60000 = 384KB) #uboot_fdt_buffer=0x60000 ###U-Boot Overlays### cmdline=coherent_pool=1M net.ifnames=0 quiet #In the event of edid real failures, uncomment this next line: #cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e #Use an overlayfs on top of a read-only root filesystem: #cmdline=coherent_pool=1M net.ifnames=0 quiet overlayroot=tmpfs ##enable Generic eMMC Flasher: ##make sure, these tools are installed: dosfstools rsync #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh I compiled the kernel from: https://github.com/RobertCNelson/ti-linux-kernel-dev I deployed the kernel. I plugged into kernel this driver: https://github.com/avrxml/asf/tree/master/sam/components/display/ili9488 sudo modprobe fbtft sudo insmod fb_ili9488.ko dmesg [ 1066.593329] fbtft: module is from the staging directory, the quality is unknown, you have been warned. [ 1068.537263] fb_ili9488: module is from the staging directory, the quality is unknown, you have been warned. debian@beaglebone:~$ I have no /dev/fb* I also tried this, which generated a /dev/fb0, but cat-ing a /dev/random just flashed the display randomly sudo cp ~/fb_ili9* ./modules/4.14.108-ti-r108/kernel/drivers/staging/fbtft/ sudo depmod -a sudo modprobe fbtft_device custom busnum=1 name=fb_ili9488 gpios=reset:60,dc :48,led:115 speed=16000000 I also tried flexfb as: sudo modprobe flexfb width=480 height=320 sudo modprobe flexfb width=480 height=320 buswidth=8 init=-1,0xb0,0x0,-1, 0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x48,-1 ,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E, 0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43, 0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3 sudo modprobe fbtft_device name=flexpfb buswidth=8 gpios=dc:48,reset:60,wr: 27,cs:4,db00:8,db01:9,db02:12,db03:10,db04:13,db05:11,db06:14,db07:15 sudo modprobe flexfb width=480 height=320 buswidth=8 init=-1,0xb0,0x0,-1, 0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x48,-1 ,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E, 0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43, 0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3 What I am missing. The above SPI approach worked fine with ili9341 SPI display. A screenshot can be seen here: https://www.amazon.ca/gp/product/B07BDML7LM/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1#customerReviews Thank you Thank you. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a4eb2550-3f91-47df-99f0-4c34aa498e08%40googlegroups.com.
