* [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM
@ 2026-11-05 20:11 Daniel Matyas
2026-11-05 21:47 ` Nam Cao
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Matyas @ 2026-11-05 20:11 UTC (permalink / raw)
To: dri-devel
Cc: Daniel Matyas, linux-staging, Andy Shevchenko,
Greg Kroah-Hartman, Alex Lanzano, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Nam Cao, linux-fbdev,
linux-kernel, linux-riscv, devicetree
Hi,
I'm looking at the fbtft TODO (convert drivers to DRM) and want to check
whether fb_ili9341 can be dropped. Findings against v7.4-rc1:
1. fb_ili9341's init sequence is the MI0283QT-9A one. Comparing register
writes with drivers/gpu/drm/tiny/mi0283qt.c, the values are identical,
including the default gamma tables. Differences I found:
- mi0283qt writes EN3GAM (0xF2) = 0x08; the fbtft write is commented out.
- mi0283qt always sets MADCTL BGR; fbtft makes it configurable (bgr=).
- fbtft rotate=270 also sets ML; mi0283qt does not.
- Rotation maps as DRM rotation = fbtft rotate - 90 (mod 360).
- fbtft also offers runtime gamma adjustment.
2. fb_ili9341 registers the compatible "ilitek,ili9341", which is also the
fallback in the dt-schema binding, so it can match nodes that the DRM
drivers claim via their specific compatibles.
3. In-tree users: no defconfig enables FB_TFT. canaan_kd233 (62363a8e2f56, Feb 2021)
has a status = "disabled" panel node compatible with "canaan,kd233-tft",
"ilitek,ili9341". It predates the first DRM driver accepting ilitek,ili9341
(5a04227326b0, Jul 2021), and none of the DRM drivers match canaan,kd233-tft.
fbtft requests "dc" and "reset" GPIOs, which fits that node. I haven't tried
binding it. I suppose that, if the board is used, then it is built against the
fbtft driver.
4. fb_ili9341 has had only style/mechanical changes in recent years.
Questions:
a) Is removing fb_ili9341 acceptable, pointing users of other ILI9341
modules to panel-mipi-dbi? The KD233 node would then have no driver.
b) Or should KD233 panel support go into a DRM driver first? I don't have
its init sequence or physical size, or the board...
c) Is removal of all of fbtft already planned?
d) Several other fbtft drivers have drm counterparts. Should I inspect those
to see if removal is needed?
I have not tested on hardware.
Thanks,
Daniel M
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM
2026-11-05 20:11 [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM Daniel Matyas
@ 2026-11-05 21:47 ` Nam Cao
2026-11-06 17:10 ` Daniel Matyas
0 siblings, 1 reply; 3+ messages in thread
From: Nam Cao @ 2026-11-05 21:47 UTC (permalink / raw)
To: Daniel Matyas, dri-devel
Cc: Daniel Matyas, linux-staging, Andy Shevchenko,
Greg Kroah-Hartman, Alex Lanzano, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, linux-fbdev,
linux-kernel, linux-riscv, devicetree
Daniel Matyas <matyasdaniel006@gmail.com> writes:
> Questions:
> a) Is removing fb_ili9341 acceptable, pointing users of other ILI9341
> modules to panel-mipi-dbi? The KD233 node would then have no driver.
> b) Or should KD233 panel support go into a DRM driver first? I don't have
> its init sequence or physical size, or the board...
> c) Is removal of all of fbtft already planned?
> d) Several other fbtft drivers have drm counterparts. Should I inspect those
> to see if removal is needed?
IIRC the main reason fbtft needs to stay is because it supports parallel
interface which is missing in the DRM drivers.
Nam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM
2026-11-05 21:47 ` Nam Cao
@ 2026-11-06 17:10 ` Daniel Matyas
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Matyas @ 2026-11-06 17:10 UTC (permalink / raw)
To: Nam Cao
Cc: dri-devel, linux-staging, Andy Shevchenko, Greg Kroah-Hartman,
Alex Lanzano, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Conor Dooley,
Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti, linux-fbdev, linux-kernel,
linux-riscv, devicetree
On Thu, Nov 05, 2026 at 10:47:06PM +0100, Nam Cao wrote:
> Daniel Matyas <matyasdaniel006@gmail.com> writes:
> > Questions:
> > a) Is removing fb_ili9341 acceptable, pointing users of other ILI9341
> > modules to panel-mipi-dbi? The KD233 node would then have no driver.
> > b) Or should KD233 panel support go into a DRM driver first? I don't have
> > its init sequence or physical size, or the board...
> > c) Is removal of all of fbtft already planned?
> > d) Several other fbtft drivers have drm counterparts. Should I inspect those
> > to see if removal is needed?
>
> IIRC the main reason fbtft needs to stay is because it supports parallel
> interface which is missing in the DRM drivers.
>
> Nam
Thank you for clarifying. However, the fb_ili9341 driver uses only the
SPI interface. Is it alright then to move (or remove) those drivers that only use
SPI interface and have DRM counterparts?
Furthermore, would there be a need to enable parallel interface support
in the DRM subsystem?
Daniel M
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-06 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 20:11 [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM Daniel Matyas
2026-11-05 21:47 ` Nam Cao
2026-11-06 17:10 ` Daniel Matyas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®