Re: [PATCH v3 2/4] drm: rcar-du: lvds: Convert to DRM panel bridge helper

2021-08-21 Thread Laurent Pinchart
Hi Geert, On Tue, Aug 10, 2021 at 05:51:57PM +0200, Geert Uytterhoeven wrote: > On Tue, Aug 10, 2021 at 5:47 PM Geert Uytterhoeven wrote: > > On Thu, May 20, 2021 at 8:51 AM Laurent Pinchart wrote: > > > Replace the manual panel handling with usage of the DRM panel bridge

[PATCH] drm: rcar-du: Don't create encoder for unconnected LVDS outputs

2021-08-21 Thread Laurent Pinchart
without a connector. Fixes: e9e056949c92 ("drm: rcar-du: lvds: Convert to DRM panel bridge helper") Reported-by: Geert Uytterhoeven Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 16 drivers/gpu/drm/rcar-du/rcar_lvds.c | 11

[PATCH] drm: rcar-du: Improve kernel log messages when initializing encoders

2021-08-21 Thread Laurent Pinchart
as it's not specific to the CRTC. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.h| 11 --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 18 ++ drivers/gpu/drm/rcar-du/rcar_du_drv.h | 13 + drivers/gpu/drm/rc

Re: [PATCH] drm: adv7511: Convert to SPDX identifier

2021-08-22 Thread Laurent Pinchart
Hi Cai, Thank you for the patch. On Sun, Aug 22, 2021 at 03:21:11PM +0800, Cai Huoqing wrote: > use SPDX-License-Identifier instead of a verbose license text > > Signed-off-by: Cai Huoqing Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/bridge/adv7511/adv

Re: [PATCH] drm: rcar-du: Don't create encoder for unconnected LVDS outputs

2021-08-23 Thread Laurent Pinchart
Hi Geert, On Mon, Aug 23, 2021 at 02:25:32PM +0200, Geert Uytterhoeven wrote: > On Sun, Aug 22, 2021 at 2:36 AM Laurent Pinchart wrote: > > On R-Car D3 and E3, the LVDS encoders provide the pixel clock to the DU, > > even when LVDS outputs are not used. For this reason, the rcar-

Re: [PATCH 1/3] drm/bridge: ti-sn65dsi86: Simplify refclk handling

2021-03-13 Thread Laurent Pinchart
are(). This seemed OK to me. We already have to > check for NULL in the enable case anyway so why not avoid the extra > call? > > Signed-off-by: Douglas Anderson Reviewed-by: Laurent Pinchart > --- > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 11 +++ > 1 file cha

Re: [PATCH 2/3] drm/bridge: ti-sn65dsi86: Move code in prep for EDID read fix

2021-03-13 Thread Laurent Pinchart
tand. s/make/makes/ > > Signed-off-by: Douglas Anderson Reviewed-by: Laurent Pinchart > --- > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 196 +- > 1 file changed, 98 insertions(+), 98 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c

Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: Properly get the EDID, but only if refclk

2021-03-13 Thread Laurent Pinchart
->edid = NULL; > +} > + > static void ti_sn_bridge_disable(struct drm_bridge *bridge) > { > struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); > @@ -863,6 +937,7 @@ static void ti_sn_bridge_enable(struct drm_bridge *bridge) > > static const

Re: [PATCH] drm/omap: dsi: fix unsigned expression compared with zero

2021-03-13 Thread Laurent Pinchart
nings: > ./drivers/gpu/drm/omapdrm/dss/dsi.c:2155:5-6: > WARNING: Unsigned expression compared with zero: r < 0 > > Signed-off-by: Junlin Yang Reviewed-by: Laurent Pinchart Tomi, will you take this in your tree ? > --- > drivers/gpu/drm/omapdrm/dss/dsi.c | 7 --- >

Re: [PATCH 2/3] drm/bridge: ti-sn65dsi86: Move code in prep for EDID read fix

2021-03-15 Thread Laurent Pinchart
Hi Doug, On Mon, Mar 15, 2021 at 09:31:41AM -0700, Doug Anderson wrote: > On Sat, Mar 13, 2021 at 1:13 PM Laurent Pinchart wrote: > > On Thu, Mar 04, 2021 at 03:52:00PM -0800, Douglas Anderson wrote: > > > This patch is _only_ code motion to prepare for the patch > > >

[GIT FIXES FOR v5.12] R-Car DU fix

2021-03-15 Thread Laurent Pinchart
): drm: rcar-du: Use drmm_encoder_alloc() to manage encoder drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel

Re: [PATCH] drm: xlnx: call pm_runtime_get_sync before setting pixel clock

2021-03-16 Thread Laurent Pinchart
ware though, which shouldn't clear the previous VPLLF_FRAC_CFG ? > Signed-off-by: Quanyang Wang Nonetheless, this change looks good to me, I actually had the same patch in my tree while investigation issues related to the clock rate, so Reviewed-by: Laurent Pinchart Tested-by: Laurent

Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: Properly get the EDID, but only if refclk

