From: Jagan Teki <jagan@amarulasolutions.com>
To: Dave Stevenson <dave.stevenson@raspberrypi.com>,
Maxime Ripard <mripard@kernel.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Sam Ravnborg <sam@ravnborg.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, Marek Vasut <marex@denx.de>,
linux-amarula <linux-amarula@amarulasolutions.com>,
Jagan Teki <jagan@amarulasolutions.com>
Subject: [PATCH v7 00/12] drm: sun4i: Convert Allwinner DSI to bridge
Date: Wed, 29 Mar 2023 18:46:06 +0530 [thread overview]
Message-ID: <20230329131615.1328366-1-jagan@amarulasolutions.com> (raw)
This is v7 revision of converting Allwinner DSI to brige driver.
Patch 1 and 2 implements drmm_of_dsi_get_bridge which is required to
lookup the DSI sink device represented either child or OF-graph port or
ports node. This is essential as not to break the existing bindings
which indeed uses child node represention for DSI sink devices.
Patch 3 to 7 enables the prepare_prev_first flag for essential panels
which effects sun6i-mipi-dsi host init order sequencing.
Patch 8 and 9 added endpoint 0 to dsi_in_tcon0 of A33 and A64 which is
required for I2C-Configured bridges to represent.
Patch 10 and 11 implements enable_next_first flag, which is essential
If the DSI host enables with the @enable_next_first flag then the
@enable for the DSI sink will be called first before the @enable of
the DSI host. This alter bridge init order makes sure that the MIPI-DCS
commands send first and then switch to the HS mode properly by DSI host.
Patch 12 is final patch bridge conversion.
Series has been tested in DSI Panel, DSI Bridge and I2C-Configured DSI
Bridge.
v6:
https://lore.kernel.org/all/20211210111711.2072660-1-jagan@amarulasolutions.com/
v5:
https://lore.kernel.org/all/20211122065223.88059-4-jagan@amarulasolutions.com/
Any inputs?
Jagan.
Jagan Teki (12):
drm: of: Lookup if child node has DSI panel or bridge
drm: bridge: panel: Implement drmm_of_dsi_get_bridge helper
drm: panel: feiyang-fy07024di26a30d: Enable prepare_prev_first flag
drm: panel: sitronix-st7701: Enable prepare_prev_first for ts8550b
drm: panel: sitronix-st7703: Enable prepare_prev_first for xbd599
drm: panel: feixin-k101-im2ba02: Enable prepare_prev_first flag
drm: panel: ilitek-ili9881c: Enable prepare_prev_first for k101_im2byl02
ARM: dts: sun8i: a33: Add endpoint@0 to dsi_in_tcon0
arm64: dts: rockchip: a64: Add endpoint@0 to dsi_in_tcon0
drm/bridge: Implement enable_next_first to alter bridge init order
drm/bridge: Document bridge init order with enable_next_first
drm: sun4: dsi: Convert to bridge driver
arch/arm/boot/dts/sun8i-a33.dtsi | 6 +-
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 6 +-
drivers/gpu/drm/bridge/panel.c | 34 ++++
drivers/gpu/drm/drm_bridge.c | 186 +++++++++++++++---
drivers/gpu/drm/drm_of.c | 112 +++++++++--
.../gpu/drm/panel/panel-feixin-k101-im2ba02.c | 1 +
.../drm/panel/panel-feiyang-fy07024di26a30d.c | 1 +
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +
drivers/gpu/drm/panel/panel-sitronix-st7701.c | 3 +
drivers/gpu/drm/panel/panel-sitronix-st7703.c | 3 +
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 143 ++++++--------
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 10 +-
include/drm/drm_bridge.h | 18 ++
include/drm/drm_of.h | 12 ++
14 files changed, 399 insertions(+), 139 deletions(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2023-03-29 13:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 13:16 Jagan Teki [this message]
2023-03-29 13:16 ` [PATCH v7 01/12] drm: of: Lookup if child node has DSI panel or bridge Jagan Teki
2023-03-29 13:16 ` [PATCH v7 02/12] drm: bridge: panel: Implement drmm_of_dsi_get_bridge helper Jagan Teki
2023-03-29 15:03 ` Maxime Ripard
2023-03-29 15:26 ` Jagan Teki
2023-03-29 16:08 ` Maxime Ripard
2023-03-29 13:16 ` [PATCH v7 03/12] drm: panel: feiyang-fy07024di26a30d: Enable prepare_prev_first flag Jagan Teki
2023-03-29 13:16 ` [PATCH v7 04/12] drm: panel: sitronix-st7701: Enable prepare_prev_first for ts8550b Jagan Teki
2023-03-29 13:16 ` [PATCH v7 05/12] drm: panel: sitronix-st7703: Enable prepare_prev_first for xbd599 Jagan Teki
2023-03-29 13:16 ` [PATCH v7 06/12] drm: panel: feixin-k101-im2ba02: Enable prepare_prev_first flag Jagan Teki
2023-03-29 13:16 ` [PATCH v7 07/12] drm: panel: ilitek-ili9881c: Enable prepare_prev_first for k101_im2byl02 Jagan Teki
2023-03-29 13:16 ` [PATCH v7 08/12] ARM: dts: sun8i: a33: Add endpoint@0 to dsi_in_tcon0 Jagan Teki
2023-03-29 13:16 ` [PATCH v7 09/12] arm64: dts: rockchip: a64: " Jagan Teki
2023-03-29 15:02 ` Maxime Ripard
2023-03-29 15:30 ` Jagan Teki
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=20230329131615.1328366-1-jagan@amarulasolutions.com \
--to=jagan@amarulasolutions.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=daniel@ffwll.ch \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-amarula@amarulasolutions.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marex@denx.de \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=samuel@sholland.org \
--cc=tzimmermann@suse.de \
--cc=wens@csie.org \
/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