From: Hironori KIKUCHI <kikuchan98@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Hironori KIKUCHI <kikuchan98@gmail.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <quic_jesszhan@quicinc.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>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org
Subject: [PATCH v2 0/3] drm: panel: Add Generic MIPI Panel Driver
Date: Wed, 26 Feb 2025 20:25:47 +0900 [thread overview]
Message-ID: <20250226112552.52494-1-kikuchan98@gmail.com> (raw)
This is a Generic MIPI-DSI / DPI(+SPI) dual stack panel driver.
Although the MIPI specifications define how to communicate with a panel
to display an image, some panels still require a panel-specific
initialization sequence to be sent.
While there are many dedicated drivers for such panels, they are very
similar to each other, except for the configuration parameters, including
the initialization sequence for each panel.
Since there are numerous panels in the wild, adding parameters to
the driver for each panel every time is a pain.
Instead, this driver offers more generic and convenient method.
Its fundamental approach is similar to the `panel-mipi-dbi` driver,
which sends an initialization sequence stored in a firmware file.
Moreover, this driver allows display modes, timings, and panel
configuration parameters to be stored in the same file.
I've also come up with a firmware generator [1].
It helps to create or configure the panel parameters on the web.
As a reference, similar generic drivers currently exist:
* drivers/gpu/drm/panel/panel-simple.c
- Supports wide variety of panels, but no init-sequence support
* drivers/gpu/drm/tiny/panel-mipi-dbi.c
- Supports init-sequence, but only supports DBI panels
* drivers/gpu/drm/panel/panel-dsi-cm.c
- Supports DSI Command Mode, but no init-sequence support
[1]: https://kikuchan.github.io/panel-firmware-generator/
v2:
- Drop redundant properties from the DT binding
- Fix the compatible property and examples in the DT binding
- Drop support for the redundant DT properties from the driver
- Fix minor issue in the driver
- Add panels to the DT binding
Regards,
kikuchan.
Hironori KIKUCHI (3):
dt-bindings: vendor-prefixes: Add hothmi vendor prefix
dt-bindings: display: panel: Add some generic MIPI-DSI/DPI panels
drm: panel: Add a driver for Generic MIPI-DSI/DPI(+SPI) panels
.../bindings/display/panel/panel-mipi.yaml | 121 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/gpu/drm/panel/Kconfig | 10 +
drivers/gpu/drm/panel/Makefile | 1 +
drivers/gpu/drm/panel/panel-mipi.c | 1181 +++++++++++++++++
5 files changed, 1315 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/panel-mipi.yaml
create mode 100644 drivers/gpu/drm/panel/panel-mipi.c
--
2.48.1
next reply other threads:[~2025-02-26 11:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 11:25 Hironori KIKUCHI [this message]
2025-02-26 11:25 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add hothmi vendor prefix Hironori KIKUCHI
2025-03-03 13:06 ` Rob Herring (Arm)
2025-02-26 11:25 ` [PATCH v2 2/3] dt-bindings: display: panel: Add some generic MIPI-DSI/DPI panels Hironori KIKUCHI
2025-03-03 13:12 ` Rob Herring
2025-02-26 11:25 ` [PATCH v2 3/3] drm: panel: Add a driver for Generic MIPI-DSI/DPI(+SPI) panels Hironori KIKUCHI
2025-03-03 9:26 ` Krzysztof Kozlowski
2025-03-06 7:53 ` kernel test robot
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=20250226112552.52494-1-kikuchan98@gmail.com \
--to=kikuchan98@gmail.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_jesszhan@quicinc.com \
--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 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®