2021-03-16 Thread Laurent Pinchart
Hi Doug, On Mon, Mar 15, 2021 at 09:25:37AM -0700, Doug Anderson wrote: > On Sat, Mar 13, 2021 at 1:17 PM Laurent Pinchart wrote: > > On Thu, Mar 04, 2021 at 03:52:01PM -0800, Douglas Anderson wrote: > > > In commit 58074b08c04a ("drm/bridge: ti-sn65dsi86: Read EDID b

Re: [PATCH v3 3/4] drm/bridge: ti-sn65dsi86: Read EDID blob over DDC

2021-03-17 Thread Laurent Pinchart
gt; Reviewed-by: Laurent Pinchart > Cc: Jonas Karlman > Cc: Jernej Skrabec > Cc: Sean Paul > Acked-by: Sam Ravnborg > Signed-off-by: Stephen Boyd > --- > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 20 > 1 file changed, 20 insertions(+) > > diff --git

Re: [PATCH v4 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for HDCP

2021-03-18 Thread Laurent Pinchart
From schema: Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml This is caused by the fact that reg-names is correctly limited to two elements, but then expects the second element to be "j721e-intg". The example is good, so it's the bindings that need to be fixed. > clocks = <&mhdp_clock>; > phys = <&dp_phy>; > phy-names = "dpphy"; -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm: xlnx: Update dependencies for ZynqMP DP

2021-03-18 Thread Laurent Pinchart
From: Dylan Yip ZynqMP DP requires the ZynqMP PHY and DPDMA to operate properly. So depend on both the PHY and DPDMA. Signed-off-by: Dylan Yip Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/xlnx/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/xlnx/Kconfig b

Re: [PATCH] drm/rockchip: Remove unused variable

2021-03-19 Thread Laurent Pinchart
get_new_plane_state(state, > > plane); > struct drm_crtc *crtc = new_state->crtc; -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm: xlnx: zynqmp: release reset to DP controller before accessing DP registers

2021-03-20 Thread Laurent Pinchart
;t we call zynqmp_dp_reset(dp, true) here ? Or rather, call it in the error path at the end of the function, with a goto label. For symmetry, should we also move the zynqmp_dp_reset() call from zynqmp_dp_phy_exit() to zynqmp_dp_remove() ? -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v6 1/5] dt-bindings:drm/bridge:anx7625:add vendor define flags

2021-03-21 Thread Laurent Pinchart
ports { > #address-cells = <1>; > #size-cells = <0>; > @@ -81,6 +135,8 @@ examples: > reg = <0>; > anx7625_in: endpoint { > remote-endpoint = <&mipi_dsi>; > +bus-type = <5>; > +data-lanes = <0 1 2 3>; > }; > }; > -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH V2] drm/bridge: lvds-codec: Add support for pixel data sampling edge select

2021-03-21 Thread Laurent Pinchart
ot;pixelclk-active", > same as the one used by display timings, and configure bus flags based on > this DT property. > > Signed-off-by: Marek Vasut > Cc: Alexandre Torgue > Cc: Andrzej Hajda > Cc: Antonio Borneo > Cc: Benjamin Gaignard > Cc: Biju Das > Cc:

[RFC PATCH 00/11] drm/bridge: ti-sn65dsi86: Support DisplayPort mode

2021-03-21 Thread Laurent Pinchart
d however like to receive feedback on the approach already, in case problems would need to be solved. Laurent Pinchart (11): dt-bindings: drm/bridge: ti-sn65dsi8: Make enable GPIO optional drm/bridge: ti-sn65dsi86: Make enable GPIO optional drm/bridge: ti-sn65dsi86: Unregister AUX adapter in

[RFC PATCH 01/11] dt-bindings: drm/bridge: ti-sn65dsi8: Make enable GPIO optional

2021-03-21 Thread Laurent Pinchart
The SN65DSI86 EN pin can be hardwired to a high level, or connected to a global reset signal, not controllable by the kernel. Make it optional in those cases. Signed-off-by: Laurent Pinchart --- .../devicetree/bindings/display/bridge/ti,sn65dsi86.yaml | 1 - 1 file changed, 1 deletion

[RFC PATCH 02/11] drm/bridge: ti-sn65dsi86: Make enable GPIO optional

2021-03-21 Thread Laurent Pinchart
The enable signal may not be controllable by the kernel. Make it optional. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti

[RFC PATCH 04/11] drm/bridge: ti-sn65dsi86: Use bitmask to store valid rates

2021-03-21 Thread Laurent Pinchart
The valid rates are stored in an array of 8 booleans. Replace it with a bitmask to save space. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti

[RFC PATCH 03/11] drm/bridge: ti-sn65dsi86: Unregister AUX adapter in remove()

2021-03-21 Thread Laurent Pinchart
The AUX adapter registered in probe() need to be unregistered in remove(). Do so. Fixes: b814ec6d4535 ("drm/bridge: ti-sn65dsi86: Implement AUX channel") Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/d

[RFC PATCH 11/11] drm/bridge: ti-sn65dsi86: Support hotplug detection

2021-03-21 Thread Laurent Pinchart
legacy and new users should use DRM_BRIDGE_ATTACH_NO_CONNECTOR. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 46 +++ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti

[RFC PATCH 10/11] drm/bridge: ti-sn65dsi86: Support DisplayPort (non-eDP) mode

2021-03-21 Thread Laurent Pinchart
Despite the SN65DSI86 being an eDP bridge, on some systems its output is routed to a DisplayPort connector. Enable DisplayPort mode when the next component in the display pipeline is not a panel, and disable eDP features in that case. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge

[RFC PATCH 07/11] drm/bridge: ti-sn65dsi86: Split connector creation to a function

2021-03-21 Thread Laurent Pinchart
To prepare for making connector creation option, move connector creation out of ti_sn_bridge_attach to a separate function. No functional change intended. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 31 ++- 1 file changed, 21 insertions

[RFC PATCH 06/11] drm/bridge: ti-sn65dsi86: Group code in sections

2021-03-21 Thread Laurent Pinchart
onal change intended. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 75 +-- 1 file changed, 47 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index c21a7f7d

[RFC PATCH 08/11] drm/bridge: ti-sn65dsi86: Implement bridge connector operations

2021-03-21 Thread Laurent Pinchart
Implement the bridge connector-related .get_edid() operation, and report the related bridge capabilities and type. The .get_edid() operation is implemented with the same backend as the EDID retrieval from the connector .get_modes() operation. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm

[RFC PATCH 05/11] drm/bridge: ti-sn65dsi86: Wrap panel with panel-bridge

2021-03-21 Thread Laurent Pinchart
: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 30 +++ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index 1d1be791d5ba..c21a7f7d452b 100644 --- a/drivers/gpu/drm

[RFC PATCH 09/11] drm/bridge: ti-sn65dsi86: Make connector creation optional

2021-03-21 Thread Laurent Pinchart
Now that the driver supports the connector-related bridge operations, make the connector creation optional. This enables usage of the sn65dsi86 with the DRM bridge connector helper. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 11 --- 1 file changed, 4

[GIT PULL FOR v5.13] Conversion of misc display DT bindings to YAML

2021-03-21 Thread Laurent Pinchart
display DT bindings to YAML -------- Laurent Pinchart (7): dt-bindings: display: renesas,du: Convert binding to YAML dt-bindings: display: bridge: Add YAML schema for Synopsys DW-HDMI dt-bindings: display: bridge: renesas,dw-hdm

Re: [PATCH V2] drm/bridge: lvds-codec: Add support for pixel data sampling edge select

2021-03-22 Thread Laurent Pinchart
Hi Marek, (CC'ing Ron and the DT mailing list for the DT discussion) On Mon, Mar 22, 2021 at 11:29:04AM +0100, Marek Vasut wrote: > On 3/22/21 2:14 AM, Laurent Pinchart wrote: > > Hi Marek, > > Hi, > > [...] > > >> diff --git > >> a/Docume

Re: [PATCH v2 0/4] drm/bridge: ti-sn65dsi86: Support EDID reading

2021-03-22 Thread Laurent Pinchart
) doesn't implement those operations, and neither does display-connector.c, so that may be what we should start with. > I see that td_mode_valid() in > drivers/gpu/drm/bridge/tc358775.c stores away the bpc from the incoming > drm_display_info pointer but I'm not sure that is correct because can't > that be called for various and not necessarily the one we're using? You're right, .mode_valid() shouldn't do that. -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm: rcar-du: Shutdown the display on system shutdown

2021-03-22 Thread Laurent Pinchart
.remove = rcar_du_remove, + .shutdown = rcar_du_shutdown, .driver = { .name = "rcar-du", .pm = &rcar_du_pm_ops, -- Regards, Laurent Pinchart ___ dri-devel m

[PATCH 1/2] drm: rcar-du: Don't put reference to drm_device in rcar_du_remove()

2021-03-22 Thread Laurent Pinchart
ned-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index 43de3d8686e8..2a06ec1cbefb 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/d

[PATCH 2/2] drm: rcar-du: Shutdown the display on remove

2021-03-22 Thread Laurent Pinchart
When the device is unbound from the driver (the DU being a platform device, this occurs either when removing the DU module, or when unbinding the device manually through sysfs), the display may be active. Make sure it gets shut down. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du

Re: [PATCH v3 3/4] drm/bridge: ti-sn65dsi86: Read EDID blob over DDC

2021-03-23 Thread Laurent Pinchart
Hi Doug, On Tue, Mar 23, 2021 at 12:07:27PM -0700, Doug Anderson wrote: > On Mon, Mar 22, 2021 at 8:17 PM Stephen Boyd wrote: > > > > Quoting Laurent Pinchart (2021-03-17 17:20:43) > > > Hi Stephen, > > > > > > Reviving a bit of an old thread, for a que

Re: [RFC PATCH 03/11] drm/bridge: ti-sn65dsi86: Unregister AUX adapter in remove()

2021-03-23 Thread Laurent Pinchart
Hi Doug, On Tue, Mar 23, 2021 at 02:08:42PM -0700, Doug Anderson wrote: > On Sun, Mar 21, 2021 at 8:02 PM Laurent Pinchart wrote: > > > > The AUX adapter registered in probe() need to be unregistered in > > remove(). Do so. > > > > Fixes: b814ec6d4535 ("d

Re: [RFC PATCH 04/11] drm/bridge: ti-sn65dsi86: Use bitmask to store valid rates

2021-03-23 Thread Laurent Pinchart
Hi Doug, On Tue, Mar 23, 2021 at 02:08:55PM -0700, Doug Anderson wrote: > On Sun, Mar 21, 2021 at 8:02 PM Laurent Pinchart wrote: > > > > The valid rates are stored in an array of 8 booleans. Replace it with a > > bitmask to save space. > > I'm curious: do

Re: [RFC PATCH 05/11] drm/bridge: ti-sn65dsi86: Wrap panel with panel-bridge

2021-03-23 Thread Laurent Pinchart
Hi Stephen, On Tue, Mar 23, 2021 at 12:14:04AM -0700, Stephen Boyd wrote: > Quoting Laurent Pinchart (2021-03-21 20:01:22) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > > b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > > index 1d1be791d5ba..c21a7f7d452b 100644 >

Re: [PATCH v4 1/4] drm: sun4i: dsi: Use drm_of_find_panel_or_bridge

2021-03-23 Thread Laurent Pinchart
me will replace with bridge > parameter once bridge supported. > > Signed-off-by: Jagan Teki Looks good, there should be no functional change. Reviewed-by: Laurent Pinchart > --- > Changes for v4, v3: > - none > > drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 11 --

Re: [RFC PATCH 03/11] drm/bridge: ti-sn65dsi86: Unregister AUX adapter in remove()

2021-03-23 Thread Laurent Pinchart
Hi Doug, On Tue, Mar 23, 2021 at 03:55:05PM -0700, Doug Anderson wrote: > On Tue, Mar 23, 2021 at 2:42 PM Laurent Pinchart wrote: > > On Tue, Mar 23, 2021 at 02:08:42PM -0700, Doug Anderson wrote: > > > On Sun, Mar 21, 2021 at 8:02 PM Laurent Pinchart wrote: > > >

Re: [PATCH v4 2/4] drm: sun4i: dsi: Add bridge support

2021-03-23 Thread Laurent Pinchart
t; - dsi->drm = NULL; > + drm_encoder_cleanup(&dsi->encoder); > } > > static const struct component_ops sun6i_dsi_ops = { > diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > index c863900ae3b4..370ecb356a63 100644 > --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > @@ -29,8 +29,8 @@ struct sun6i_dsi { > > struct device *dev; > struct mipi_dsi_device *device; > - struct drm_device *drm; > struct drm_panel*panel; > + struct drm_bridge *panel_bridge; > }; > > static inline struct sun6i_dsi *host_to_sun6i_dsi(struct mipi_dsi_host *host) -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v4 3/4] drm: sun4i: dsi: Convert to bridge driver

2021-03-23 Thread Laurent Pinchart
te_exclusive_put(dsi->mod_clk); > diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > index 370ecb356a63..5e70666089ad 100644 > --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h > @@ -16,6 +16,7 @@ > #defin

Re: [PATCH v2 1/3] drm: bridge/panel: Cleanup connector on bridge detach

2021-03-23 Thread Laurent Pinchart
tever shortcut addresses immediate issues is probably fine, as yak-shaving in this area would definitely not be reasonable. > > >> v2: Cleanup connector only if it was created > > >> > > >> Fixes: 13dfc0540a57 ("drm/bridge: Refactor out the panel wrapper fro

Re: [PATCH v3 1/4] drm: bridge/panel: Cleanup connector on bridge detach

2021-03-23 Thread Laurent Pinchart
r only if it was created > > v3: Add FIXME > > Fixes: 13dfc0540a57 ("drm/bridge: Refactor out the panel wrapper from the > lvds-encoder bridge.") > Cc: # 4.12+ > Cc: Andrzej Hajda > Cc: Neil Armstrong > Cc: Laurent Pinchart > Cc: Jonas Karlman > C

Re: [PATCH v3 2/4] drm/simple_kms_helper: Add macro drmm_plain_simple_encoder_alloc()

2021-03-23 Thread Laurent Pinchart
n't need the simple KMS helper won't have to select it just for this. > #endif /* __LINUX_DRM_SIMPLE_KMS_HELPER_H */ -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 3/4] drm/ingenic: Register devm action to cleanup encoders

2021-03-23 Thread Laurent Pinchart
gt; Signed-off-by: Paul Cercueil Reviewed-by: Laurent Pinchart > --- > > Notes: > Use the V1 of this patch to fix v5.11 and older kernels. This V3 only > applies on the current drm-misc-next branch. > > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 15 ++-

Re: [PATCH v3 4/4] drm/ingenic: Fix non-OSD mode

2021-03-23 Thread Laurent Pinchart
ic: Add support for OSD mode") > Cc: # v5.8+ > Signed-off-by: Paul Cercueil > Acked-by: Daniel Vetter I don't have much knowledge about this platform, but the change looks reasonable to me. Acked-by: Laurent Pinchart > --- > drivers/gpu/drm/ingenic/ingenic-drm-

Re: [PATCH v3 0/4] Fixes to bridge/panel and ingenic-drm

2021-03-23 Thread Laurent Pinchart
lain_simple_encoder_alloc() > >> drm/ingenic: Register devm action to cleanup encoders > >> drm/ingenic: Fix non-OSD mode > >> > >> drivers/gpu/drm/bridge/panel.c| 12 +++ > >> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 26 ++

Re: [V2][PATCH] drm: xlnx: zynqmp: release reset to DP controller before accessing DP registers

2021-03-23 Thread Laurent Pinchart
before any read/write operation to it > will fix this issue. And for symmetry, move zynqmp_dp_reset() call from > zynqmp_dp_phy_exit() to zynqmp_dp_remove(). > > Signed-off-by: Quanyang Wang Reviewed-by: Laurent Pinchart > --- > > V2: > According to Laur

Re: [PATCH v4 1/4] drm: sun4i: dsi: Use drm_of_find_panel_or_bridge

2021-03-24 Thread Laurent Pinchart
Hi Jagan, On Wed, Mar 24, 2021 at 02:44:57PM +0530, Jagan Teki wrote: > On Wed, Mar 24, 2021 at 8:18 AM Samuel Holland wrote: > > On 3/23/21 5:53 PM, Laurent Pinchart wrote: > > > On Mon, Mar 22, 2021 at 07:31:49PM +0530, Jagan Teki wrote: > > >>

Re: [PATCH v2 1/3] drm: bridge/panel: Cleanup connector on bridge detach

2021-03-24 Thread Laurent Pinchart
On Wed, Mar 24, 2021 at 10:39:52AM +0100, Daniel Vetter wrote: > On Wed, Mar 24, 2021 at 04:15:37AM +0200, Laurent Pinchart wrote: > > On Wed, Jan 20, 2021 at 06:38:03PM +0100, Daniel Vetter wrote: > > > On Wed, Jan 20, 2021 at 6:12 PM Paul Cercueil wrote: > > > >

Re: [PATCH v4 1/4] drm: sun4i: dsi: Use drm_of_find_panel_or_bridge

2021-03-24 Thread Laurent Pinchart
Hi Jagan, On Wed, Mar 24, 2021 at 03:19:10PM +0530, Jagan Teki wrote: > On Wed, Mar 24, 2021 at 3:09 PM Laurent Pinchart wrote: > > On Wed, Mar 24, 2021 at 02:44:57PM +0530, Jagan Teki wrote: > > > On Wed, Mar 24, 2021 at 8:18 AM Samuel Holland wrote: > > > > On 3/2

Re: [PATCH v1] MAINTAINERS: Update Maintainers of DRM Bridge Drivers

2021-03-24 Thread Laurent Pinchart
Hi Rob, On Wed, Mar 24, 2021 at 11:20:19AM +0100, Robert Foss wrote: > Add myself as co-maintainer of DRM Bridge Drivers. Repository > commit access has already been granted. > > https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/338 > > Cc: Neil Armstrong >

Re: [PATCH] drivers: gpu: drm: Remove duplicate declaration

2021-03-25 Thread Laurent Pinchart
uct dss_device; > struct omap_drm_private; > struct omap_dss_device; > struct dispc_device; > -struct dss_device; > struct dss_lcd_mgr_config; > struct snd_aes_iec958; > struct snd_cea_861_aud_if; While at it, could you sort these forward declarations alphabetically, so that

Re: [PATCH] [v2] drivers: gpu: drm: Remove duplicate declaration

2021-03-25 Thread Laurent Pinchart
Hi Wan, Thank you for the patch. On Thu, Mar 25, 2021 at 07:10:24PM +0800, Wan Jiabing wrote: > struct dss_device has been declared. Remove the duplicate. > And sort these forward declarations alphabetically. > > Signed-off-by: Wan Jiabing Reviewed-by: Laurent Pinchart Tomi, I a

Re: [PATCH] drm/bridge: adv7511: fix support for large EDIDs

2021-03-25 Thread Laurent Pinchart
this apart, hopefully more I2C controllers will >* support 64 byte transfers than 256 byte transfers > */ > @@ -579,7 +586,7 @@ static int adv7511_get_edid_block(void *data, u8 *buf, > unsigned int block, > offset += 64; > } > > - adv7511->current_edid_segment = block / 2; > + adv7511->current_edid_segment = cur_segment; > } > > if (block % 2 == 0) -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [RFC PATCH 03/11] drm/bridge: ti-sn65dsi86: Unregister AUX adapter in remove()

2021-03-25 Thread Laurent Pinchart
Hi Doug, On Thu, Mar 25, 2021 at 05:43:22PM -0700, Doug Anderson wrote: > On Tue, Mar 23, 2021 at 4:03 PM Laurent Pinchart wrote: > > On Tue, Mar 23, 2021 at 03:55:05PM -0700, Doug Anderson wrote: > > > On Tue, Mar 23, 2021 at 2:42 PM Laurent Pinchart wrote: > > > >

Re: [RFC PATCH 05/11] drm/bridge: ti-sn65dsi86: Wrap panel with panel-bridge

2021-03-25 Thread Laurent Pinchart
Hi Doug, On Wed, Mar 24, 2021 at 03:44:39PM -0700, Doug Anderson wrote: > On Sun, Mar 21, 2021 at 8:02 PM Laurent Pinchart wrote: > > > > To simplify interfacing with the panel, wrap it in a panel-bridge and > > let the DRM bridge helpers handle chaining of operations. >

Re: [RFC PATCH 08/11] drm/bridge: ti-sn65dsi86: Implement bridge connector operations

2021-03-25 Thread Laurent Pinchart
Hi Doug, On Wed, Mar 24, 2021 at 03:46:28PM -0700, Doug Anderson wrote: > On Sun, Mar 21, 2021 at 8:02 PM Laurent Pinchart wrote: > > > > Implement the bridge connector-related .get_edid() operation, and report > > the related bridge capabilities and type. The .ge

Re: [PATCH] drm/bridge: adv7511: fix support for large EDIDs

2021-03-26 Thread Laurent Pinchart
Hi Hans, On Fri, Mar 26, 2021 at 07:31:09AM +0100, Hans Verkuil wrote: > On 26/03/2021 02:00, Laurent Pinchart wrote: > > On Wed, Mar 24, 2021 at 09:53:32AM +0100, Hans Verkuil wrote: > >> While testing support for large (> 256 bytes) EDIDs on the Renesas > >> Ko

Re: [PATCH v4 2/3] drm/encoder: Add macro drmm_plain_encoder_alloc()

2021-03-27 Thread Laurent Pinchart
gt; . Since it's not "simple" anymore it > will now take funcs/name arguments as well. > > Signed-off-by: Paul Cercueil Reviewed-by: Laurent Pinchart > --- > include/drm/drm_encoder.h | 18 ++ > 1 file changed, 18 insertions(+) > >

Re: [PATCH v2 1/3] drm/mediatek: Switch the hdmi bridge ops to the atomic versions

2021-03-29 Thread Laurent Pinchart
CTOR and then we will > not have direct access to the connector. > The atomic version '.atomic_enable' allows accessing the > current connector from the state. > This patch switches the bridge to the atomic version to > prepare access to the connector in later patches. > >

Re: [PATCH v2 2/3] drm/mediatek: Don't support hdmi connector creation

2021-03-29 Thread Laurent Pinchart
; } > > static const struct drm_bridge_funcs mtk_hdmi_bridge_funcs = { > + .mode_valid = mtk_hdmi_bridge_mode_valid, > .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, > .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, > .atomic_reset = drm

Re: [PATCH v2 3/3] drm/mediatek: in struct mtk_hdmi, replace conn field with curr_conn ptr

2021-03-29 Thread Laurent Pinchart
is already broken... :-) Reviewed-by: Laurent Pinchart But you need to make sure this patch will get backported to stable along 2/3, probably by adding a fixes tag. Or squashing it with 2/3, up to you. > --- > drivers/gpu/drm/mediatek/mtk_hdmi.c | 19 ++- > 1 file changed, 1

Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: Properly get the EDID, but only if refclk

2021-03-29 Thread Laurent Pinchart
Hi Doug, On Mon, Mar 29, 2021 at 07:57:05PM -0700, Doug Anderson wrote: > On Tue, Mar 16, 2021 at 5:44 PM Doug Anderson wrote: > > On Tue, Mar 16, 2021 at 2:46 PM Laurent Pinchart wrote: > > > On Mon, Mar 15, 2021 at 09:25:37AM -0700, Doug Anderson wrote: > > > > O

Re: [PATCH v5 1/2] dt-bindings: usb: add analogix,anx7688.yaml

2021-03-31 Thread Laurent Pinchart
On Tue, Mar 30, 2021 at 05:14:44PM +0200, Enric Balletbo i Serra wrote: > On 30/3/21 15:35, Dafna Hirschfeld wrote: > > On 05.03.21 16:19, Laurent Pinchart wrote: > >> On Fri, Mar 05, 2021 at 04:14:03PM +0100, Dafna Hirschfeld wrote: > >>> On 05.03.21 15:34, Laurent

Re: [PATCH v6 4/5] drm/bridge: anx7625: add HDCP support

2021-04-02 Thread Laurent Pinchart
t? I'll use Connector's ".atomic_check()" > interface to detect Content Protection property change. > (https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2674580) Please note that upstream review happens on mailing lists, not in gerrit. Internal r

Re: [PATCH v3 01/12] drm/bridge: Fix the stop condition of drm_bridge_chain_pre_enable()

2021-04-04 Thread Laurent Pinchart
gt; list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { > if (iter->funcs->pre_enable) > iter->funcs->pre_enable(iter); > + > + if (iter == bridge) > + break; This looks

Re: [PATCH v3 03/12] drm/bridge: ti-sn65dsi86: Remove incorrectly tagged kerneldoc comment

2021-04-04 Thread Laurent Pinchart
Hi Doug, Thank you for the patch. On Fri, Apr 02, 2021 at 03:28:37PM -0700, Douglas Anderson wrote: > A random comment inside a function had "/**" in front of it. That > doesn't make sense. Remove. > > Signed-off-by: Douglas Anderson > Reviewed-by: Andrzej Hajda

Re: [PATCH v3 04/12] drm/bridge: ti-sn65dsi86: Reorder remove()

2021-04-04 Thread Laurent Pinchart
move us closer to > a proper remove. > > Signed-off-by: Douglas Anderson > Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart > --- > > Changes in v3: > - Removed "NOTES" from commit message. > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 15 +

Re: [PATCH v3 05/12] drm/bridge: ti-sn65dsi86: Move drm_panel_unprepare() to post_disable()

2021-04-04 Thread Laurent Pinchart
() to make sure things are powered on (and then off again) > when reading the EDID. > > Signed-off-by: Douglas Anderson > Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart > --- > > (no changes since v1) > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- >

Re: [PATCH v3 06/12] drm/bridge: ti-sn65dsi86: Get rid of the useless detect() function

2021-04-04 Thread Laurent Pinchart
> Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart > --- > > (no changes since v1) > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 12 > 1 file changed, 12 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > b/driver

Re: [PATCH v3 07/12] drm/bridge: ti-sn65dsi86: Remove extra call: drm_connector_update_edid_property()

2021-04-04 Thread Laurent Pinchart
reason for us > to call it again. > > Signed-off-by: Douglas Anderson > Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart This looks like a widespread issue, would you be able to send a patch to address all the other drivers ? > --- > > (no changes since v1) >

Re: [PATCH v3 10/12] drm/bridge: ti-sn65dsi86: Read the EDID only if refclk was provided

2021-04-04 Thread Laurent Pinchart
he bridge chip without the "refclk" they're > in no worse shape than they were before the (fairly recent) commit > 58074b08c04a ("drm/bridge: ti-sn65dsi86: Read EDID blob over DDC"). > > Signed-off-by: Douglas Anderson Reviewed-by: Laurent Pinchart > --- &g

Re: [PATCH v3 11/12] drm/bridge: ti-sn65dsi86: Print an error if we fallback to panel modes

2021-04-04 Thread Laurent Pinchart
y: > - Putting an error message in the logs if we fall back. > - Putting a comment in saying what's going on. > > Signed-off-by: Douglas Anderson Reviewed-by: Laurent Pinchart > --- > > (no changes since v1) > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 7 ++

Re: [PATCH] drm: bridge: rename the function drm_bridge_hpd_notify to drm_bridge_hpd_cb

2021-04-06 Thread Laurent Pinchart
ection status occurs. >* >* This callback is optional and shall only be implemented by bridges > @@ -878,8 +878,8 @@ void drm_bridge_hpd_enable(struct drm_bridge *bridge, > enum drm_connector_status status), > void *data); > void drm_bridge_hpd_disable(struct drm_bridge *bridge); > -void drm_bridge_hpd_notify(struct drm_bridge *bridge, > -enum drm_connector_status status); > +void drm_bridge_hpd_cb(struct drm_bridge *bridge, > +enum drm_connector_status status); > > #ifdef CONFIG_DRM_PANEL_BRIDGE > struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel); -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 1/2] drm/bridge/lontium-lt9611uxc: fix waiting for EDID to become available

2021-01-13 Thread Laurent Pinchart
dev_err(lt9611uxc->dev, "wait for EDID failed: %d\n", ret); > > - return ERR_PTR(ret); > > + return NULL; > > + } else if (ret == 0) { > > + dev_err(lt9611uxc->dev, "wait for EDID timeout\n"); > > + return NULL; > > } > > > > return drm_do_get_edid(connector, lt9611uxc_get_edid_block, > > lt9611uxc); -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH RESEND v2] drm/bridge/tc358775: Fixes bus formats read

