From: Sam Ravnborg <sam@ravnborg.org>
To: dri-devel@lists.freedesktop.org,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Neil Armstrong <narmstrong@baylibre.com>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>,
Martyn Welch <martyn.welch@collabora.co.uk>,
Jonas Karlman <jonas@kwiboo.se>,
Peter Senna Tschudin <peter.senna@gmail.com>,
Andrzej Hajda <a.hajda@samsung.com>,
Thierry Reding <thierry.reding@gmail.com>,
Sam Ravnborg <sam@ravnborg.org>,
Martin Donnelly <martin.donnelly@ge.com>
Subject: [PATCH v2 0/21] drm/bridge: support drm bridge connector helper + panel updates
Date: Mon, 27 Apr 2020 10:18:29 +0200 [thread overview]
Message-ID: <20200427081850.17512-1-sam@ravnborg.org> (raw)
Somehow Laurent tricked me into updating a bridge driver.
In reality, having updated a driver yourself makes for much
better understanding of what is going on.
So in order to provide proper review feedback I deciced to give
it a spin.
Second iteration of this patchset covers several drivers,
and a few panel adjustments.
The general approach for the bridge drivers:
- Introduce drm_panel_brigde
- Introduce bridge operations
- Make connector creation optional
v2:
- Updated bus_flags for boe,hv070wsa-100
- Collected r-b, but did not apply patches yet
- On the panel side the panel-simple driver gained a default
connector type for all the dumb panels that do not
include so in their description.
With this change panels always provide a connector type,
and we have the potential to drop most uses of
devm_drm_panel_bridge_add_typed().
- Added conversion of a few more bridge drivers
When bridge drivers no longer create their own connector, the
update of the connector state using drm_helper_hpd_irq_event()
is also left out.
I did not manage to convince myself if this is correct or not.
We somehow needs to trigger that the connector state is updated
but that should not be the repsonsibility of a bridge driver.
Patches can build but no run-time testing.
So both test and review feedback appreciated!
My notes on the status so far - for the bridge drives:
bridge/analogix/analogix-anx6345 todo
bridge/analogix/analogix-anx78xx todo
bridge/analogix/analogix_dp_core todo
bridge/sii902x todo ? how to deal with outputmode?
i2c/tda998x_drv.c todo Needs drm_connector in helper fuctions. In several places.
mediatek/mtk_hdmi.c todo Ask: Enric Balletbo i Serra <enric.balletbo@collabora.com> to do it?
omapdrm/dss/dpi.c todo, Laurent?
omapdrm/dss/hdmi4.c todo, Laurent?
omapdrm/dss/hdmi5.c todo, Laurent?
omapdrm/dss/sdi.c todo, Laurent?
omapdrm/dss/venc.c todo, Laurent?
bridge/nwl-dsi todo, Guido
bridge/adv7511 ongoing, Laurent
bridge/simple-bridge ongoing, Laurent
bridge/synopsys/dw-hdmi ongoing, Laurent
rcar-du/rcar_lvds.c ongoing, Laurent
bridge/megachips-stdpxxxx-ge-b850v3-fw ongoing, Sam
bridge/nxp-ptn3460 ongoing, Sam
bridge/parade-ps8622 ongoing, Sam
bridge/tc358764 ongoing, Sam
bridge/tc358767 ongoing, Sam
bridge/ti-sn65dsi86 ongoing, Sam. How to get bpc without connector?
bridge/ti-tpd12s015 ongoing, Sam
bridge/display-connector.c done
bridge/lvds-codec done
bridge/cdns-dsi done
bridge/panel.c done
bridge/parade-ps8640 done
bridge/sil-sii8620 done
bridge/synopsys/dw-mipi-dsi done
bridge/tc358768 done
bridge/thc63lvd1024 done
bridge/ti-tfp410 done
Sam
Sam Ravnborg (21):
drm/panel: add connector type to boe,hv070wsa-100 panel
drm/panel: panel-simple: add default connector_type
drm/bridge: tc358764: drop drm_connector_(un)register
drm/bridge: tc358764: add drm_panel_bridge support
drm/bridge: tc358764: make connector creation optional
drm/bridge: tc358767: add drm_panel_bridge support
drm/bridge: tc358767: add detect bridge operation
drm/bridge: tc358767: add get_edid bride operation
drm/bridge: tc358767: make connector creation optional
drm/bridge: ti-tpd12s015: make connector creation optional
drm/bridge: parade-ps8622: add drm_panel_bridge support
drm/bridge: parade-ps8622: make connector creation optional
drm/bridge: megachips: add helper to create connector
drm/bridge: megachips: get drm_device from bridge
drm/bridge: megachips: enable detect bridge operation
drm/bridge: megachips: add get_edid bridge operation
drm/bridge: megachips: make connector creation optional
drm/bridge: nxp-ptn3460: add drm_panel_bridge support
drm/bridge: nxp-ptn3460: add get_modes bridge operation
drm/bridge: nxp-ptn3460: make connector creation optional
drm/bridge: ti-sn65dsi86: add drm_panel_bridge support
.../drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 92 +++++++++++-------
drivers/gpu/drm/bridge/nxp-ptn3460.c | 107 +++++++++------------
drivers/gpu/drm/bridge/parade-ps8622.c | 55 ++++-------
drivers/gpu/drm/bridge/tc358764.c | 68 ++++---------
drivers/gpu/drm/bridge/tc358767.c | 98 +++++++++++--------
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 27 +++---
drivers/gpu/drm/bridge/ti-tpd12s015.c | 3 -
drivers/gpu/drm/panel/panel-simple.c | 13 ++-
8 files changed, 219 insertions(+), 244 deletions(-)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2020-04-27 8:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 8:18 Sam Ravnborg [this message]
2020-04-27 8:18 ` [PATCH v2 01/21] drm/panel: add connector type to boe, hv070wsa-100 panel Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 02/21] drm/panel: panel-simple: add default connector_type Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 03/21] drm/bridge: tc358764: drop drm_connector_(un)register Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 04/21] drm/bridge: tc358764: add drm_panel_bridge support Sam Ravnborg
2020-04-29 3:08 ` kbuild test robot
2020-04-29 3:08 ` kbuild test robot
2020-04-29 3:08 ` [PATCH] drm/bridge: tc358764: fix ptr_ret.cocci warnings kbuild test robot
2020-04-29 3:08 ` kbuild test robot
2020-04-27 8:18 ` [PATCH v2 05/21] drm/bridge: tc358764: make connector creation optional Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 06/21] drm/bridge: tc358767: add drm_panel_bridge support Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 07/21] drm/bridge: tc358767: add detect bridge operation Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 08/21] drm/bridge: tc358767: add get_edid bride operation Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 09/21] drm/bridge: tc358767: make connector creation optional Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 10/21] drm/bridge: ti-tpd12s015: " Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 11/21] drm/bridge: parade-ps8622: add drm_panel_bridge support Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 12/21] drm/bridge: parade-ps8622: make connector creation optional Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 13/21] drm/bridge: megachips: add helper to create connector Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 14/21] drm/bridge: megachips: get drm_device from bridge Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 15/21] drm/bridge: megachips: enable detect bridge operation Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 16/21] drm/bridge: megachips: add get_edid " Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 17/21] drm/bridge: megachips: make connector creation optional Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 18/21] drm/bridge: nxp-ptn3460: add drm_panel_bridge support Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 19/21] drm/bridge: nxp-ptn3460: add get_modes bridge operation Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 20/21] drm/bridge: nxp-ptn3460: make connector creation optional Sam Ravnborg
2020-04-27 8:18 ` [PATCH v2 21/21] drm/bridge: ti-sn65dsi86: add drm_panel_bridge support Sam Ravnborg
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=20200427081850.17512-1-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@siol.net \
--cc=jonas@kwiboo.se \
--cc=martin.donnelly@ge.com \
--cc=martyn.welch@collabora.co.uk \
--cc=narmstrong@baylibre.com \
--cc=peter.senna@gmail.com \
--cc=thierry.reding@gmail.com \
/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.