From: Daniel Matyas <matyasdaniel006@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Daniel Matyas <matyasdaniel006@gmail.com>,
linux-staging@lists.linux.dev, Andy Shevchenko <andy@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alex Lanzano <lanzano.alex@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Nam Cao <namcao@linutronix.de>,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, devicetree@vger.kernel.org
Subject: [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM
Date: Thu, 5 Nov 2026 22:11:53 +0200 [thread overview]
Message-ID: <20261105201154.37294-2-matyasdaniel006@gmail.com> (raw)
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
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Matyas <matyasdaniel006@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Daniel Matyas <matyasdaniel006@gmail.com>,
linux-staging@lists.linux.dev, Andy Shevchenko <andy@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alex Lanzano <lanzano.alex@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Nam Cao <namcao@linutronix.de>,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, devicetree@vger.kernel.org
Subject: [RFC] staging: fbtft: Moving fb_ili9341 (and others) to DRM
Date: Thu, 5 Nov 2026 22:11:53 +0200 [thread overview]
Message-ID: <20261105201154.37294-2-matyasdaniel006@gmail.com> (raw)
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
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next reply other threads:[~2026-11-06 9:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 20:11 Daniel Matyas [this message]
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-05 21:47 ` Nam Cao
2026-11-06 17:10 ` Daniel Matyas
2026-11-06 17:10 ` Daniel Matyas
2026-11-07 11:40 ` Andy Shevchenko
2026-11-07 11:40 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261105201154.37294-2-matyasdaniel006@gmail.com \
--to=matyasdaniel006@gmail.com \
--cc=airlied@gmail.com \
--cc=alex@ghiti.fr \
--cc=andy@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=lanzano.alex@gmail.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-staging@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=namcao@linutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.