2021-01-13 Thread Laurent Pinchart
output_bus_cfg.format > and .atomic_get_input_bus_fmts() instead of connector > > Signed-off-by: Vinay Simha BN > > --- > v1: > * Laurent Pinchart review comments incorporated >drm_bridge_state.output_bus_cfg.format >instead of connector > v2: > * Laurent Pinchart rev

[PATCH v4 0/7] dt-bindings: display: Convert DWC HDMI TX bindings to YAML

2021-01-13 Thread Laurent Pinchart
n be found, Rob has recommended to simply delete the text-based bindings, which I would prefer not being forced to do in a v5. Laurent Pinchart (7): ARM: dts: imx6q(dl): Move 'port' nodes under 'ports' for HDMI encoder dt-bindings: display: bridge: Add YAML schema for Synopsys

[PATCH v4 4/7] dt-bindings: display: imx: hdmi: Convert binding to YAML

2021-01-13 Thread Laurent Pinchart
Convert the i.MX6 HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart Reviewed-by: Rob Herring --- Changes since v3: - Use port instead of port-base Changes since v1: - Only specify maxItems for clocks - Drop reg and interrupts as they're checked in the base schema - Rebase o

[PATCH v4 1/7] ARM: dts: imx6q(dl): Move 'port' nodes under 'ports' for HDMI encoder

