Closed tiibro closed 3 years ago
flexfb doesn't have DT support. You can use any of the fbtft drivers that are MIPI compatible: set_addr_win() uses MIPI_DCSSET*, or 0x2a,2b,2c. However the problem is that you get set_var() as well, which flexfb doesn't set. This means that register MIPI_DCS_SET_ADDRESS_MODE,0x36 is set as well, and the value might not suit your need. It controls flip/mirror/bgr.
Turn on debug output and you'll see if the driver has picked up the right values.
flexfb doesn't have DT support.
I am sorry. I missed this in my research so I apologise for asking.
As dt support isn't available for the flexfb, is the next best option to add the terminal commands into the /etc/rc.local files? Additionally, I use crontab to start other scripts and could add a shell script for the screen, but timing-wise this seems to execute about the same as the rc.local file. Any advice on which is the "better" option?
Thanks.
If you use systemd (Raspian): https://github.com/notro/fbtft/wiki#make-it-permanent-debian-jessie-arch-linux-systemd
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Hi Folks,
I am adding a 3.5" screen with a capacitive touch panel to a Compute Module 3. You can read about my project here: https://www.raspberrypi.org/forums/viewtopic.php?t=185948.
I can get my screen working with the following commands:
sudo modprobe --first-time flexfb width=320 height=240 regwidth=16 buswidth=16 init=-1,0x01,-2,10,-1,0xE2,0x1D,0x02,0x04,-1,0xE0,0x01,-2,5,-1,0xE0,0x03,-2,5,-1,0X01,-2,10,-1,0XB0,0X00,0X00,0X01,0X3F,0X00,0XEF,0X00,-1,0XF0,0X03,-1,0XE6,0X01,0X06,0X24,-1,0XB4,0X01,0X97,0X00,0X46,0X00,0X00,0X00,0X00,-1,0XB6,0X01,0X6,0X00,0X0D,0X00,0X00,0X00,-1,0X2A,0X00,0X00,0X01,0X3F,-1,0X2B,0X00,0X00,0X00,0XEF,0X00,0XEF,-1,0XB8,0X0F,0X01,0XBA,0X01,-1,0X29,-3
and
sudo modprobe --first-time fbtft_device name=flexpfb gpios=reset:23,dc:5,wr:6,db00:7,db01:8,db02:9,db03:10,db04:11,db05:12,db06:13,db07:14,db08:15,db09:16,db10:17,db11:18,db12:19,db13:20,db14:21,db15:22 rotate=0
then setting fbcp running using
/usr/local/bin/fbcp
I'd like to use a device tree overlay to set these parameters on boot. Here is the dts file I've started:
I haven't tried to compile and load because I know there are issues. My questions are:
compatible
properly links the software (driver?) to the hardware, but I am struggling (sorry).modprobe
statements and added these to the dts file.Again, any help with my questions/problems listed above would be most welcome. Thanks in advance for the help!