Well I stumbled across the st7789 drm driver.  I built it, have it
loading.  But nothing was displaying.  The fbtft modprobe parameters
that work here, and pimoroni's python code show the driver using BCM9
for the dc pin.   Well, that's a bit of a conflict, as BCM9 is one of
the SPI pins.  The kernel will not allow the same pin to be allocated to
2 different functions.  Whereas user-space probably just doesn't know
any better.

< Insert many hours of waste>

One last ditch effort.....lie to device-tree.  The normal convention is
to tell device tree what you are using gpios for.  So just like the user
space drivers, I left out the gpio allocation, and just used the pin. 
And it works.

All rotations work.

Code:
--------------------
    
  dtoverlay=piratelcd
  dtoverlay=piratelcd,rotation=90
  dtoverlay=piratelcd,rotation=180,row_offset=80
  dtoverlay=piratelcd,rotation=270,row_offset=80
  
--------------------



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to