2021-01-13 Thread Laurent Pinchart
In preparation for the conversion of the DWC HDMI TX device tree bindings to YAML, move the HDMI encoder's 'port' nodes under a 'ports' node. The 'ports' node is optional in the OF graph implementation, but YAML bindings require it. Signed-off-by: Laure

[PATCH v4 6/7] dt-bindings: display: sun8i-a83t-dw-hdmi: Reference dw-hdmi YAML schema

2021-01-13 Thread Laurent Pinchart
Replace the reference to the DWC HDMI text DT binding with a reference to the YAML equivalent. Signed-off-by: Laurent Pinchart Acked-by: Rob Herring Acked-by: Chen-Yu Tsai --- .../bindings/display/allwinner,sun8i-a83t-dw-hdmi.yaml| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 5/7] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2021-01-13 Thread Laurent Pinchart
Convert the Rockchip HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart --- Changes since v3: - Replace endpoint-base with endpoint Changes since v2: - Use Mark's @gmail.com e-mail address as the @rock-chips.com address bounces Changes since v1: - Drop pinctrl-0 and pinc

[PATCH v4 7/7] dt-bindings: display: bridge: Remove deprecated dw_hdmi.txt

2021-01-13 Thread Laurent Pinchart
dw_hdmi.txt has been replaced with synopsys,dw-hdmi.yaml, and all references to the old file have been converted. Remove it. Signed-off-by: Laurent Pinchart Acked-by: Rob Herring --- .../bindings/display/bridge/dw_hdmi.txt | 33 --- 1 file changed, 33 deletions(-) delete

