Noralf,

Thanks for the guidance on how to use the mi0283qt driver to run the
panel included in the Adafruit 2.8" capacitive PiTFT Plus (running on
top of a Raspberry Pi 3).

I am working with 4.16.0 (Fedora 28). I can get the driver to load, and
have console output appearing on it, but I have run into some issues
that I am unclear how to resolve.

Specifically:

1) If I change the rotation value to anything other than 90 (0x5a), the
screen output from the console is corrupt.
2) The resolution is set to 240x320, not the 320x240 that I expected.
3) pygame cannot run a display.set_mode call, always returning:

No video mode large enough for 240x320

When I run this python code:

   import os
   import pygame
   os.putenv('SDL_VIDEODRIVER', 'fbcon')
   os.putenv('SDL_FBDEV'      , '/dev/fb1')
   pygame.init()
   list = pygame.display.list_modes()
   print "List of modes: %s" % (list)

It shows an empty set ("List of modes: []").

Do you have any advice on how to resolve these issues?

Thanks in advance,

~tom

For debugging purposes:

I have the following device tree entry for the device (taken from dtc
-Ifs /proc/device-tree):

pitft@0 {
        compatible = "multi-inno,mi0283qt";
        buswidth = <0x8>;
        rotation = <0x5a>;
        bgr;
        fps = <0x1e>;
        reg = <0x0>;
        pinctrl-0 = <0x10>;
        debug = <0x0>;
        dc-gpios = <0xf 0x19 0x0>;
        spi-max-frequency = <0x3d09000>;
        pinctrl-names = "default";
};

*** modetest output ***

[root@localhost ~]# modetest -M "mi0283qt" -c
Connectors:
id      encoder status          name            size (mm)       modes   encoders
28      31      connected       Virtual-1       43x58           1       31
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  240x320 0 240 240 240 240 320 320 320 320 1 flags: ; type: preferred,
driver
  props:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to