[PATCH v3 RESEND 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper

2023-08-20 Thread Liu Ying
Add dw_mipi_dsi_get_bridge() helper so that it can be used by vendor drivers which implement vendor specific extensions to Synopsys DW MIPI DSI. Signed-off-by: Liu Ying --- v1->v3: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++ include/drm/bridge/dw_mipi_ds

[PATCH v3 RESEND 0/9] drm/bridge: imx: Add i.MX93 MIPI DSI support

2023-08-20 Thread Liu Ying
mprove error messages for imx93_dsi_phy_init() in patch 9. Liu Ying (9): drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper drm/bridge: synopsys: dw-mipi-dsi: Add input bus format negotiation support drm/bridge: synopsys: dw-mipi-dsi: Force input bus flags drm/

[PATCH v3] drm/bridge: panel: Add a device link between drm device and panel device

2023-08-07 Thread Liu Ying
the order is reversed, like the problematic case mentioned in the below link. Link: https://lore.kernel.org/lkml/capdykfr0xjru_udkoukq_q8rwaukyql+8fv-7s1ctmqi7u3...@mail.gmail.com/T/ Suggested-by: Ulf Hansson Signed-off-by: Liu Ying --- v2->v3: * Improve commit message s/swapped/reversed/.

[PATCH v3 9/9] drm/bridge: imx: Add i.MX93 MIPI DSI support

2023-08-06 Thread Liu Ying
i.MX93 MIPI DSI specific extensions. Signed-off-by: Liu Ying --- v2->v3: * Select GENERIC_PHY to fix Kconfig warning for GENERIC_PHY_MIPI_DPHY dependency. v1->v2: * Use dev_err_probe() to replace DRM_DEV_ERROR(). (Sam and Alexander) * Use dev_*() to replace DRM_*(). (Sam) * Fix build f

[PATCH v3 8/9] dt-bindings: display: bridge: Document Freescale i.MX93 MIPI DSI

2023-08-06 Thread Liu Ying
Freescale i.MX93 SoC embeds a Synopsys Designware MIPI DSI host controller and a Synopsys Designware MIPI DPHY. Some configurations and extensions to them are controlled by i.MX93 media blk-ctrl. Signed-off-by: Liu Ying Reviewed-by: Rob Herring --- v2->v3: * No change. v1->v2: * Add Rob

[PATCH v3 6/9] drm/bridge: synopsys: dw-mipi-dsi: Set minimum lane byte clock cycles for HSA and HBP

2023-08-06 Thread Liu Ying
sum up HSA, HBP, HFP and HDISPLAY. This helps the case where Raydium RM67191 DSI panel is connected, since it's video timing for hsync length is only 2 pixels and without this patch the programmed value for DSI_VID_HSA_TIME is only 2 with 4 data lanes. Signed-off-by: Liu Ying Reviewed-by: N

[PATCH v3 7/9] drm/bridge: synopsys: dw-mipi-dsi: Disable HSTX and LPRX timeout check

2023-08-06 Thread Liu Ying
happen for the 1920x1080p@60 video mode at least. Signed-off-by: Liu Ying Reviewed-by: Neil Armstrong --- v2->v3: * Add Neil's R-b tag from v1. v1->v2: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/g

[PATCH v3 4/9] drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support

2023-08-06 Thread Liu Ying
Vendor drivers may need to fixup mode due to pixel clock tree limitation, so introduce the ->mode_fixup() callcack to struct dw_mipi_dsi_plat_data and call it at atomic check stage if available. Signed-off-by: Liu Ying --- v1->v3: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.

[PATCH v3 5/9] drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc

2023-08-06 Thread Liu Ying
video mode. Signed-off-by: Liu Ying Reviewed-by: Neil Armstrong --- v2->v3: * Add Neil's R-b tag from v1. v1->v2: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi

[PATCH v3 3/9] drm/bridge: synopsys: dw-mipi-dsi: Force input bus flags

2023-08-06 Thread Liu Ying
. Signed-off-by: Liu Ying --- v1->v3: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index 8580b8a97fb1..8cd89a63b5f2 100

[PATCH v3 2/9] drm/bridge: synopsys: dw-mipi-dsi: Add input bus format negotiation support

2023-08-06 Thread Liu Ying
ormats through pdata->get_input_bus_fmts() first. If it's unavailable, fall back to the only format - MEDIA_BUS_FMT_FIXED, which matches the default behavior if ->atomic_get_input_bus_fmts() is not implemented as ->atomic_get_input_bus_fmts()'s kerneldoc indicates. Signed-off-by: Liu Y

[PATCH v3 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper

2023-08-06 Thread Liu Ying
Add dw_mipi_dsi_get_bridge() helper so that it can be used by vendor drivers which implement vendor specific extensions to Synopsys DW MIPI DSI. Signed-off-by: Liu Ying --- v1->v3: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++ include/drm/bridge/dw_mipi_ds

[PATCH v3 0/9] drm/bridge: imx: Add i.MX93 MIPI DSI support

2023-08-06 Thread Liu Ying
y_init() in patch 9. Liu Ying (9): drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper drm/bridge: synopsys: dw-mipi-dsi: Add input bus format negotiation support drm/bridge: synopsys: dw-mipi-dsi: Force input bus flags drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support

[PATCH v2] drm/bridge: panel: Add a device link between drm device and panel device

2023-07-17 Thread Liu Ying
the order is swapped, like the problematic case mentioned in the below link. Link: https://lore.kernel.org/lkml/capdykfr0xjru_udkoukq_q8rwaukyql+8fv-7s1ctmqi7u3...@mail.gmail.com/T/ Suggested-by: Ulf Hansson Signed-off-by: Liu Ying --- v1->v2: * Fix bailout for panel_bridge_attach() in c

[PATCH] drm/bridge: panel: Add a device link between drm device and panel device

2023-07-17 Thread Liu Ying
the order is swapped, like the problematic case mentioned in the below link. Link: https://lore.kernel.org/lkml/capdykfr0xjru_udkoukq_q8rwaukyql+8fv-7s1ctmqi7u3...@mail.gmail.com/T/ Suggested-by: Ulf Hansson Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/panel.c | 15 +++ 1 file

[PATCH 9/9] drm/bridge: imx: Add i.MX93 MIPI DSI support

2023-07-17 Thread Liu Ying
i.MX93 MIPI DSI specific extensions. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/imx/Kconfig | 10 + drivers/gpu/drm/bridge/imx/Makefile | 1 + drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 934 3 files changed, 945 insertions(+) create mode 100644

[PATCH 8/9] dt-bindings: display: bridge: Document Freescale i.MX93 MIPI DSI

2023-07-17 Thread Liu Ying
Freescale i.MX93 SoC embeds a Synopsys Designware MIPI DSI host controller and a Synopsys Designware MIPI DPHY. Some configurations and extensions to them are controlled by i.MX93 media blk-ctrl. Signed-off-by: Liu Ying --- .../display/bridge/fsl,imx93-mipi-dsi.yaml| 115

[PATCH 7/9] drm/bridge: synopsys: dw-mipi-dsi: Disable HSTX and LPRX timeout check

2023-07-17 Thread Liu Ying
happen for the 1920x1080p@60 video mode at least. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index

[PATCH 6/9] drm/bridge: synopsys: dw-mipi-dsi: Set minimum lane byte clock cycles for HSA and HBP

2023-07-17 Thread Liu Ying
sum up HSA, HBP, HFP and HDISPLAY. This helps the case where Raydium RM67191 DSI panel is connected, since it's video timing for hsync length is only 2 pixels and without this patch the programmed value for DSI_VID_HSA_TIME is only 2 with 4 data lanes. Signed-off-by: Liu Ying --- drivers/gpu/

[PATCH 5/9] drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc

2023-07-17 Thread Liu Ying
video mode. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index c754d55f71d1..332388fd86da 100644

[PATCH 3/9] drm/bridge: synopsys: dw-mipi-dsi: Force input bus flags

2023-07-17 Thread Liu Ying
. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index 8580b8a97fb1..8cd89a63b5f2 100644 --- a/drivers/gpu/drm

[PATCH 4/9] drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support

2023-07-17 Thread Liu Ying
Vendor drivers may need to fixup mode due to pixel clock tree limitation, so introduce the ->mode_fixup() callcack to struct dw_mipi_dsi_plat_data and call it at atomic check stage if available. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c |

[PATCH 2/9] drm/bridge: synopsys: dw-mipi-dsi: Add input bus format negotiation support

2023-07-17 Thread Liu Ying
ormats through pdata->get_input_bus_fmts() first. If it's unavailable, fall back to the only format - MEDIA_BUS_FMT_FIXED, which matches the default behavior if ->atomic_get_input_bus_fmts() is not implemented as ->atomic_get_input_bus_fmts()'s kerneldoc indicates. Signed-off-by: Liu Yin

[PATCH 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper

2023-07-17 Thread Liu Ying
Add dw_mipi_dsi_get_bridge() helper so that it can be used by vendor drivers which implement vendor specific extensions to Synopsys DW MIPI DSI. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++ include/drm/bridge/dw_mipi_dsi.h | 2 ++ 2 files

[PATCH 0/9] drm/bridge: imx: Add i.MX93 MIPI DSI support

2023-07-17 Thread Liu Ying
driver. Patch 8 adds DT-binding documentation for i.MX93 MIPI DSI. Patch 9 adds i.MX93 MIPI DSI DRM bridge. Liu Ying (9): drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper drm/bridge: synopsys: dw-mipi-dsi: Add input bus format negotiation support drm/bridge: synopsys

[PATCH v2] drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable()

2023-06-12 Thread Liu Ying
: cb285a5348e7 ("drm: mxsfb: Replace mxsfb_get_fb_paddr() with drm_fb_cma_get_gem_addr()") Cc: sta...@vger.kernel.org # 5.19+ Signed-off-by: Liu Ying --- v1->v2: * Cc stable. (Marek) drivers/gpu/drm/mxsfb/mxsfb_kms.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/

[PATCH] drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable()

2023-06-12 Thread Liu Ying
: cb285a5348e7 ("drm: mxsfb: Replace mxsfb_get_fb_paddr() with drm_fb_cma_get_gem_addr()") Signed-off-by: Liu Ying --- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_kms.c b/drivers/gpu/drm/mxsfb/mxsfb_kms.c index 3b

[PATCH v3 2/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-06-05 Thread Liu Ying
NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Add a DRM bridge driver to support the display format configuration. Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Set

[PATCH v3 1/2] dt-bindings: soc: imx93-media-blk-ctrl: Add PDFC subnode to schema and example

2023-06-05 Thread Liu Ying
i.MX93 SoC mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Document the Parallel Display Format Configuration(PDFC) subnode and add the subnode to example. Signed-off-by: Liu Ying --- v2-&g

[PATCH v3 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-06-05 Thread Liu Ying
ove_new callback in imx93_pdfc_bridge_driver in patch 2/2. Liu Ying (2): dt-bindings: soc: imx93-media-blk-ctrl: Add PDFC subnode to schema and example drm/bridge: imx: Add i.MX93 parallel display format configuration support .../soc/imx/fsl,imx93-media-blk-ctrl.yaml | 68 ++ drivers/gpu/drm/br

[PATCH v2 2/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-05-31 Thread Liu Ying
NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Add a DRM bridge driver to support the display format configuration. Signed-off-by: Liu Ying --- v1->v2: * Set *num_input_fmts to

[PATCH v2 1/2] dt-bindings: display: bridge: Add NXP i.MX93 parallel display format configuration

2023-05-31 Thread Liu Ying
NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Add device tree bindings for the display format configuration. Signed-off-by: Liu Ying --- v1->v2: * No change. .../display/bri

[PATCH v2 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-05-31 Thread Liu Ying
zero in case imx93_pdfc_bridge_atomic_get_input_bus_fmts() returns NULL in patch 2/2. * Replace .remove callback with .remove_new callback in imx93_pdfc_bridge_driver in patch 2/2. Liu Ying (2): dt-bindings: display: bridge: Add NXP i.MX93 parallel display format configuration drm/bri

[PATCH v6 6/6] drm: lcdif: Add i.MX93 LCDIF compatible string

2023-05-10 Thread Liu Ying
-by: Marek Vasut Signed-off-by: Liu Ying --- v5->v6: * Add Marek's R-b tag. v4->v5: * Add Alexander's T-b tag. v3->v4: * Add Alexander's R-b tag. v2->v3: * Fix a trivial typo in commit message. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) drivers/gpu/drm/mxsfb/lcdif

[PATCH v6 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-05-10 Thread Liu Ying
. Tested-by: Alexander Stein Acked-by: Alexander Stein Signed-off-by: Liu Ying --- v5->v6: * Drop MAX_DISPLAYS macro. (Marek) * Drop the encoder member in struct lcdif_drm_private. * Drop endpoint id check. * Allocate encoders by calling devm_kzalloc(). v4->v5: * Rebase upon v6

[PATCH v6 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-05-10 Thread Liu Ying
ein Reviewed-by: Marek Vasut Signed-off-by: Liu Ying --- v5->v6: * Add Marek's R-b. * A slight change brought from the update in patch 2/6 to keep default MEDIA_BUS_FMT_RGB888_1X24 bus format. v4->v5: * Add Alexander's A-b and T-b tags. v3->v4: * No change. v2->v3: * No change.

[PATCH v6 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-05-10 Thread Liu Ying
structure is introduced to cache bus format and bus flags states in ->atomic_check() so that they can be read in ->atomic_enable(). Tested-by: Alexander Stein Reviewed-by: Alexander Stein Reviewed-by: Marek Vasut Signed-off-by: Liu Ying --- v5->v6: * Add Marek's R-b tag. * A slight c

[PATCH v6 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-05-10 Thread Liu Ying
A valid bridge is already found in lcdif_attach_bridge() and set to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop the unnecessary NULL pointer check in KMS stage. Tested-by: Alexander Stein Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v5->v6: * Kee

[PATCH v6 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-05-10 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Acked-by: Krzysztof Kozlowski Reviewed-by: Marek Vasut Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v5->v6: * No change. v4->v5: * No change. v3->v4: * Add Alexan

[PATCH v6 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-05-10 Thread Liu Ying
nneeded 'bridges' member from lcdif_drm_private structure. * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge drm: lcdif: Det

[PATCH v2 2/2] drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support

2023-05-08 Thread Liu Ying
Add BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel support. The panel has a LVDS display interface. The panel's product specification can be found at: http://www.onetech.com.tw/files/EV121WXM-N10-1850ProductSpecification_20180801.pdf Signed-off-by: Liu Ying --- v1->v2: * Us

[PATCH v2 0/2] drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support

2023-05-08 Thread Liu Ying
ing in patch 2/2 to tell minimum and maximum pixel clock rates. * Set bus_flags to DRM_BUS_FLAG_DE_HIGH in struct panel_desc in patch 2/2. Liu Ying (2): dt-bindings: display: simple: Add BOE EV121WXM-N10-1850 panel drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support .../bindi

[PATCH v2 1/2] dt-bindings: display: simple: Add BOE EV121WXM-N10-1850 panel

2023-05-08 Thread Liu Ying
igned-off-by: Liu Ying --- v1->v2: * Add Krzysztof's A-b tag. .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/pan

[PATCH v5 6/6] drm: lcdif: Add i.MX93 LCDIF compatible string

2023-05-07 Thread Liu Ying
-by: Liu Ying --- v4->v5: * Add Alexander's T-b tag. v3->v4: * Add Alexander's R-b tag. v2->v3: * Fix a trivial typo in commit message. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) drivers/gpu/drm/mxsfb/lcdif_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dri

[PATCH v5 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-05-07 Thread Liu Ying
. Tested-by: Alexander Stein Acked-by: Alexander Stein Signed-off-by: Liu Ying --- v4->v5: * Rebase upon v6.4-rc1 and resolve a trivial conflict. * Add Alexander's A-b and T-b tags. v3->v4: * Improve warning message when ignoring invalid LCDIF OF endpoint ids. (Alexander) v2->v3: *

[PATCH v5 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-05-07 Thread Liu Ying
ein Signed-off-by: Liu Ying --- v4->v5: * Add Alexander's A-b and T-b tags. v3->v4: * No change. v2->v3: * No change. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). drivers/gpu/drm/mxsfb/l

[PATCH v5 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-05-07 Thread Liu Ying
structure is introduced to cache bus format and bus flags states in ->atomic_check() so that they can be read in ->atomic_enable(). Tested-by: Alexander Stein Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v4->v5: * Add Alexander's R-b and T-b tags. v3->v4: * Use 'new_{c,p}state'

[PATCH v5 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-05-07 Thread Liu Ying
A valid bridge is already found in lcdif_attach_bridge() and set to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop the unnecessary NULL pointer check in KMS stage. Tested-by: Alexander Stein Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v4->v5: * Add Alexan

[PATCH v5 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-05-07 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Acked-by: Krzysztof Kozlowski Reviewed-by: Marek Vasut Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v4->v5: * No change. v3->v4: * Add Alexander's R-b tag.

[PATCH v5 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-05-07 Thread Liu Ying
ut bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge drm: lcdif: Determine bus format and flags in ->atomic_check() drm: lcdif: Check consistent bus format and flags across first bridges

Re: [PATCH 37/37] drm/bridge/imx/Kconfig: Prevent imx-ldb-helper from appearing in 2 separate modules

2023-03-17 Thread Liu Ying
Hi Lee, On Fri, 2023-03-17 at 08:17 +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > scripts/Makefile.build:252: drivers/gpu/drm/bridge/imx/Makefile: > imx-ldb-helper.o is added to multiple modules: imx8qm-ldb imx8qxp-ldb > > Cc: Liu Ying &

[PATCH v2] drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

2023-03-13 Thread Liu Ying
2df58acc68 ("drm/bridge: Add the necessary bits to support bus format negotiation") Signed-off-by: Liu Ying --- v1->v2: * Correct Fixes tag format. * Copy DRM bridge driver maintainers. * Copy Boris. include/drm/drm_bridge.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH] MAINTAINERS: Add include/drm/drm_bridge.h to DRM DRIVERS FOR BRIDGE CHIPS

2023-03-12 Thread Liu Ying
Appropriate maintainers should be suggested for changes to the include/drm/drm_bridge.h header file, so add the header file to the 'DRM DRIVERS FOR BRIDGE CHIPS' section. Signed-off-by: Liu Ying --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH] drm: Use of_property_present() for testing DT property presence

2023-03-12 Thread Liu Ying
ind_property calls to the > recently added of_property_present() helper when we just want to test > for presence of a property and nothing more. > > Signed-off-by: Rob Herring > --- > drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 2 +- Reviewed-by: Liu Ying # i

[PATCH] drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

2023-03-09 Thread Liu Ying
ot;f32df58acc68 drm/bridge: Add the necessary bits to support bus format negotiation") Signed-off-by: Liu Ying --- include/drm/drm_bridge.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 6b65b0dfb4fb.

Re: [PATCH v4 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-02-20 Thread Liu Ying
On Mon, 2023-02-20 at 11:16 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > Am Montag, 20. Februar 2023, 09:55:19 CET schrieb Alexander Stein: > > Hi Liu, > > > > Am Freitag, 17. Februar 2023, 09:59:14 CET schrieb Liu Ying: > > > On Fri, 2023-0

Re: [PATCH v4 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-02-17 Thread Liu Ying
On Fri, 2023-02-17 at 09:18 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > Am Freitag, 17. Februar 2023, 07:54:01 CET schrieb Liu Ying: > > Hi, > > > > This patch set aims to add i.MX93 LCDIF display controller support > > in the existing LCDI

[PATCH v4 6/6] drm: lcdif: Add i.MX93 LCDIF compatible string

2023-02-16 Thread Liu Ying
With all previous preparations done to make it possible for the single LCDIF embedded in i.MX93 SoC to drive multiple displays simultaneously, add i.MX93 LCDIF compatible string as the last step of adding i.MX93 LCDIF support. Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v3->

[PATCH v4 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-02-16 Thread Liu Ying
. Signed-off-by: Liu Ying --- v3->v4: * Improve warning message when ignoring invalid LCDIF OF endpoint ids. (Alexander) v2->v3: * No change. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Drop '!remote ||' from lcdif_attach_bridge(). (Lothar) * Drop unneeded 'bridges' me

[PATCH v4 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-02-16 Thread Liu Ying
The single LCDIF embedded in i.MX93 SoC may drive multiple displays simultaneously. Check bus format and flags across first bridges in ->atomic_check() to ensure they are consistent. This is a preparation for adding i.MX93 LCDIF support. Signed-off-by: Liu Ying --- v3->v4: * No change.

[PATCH v4 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-02-16 Thread Liu Ying
structure is introduced to cache bus format and bus flags states in ->atomic_check() so that they can be read in ->atomic_enable(). Signed-off-by: Liu Ying --- v3->v4: * Use 'new_{c,p}state' instead of 'new_{crtc,plane}_state'. (Alexander) * Simplify lcdif_crtc_reset() by calling lcdif_crtc_at

[PATCH v4 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-02-16 Thread Liu Ying
A valid bridge is already found in lcdif_attach_bridge() and set to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop the unnecessary NULL pointer check in KMS stage. Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v3->v4: * Add Alexander's R-b tag. v2->v3:

[PATCH v4 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-02-16 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Acked-by: Krzysztof Kozlowski Reviewed-by: Marek Vasut Reviewed-by: Alexander Stein Signed-off-by: Liu Ying --- v3->v4: * Add Alexander's R-b tag. v2->v3: * No change. v1->

[PATCH v4 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-02-16 Thread Liu Ying
es' member from lcdif_drm_private structure. * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge drm: lcdif: Determine bus format and flags

Re: [PATCH v3 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-02-15 Thread Liu Ying
On Wed, 2023-02-15 at 08:54 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > thanks for the update. Thanks for the review. > > Am Montag, 13. Februar 2023, 09:56:11 CET schrieb Liu Ying: > > The single LCDIF embedded in i.MX93 SoC may drive multiple displa

Re: [PATCH v3 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-02-15 Thread Liu Ying
On Wed, 2023-02-15 at 08:55 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > thanks for the update. Thanks for the review. > > Am Montag, 13. Februar 2023, 09:56:10 CET schrieb Liu Ying: > > The single LCDIF embedded in i.MX93 SoC may drive multiple displa

Re: [PATCH v3 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-02-14 Thread Liu Ying
On Wed, 2023-02-15 at 08:26 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > thanks for the update. Thanks for the review. > > Am Montag, 13. Februar 2023, 09:56:07 CET schrieb Liu Ying: > > There is one LCDIF embedded in i.MX93 SoC to connect with > >

Re: [PATCH v3 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-02-14 Thread Liu Ying
On Tue, 2023-02-14 at 15:12 +0100, Alexander Stein wrote: > Hi Liu, Hi Alexander, > > thanks for the update. Thanks for your review. > > Am Montag, 13. Februar 2023, 09:56:09 CET schrieb Liu Ying: > > Instead of determining LCDIF output bus format and bus flags in >

[PATCH v3 6/6] drm: lcdif: Add i.MX93 LCDIF compatible string

2023-02-13 Thread Liu Ying
With all previous preparations done to make it possible for the single LCDIF embedded in i.MX93 SoC to drive multiple displays simultaneously, add i.MX93 LCDIF compatible string as the last step of adding i.MX93 LCDIF support. Signed-off-by: Liu Ying --- v2->v3: * Fix a trivial typo in com

[PATCH v3 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-02-13 Thread Liu Ying
. Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Drop '!remote ||' from lcdif_attach_bridge(). (Lothar) * Drop unneeded 'bridges' member from lcdif_drm_private structure. drivers/gpu/drm/mxsfb/lcdif_drv.

[PATCH v3 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-02-13 Thread Liu Ying
The single LCDIF embedded in i.MX93 SoC may drive multiple displays simultaneously. Check bus format and flags across first bridges in ->atomic_check() to ensure they are consistent. This is a preparation for adding i.MX93 LCDIF support. Signed-off-by: Liu Ying --- v2->v3: * No change.

[PATCH v3 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-02-13 Thread Liu Ying
structure is introduced to cache bus format and bus flags states in ->atomic_check() so that they can be read in ->atomic_enable(). Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Add comment on the 'base' member of lcdif_crtc_stat

[PATCH v3 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-02-13 Thread Liu Ying
A valid bridge is already found in lcdif_attach_bridge() and set to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop the unnecessary NULL pointer check in KMS stage. Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Split from patch 2/2 in v1. (Marek, Alexande

[PATCH v3 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-02-13 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Acked-by: Krzysztof Kozlowski Reviewed-by: Marek Vasut Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Add Krzysztof's A-b and Marek's R-b tags on patch 1/6. Documen

[PATCH v3 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-02-13 Thread Liu Ying
ar) * Add comment on the 'base' member of lcdif_crtc_state structure to note it should always be the first member. (Lothar) * Drop unneeded 'bridges' member from lcdif_drm_private structure. * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: l

[PATCH 2/2] drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support

2023-02-11 Thread Liu Ying
Add BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel support. The panel has a LVDS display interface. The panel's product specification can be found at: http://www.onetech.com.tw/files/EV121WXM-N10-1850ProductSpecification_20180801.pdf Signed-off-by: Liu Ying --- drivers/gpu/drm/

[PATCH 1/2] dt-bindings: display: simple: Add BOE EV121WXM-N10-1850 panel

2023-02-11 Thread Liu Ying
Add BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel compatible string. The panel has a LVDS display interface. The panel's product specification can be found at: http://www.onetech.com.tw/files/EV121WXM-N10-1850ProductSpecification_20180801.pdf Signed-off-by: Liu

[PATCH 0/2] drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support

2023-02-11 Thread Liu Ying
Hi, This patch series aims to add BOE EV121WXM-N10-1850 panel support in the DRM simple panel driver. Patch 1/2 adds dt-bindings support for the panel. Patch 2/2 adds the panel support in the DRM simple panel driver. Liu Ying (2): dt-bindings: display: simple: Add BOE EV121WXM-N10-1850 panel

Re: [PATCH 1/2] dt-bindings: display: bridge: Add NXP i.MX93 parallel display format configuration

2023-01-30 Thread Liu Ying
On Mon, 2023-01-30 at 15:39 -0600, Rob Herring wrote: > On Mon, Jan 30, 2023 at 04:39:05PM +0800, Liu Ying wrote: > > On Sun, 2023-01-29 at 12:46 +0100, Krzysztof Kozlowski wrote: > > > On 28/01/2023 04:47, Liu Ying wrote: > > > > NXP i.MX93 mediamix blk-ctrl con

Re: [PATCH 1/2] dt-bindings: display: bridge: Add NXP i.MX93 parallel display format configuration

2023-01-30 Thread Liu Ying
On Sun, 2023-01-29 at 12:46 +0100, Krzysztof Kozlowski wrote: > On 28/01/2023 04:47, Liu Ying wrote: > > NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register > > which > > configures parallel display format by using the > > "PARALLEL_DISP_FORMAT"

[PATCH 2/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-01-27 Thread Liu Ying
NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Add a DRM bridge driver to support the display format configuration. Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/imx/Kconfig

[PATCH 1/2] dt-bindings: display: bridge: Add NXP i.MX93 parallel display format configuration

2023-01-27 Thread Liu Ying
NXP i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. Add device tree bindings for the display format configuration. Signed-off-by: Liu Ying --- .../display/bridge/nxp,imx93-pdfc.yaml

[PATCH 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support

2023-01-27 Thread Liu Ying
lel output connects with this piece of small logic to configure parallel display format. Patch 1/2 adds NXP i.MX93 parallel display format configuration dt-bindings. Patch 2/2 adds NXP i.MX93 parallel display format configuration DRM bridge driver support. Liu Ying (2): dt-bindings: display: b

Re: [PATCH v2 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-01-25 Thread Liu Ying
On Wed, 2023-01-25 at 14:56 +0100, Marek Vasut wrote: > On 1/25/23 07:40, Liu Ying wrote: > > A valid bridge is already found in lcdif_attach_bridge() and set > > to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop > > the unnecessary NULL

[PATCH v2 5/6] drm: lcdif: Add multiple encoders and first bridges support

2023-01-24 Thread Liu Ying
. Signed-off-by: Liu Ying --- v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Drop '!remote ||' from lcdif_attach_bridge(). (Lothar) * Drop unneeded 'bridges' member from lcdif_drm_private structure. drivers/gpu/drm/mxsfb/lcdif_drv.c | 68 +++ drivers/

[PATCH v2 6/6] drm: lcdif: Add i.MX93 LCDIF compatible string

2023-01-24 Thread Liu Ying
With all previous preparations done to make it possible for the single LCDIF embedded in i.MX93 SoC to drive multipledisplays simultaneously, add i.MX93 LCDIF compatible string as the last step of adding i.MX93 LCDIF support. Signed-off-by: Liu Ying --- drivers/gpu/drm/mxsfb/lcdif_drv.c | 1

[PATCH v2 4/6] drm: lcdif: Check consistent bus format and flags across first bridges

2023-01-24 Thread Liu Ying
The single LCDIF embedded in i.MX93 SoC may drive multiple displays simultaneously. Check bus format and flags across first bridges in ->atomic_check() to ensure they are consistent. This is a preparation for adding i.MX93 LCDIF support. Signed-off-by: Liu Ying --- v1->v2: * Split from p

[PATCH v2 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check()

2023-01-24 Thread Liu Ying
structure is introduced to cache bus format and bus flags states in ->atomic_check() so that they can be read in ->atomic_enable(). Signed-off-by: Liu Ying --- v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) * Add comment on the 'base' member of lcdif_crtc_state structure to not

[PATCH v2 2/6] drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge

2023-01-24 Thread Liu Ying
A valid bridge is already found in lcdif_attach_bridge() and set to lcdif->bridge, so lcdif->bridge cannot be a NULL pointer. Drop the unnecessary NULL pointer check in KMS stage. Signed-off-by: Liu Ying --- v1->v2: * Split from patch 2/2 in v1. (Marek, Alexander) drivers/gpu/

[PATCH v2 1/6] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-01-24 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Acked-by: Krzysztof Kozlowski Reviewed-by: Marek Vasut Signed-off-by: Liu Ying --- v1->v2: * Add Krzysztof's A-b and Marek's R-b tags on patch 1/6. Documentation/devicetree/bindi

[PATCH v2 0/6] drm: lcdif: Add i.MX93 LCDIF support

2023-01-24 Thread Liu Ying
ucture to note it should always be the first member. (Lothar) * Drop unneeded 'bridges' member from lcdif_drm_private structure. * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Drop unnecessar

Re: [PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-24 Thread Liu Ying
On Tue, 2023-01-24 at 12:15 +0100, Alexander Stein wrote: > Hi, Hi, > > Am Dienstag, 24. Januar 2023, 08:59:39 CET schrieb Liu Ying: > > On Mon, 2023-01-23 at 16:57 +0100, Marek Vasut wrote: > > > On 1/23/23 08:23, Liu Ying wrote: > > > > The LCDIF embedded i

Re: [PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-24 Thread Liu Ying
On Mon, 2023-01-23 at 16:57 +0100, Marek Vasut wrote: > On 1/23/23 08:23, Liu Ying wrote: > > The LCDIF embedded in i.MX93 SoC is essentially the same to those > > in i.MX8mp SoC. However, i.MX93 LCDIF may connect with MIPI DSI > > controller through LCDIF cross li

Re: [PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-23 Thread Liu Ying
On Mon, 2023-01-23 at 09:13 +0100, Lothar Waßmann wrote: > Hi, Hi, > > On Mon, 23 Jan 2023 15:23:58 +0800 Liu Ying wrote: > > The LCDIF embedded in i.MX93 SoC is essentially the same to those > > in i.MX8mp SoC. However, i.MX93 LCDIF may connect with MIPI DSI > > con

[PATCH 0/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-22 Thread Liu Ying
display. Patch 1/2 adds device tree binding support for i.MX93 LCDIF in the existing fsl,lcdif.yaml. Patch 2/2 adds i.MX93 LCDIF support in the existing LCDIF DRM driver. Liu Ying (2): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Add i.MX93 LCDIF support .../bindings/display

[PATCH 1/2] dt-bindings: lcdif: Add i.MX93 LCDIF support

2023-01-22 Thread Liu Ying
). i.MX93 LCDIF IP is essentially the same to i.MX8MP LCDIF IP. Add device tree binding for i.MX93 LCDIF. Signed-off-by: Liu Ying --- Documentation/devicetree/bindings/display/fsl,lcdif.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support

2023-01-22 Thread Liu Ying
states so that the next downstream bridges may use consistent bus format and bus flags. Signed-off-by: Liu Ying --- drivers/gpu/drm/mxsfb/lcdif_drv.c | 73 +-- drivers/gpu/drm/mxsfb/lcdif_drv.h | 6 +- drivers/gpu/drm/mxsfb/lcdif_kms.c | 206 -- 3 files

[PATCH v3 2/2] drm/bridge: fsl-ldb: Add i.MX93 LDB support

2023-01-22 Thread Liu Ying
driver by adding i.MX93 LDB compatible string and device data(to reflect different register offsets and LVDS_CTRL register bit1 definition). Reviewed-by: Marek Vasut Signed-off-by: Liu Ying --- v2->v3: * Provide comment on LVDS_CTRL_LVDS_EN bit when defining it's macro. (Marek) * Add Marek's R-b

[PATCH v3 1/2] dt-bindings: display: bridge: ldb: Add i.MX93 LDB

2023-01-22 Thread Liu Ying
at most two. Add i.MX93 LDB device tree binding in the existing i.MX8mp LDB device tree binding documentation. Acked-by: Krzysztof Kozlowski Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * Drop redundant "device tree binding" from patch subject. (Krzysztof) * Add Krz

[PATCH v3 0/2] drm/bridge: fsl-ldb: Add i.MX93 LDB support

2023-01-22 Thread Liu Ying
2/2. v1->v2: * Drop redundant "device tree binding" from patch 1/2's subject. (Krzysztof) * Add Krzysztof's A-b tag on patch 1/2. Liu Ying (2): dt-bindings: display: bridge: ldb: Add i.MX93 LDB drm/bridge: fsl-ldb: Add i.MX93 LDB support .../bindings/display/bridge/fsl,ld

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