[PATCH v4 3/7] dt-bindings: display: bridge: renesas, dw-hdmi: Convert binding to YAML

2021-01-13 Thread Laurent Pinchart
Convert the Renesas R-Car DWC HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart Reviewed-by: Rob Herring --- Changes since v3: - Use port instead of port-base Changes since v2: - Update MAINTAINERS Changes since v1: - Drop the part numbers in comments, only keep the SoC names

[PATCH v4 2/7] dt-bindings: display: bridge: Add YAML schema for Synopsys DW-HDMI

2021-01-13 Thread Laurent Pinchart
Add a .yaml schema containing the common properties for the Synopsys DesignWare HDMI TX controller. This isn't a full device tree binding specification, but is meant to be referenced by platform-specific bindings for the IP core. Signed-off-by: Laurent Pinchart Reviewed-by: Philipp

Re: [PATCH v4 4/7] dt-bindings: display: imx: hdmi: Convert binding to YAML

2021-01-14 Thread Laurent Pinchart
Hi Philipp, On Thu, Jan 14, 2021 at 09:17:47AM +0100, Philipp Zabel wrote: > On Thu, 2021-01-14 at 08:44 +0200, Laurent Pinchart wrote: > > Convert the i.MX6 HDMI TX text binding to YAML. > > > > Signed-off-by: Laurent Pinchart > > Reviewed-by: Rob Herring &

Re: [PATCH 02/10] drm: Rename plane atomic_check state names

2021-01-15 Thread Laurent Pinchart
struct drm_plane_state *new_plane_state > ) > { > <+... > - state > + new_plane_state > ...+> > } > > Signed-off-by: Maxime Ripard > --- [...] > drivers/gpu/drm/omapdrm/omap_plane.c | 19 +++++ > drivers/gpu/drm/rcar-

Re: [PATCH 04/10] drm/atomic: Pass the full state to planes atomic_check

2021-01-15 Thread Laurent Pinchart
state @ > @@ > > #include > > @ no_include depends on !include && adds_new_state @ > @@ > > + #include > #include > > Signed-off-by: Maxime Ripard > --- [snip] > drivers/gpu/drm/drm_atomic_helper.c | 2 +- > drivers

Re: [PATCH 05/10] drm: Use the state pointer directly in planes atomic_check

2021-01-15 Thread Laurent Pinchart
rm_atomic_get_new_plane_state(state, > plane); > <... > - plane_state->state > + state > ...> > } > > Signed-off-by: Maxime Ripard > --- [snip] > drivers/gpu/drm/omapdrm/omap_plane.c | 2 +- > drivers/gpu/drm/xlnx/zynqmp_disp.c

Re: [PATCH 07/10] drm: Store new plane state in a variable for atomic_update and disable

2021-01-15 Thread Laurent Pinchart
d_state) > { > + struct drm_plane_state *new_state = plane->state; > struct omap_drm_private *priv = plane->dev->dev_private; > struct omap_plane *omap_plane = to_omap_plane(plane); > > - plane->state->rotation = DRM_MODE_ROTATE_0; >

Re: [PATCH 09/10] drm/atomic: Pass the full state to planes atomic disable and update

2021-01-15 Thread Laurent Pinchart
ane, state; > identifier plane_state; > @@ > > func(struct drm_plane *plane, struct drm_atomic_state *state) { > ... > struct drm_plane_state *plane_state = > drm_atomic_get_old_plane_state(state, plane); > <+... > - plane_state->state &

Re: [PATCH 10/10] drm: Use state helper instead of the plane state pointer

2021-01-15 Thread Laurent Pinchart
drm_plane_state *new_state = plane->state; > + struct drm_plane_state *new_state = > drm_atomic_get_new_plane_state(state, > + > plane); > struct omap_drm_private *priv = plane->dev->dev_private; > struct omap_plane *omap_plane = to_omap_plane(plane); > [snip] -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH v3 0/3] dt-bindings: display: Convert mxsfb DT bindings to YAML

2021-01-15 Thread Laurent Pinchart
All the patches have been acked, and changes to v2 are minor. Rob, could you take this through your tree ? Laurent Pinchart (2): dt-bindings: display: mxsfb: Convert binding to YAML dt-bindings: display: mxsfb: Add and fix compatible strings Marek Vasut (1): dt-bindings: display: mxsfb

[PATCH v3 1/3] dt-bindings: display: mxsfb: Convert binding to YAML

2021-01-15 Thread Laurent Pinchart
combination of documented and undocumented values. Keep it simple for now, and update the example to make it valid. Aligning the binding with the existing DT sources will be performed separately. Signed-off-by: Laurent Pinchart Reviewed-by: Sam Ravnborg Reviewed-by: Rob Herring -- Changes since v2

[PATCH v3 2/3] dt-bindings: display: mxsfb: Add and fix compatible strings

2021-01-15 Thread Laurent Pinchart
. Signed-off-by: Laurent Pinchart Reviewed-by: Sam Ravnborg Reviewed-by: Rob Herring --- Changes since v2: - Fix indentation under items too Changes since v1: - Fix indentation under enum --- .../devicetree/bindings/display/fsl,lcdif.yaml | 18 +- 1 file changed, 13 insertions

<    1   2   3   4   5   6   7   8   9   10   >