* [PATCH] drm/bridge: ite-it6263: Support VESA input format
@ 2024-12-03 17:21 tomm.merciai
2024-12-03 17:37 ` Dmitry Baryshkov
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: tomm.merciai @ 2024-12-03 17:21 UTC (permalink / raw)
To: tomm.merciai
Cc: linux-renesas-soc, dri-devel, biju.das.jz, Tommaso Merciai,
Liu Ying, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Introduce it6263_is_input_bus_fmt_valid() and refactor the
it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
format by selecting the LVDS input format based on the LVDS data mapping
and thereby support both JEIDA and VESA input formats.
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
---
drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
index cbabd4e20d3e..83d1db29157a 100644
--- a/drivers/gpu/drm/bridge/ite-it6263.c
+++ b/drivers/gpu/drm/bridge/ite-it6263.c
@@ -48,6 +48,7 @@
#define REG_COL_DEP GENMASK(1, 0)
#define BIT8 FIELD_PREP(REG_COL_DEP, 1)
#define OUT_MAP BIT(4)
+#define VESA BIT(4)
#define JEIDA 0
#define REG_DESSC_ENB BIT(6)
#define DMODE BIT(7)
@@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
fsleep(10000);
}
+static bool it6263_is_input_bus_fmt_valid(u32 input_fmt)
+{
+ switch (input_fmt) {
+ case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
+ case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
+ return true;
+ }
+ return false;
+}
+
static inline void it6263_lvds_set_interface(struct it6263 *it)
{
+ u8 fmt;
+
/* color depth */
regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_COL_DEP, BIT8);
+
+ if (it->lvds_data_mapping == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG)
+ fmt = VESA;
+ else
+ fmt = JEIDA;
+
/* output mapping */
- regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, JEIDA);
+ regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, fmt);
if (it->lvds_dual_link) {
regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, DISO);
@@ -714,14 +733,14 @@ it6263_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,
*num_input_fmts = 0;
- if (it->lvds_data_mapping != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA)
+ if (!it6263_is_input_bus_fmt_valid(it->lvds_data_mapping))
return NULL;
input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL);
if (!input_fmts)
return NULL;
- input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
+ input_fmts[0] = it->lvds_data_mapping;
*num_input_fmts = 1;
return input_fmts;
--
2.34.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-03 17:21 [PATCH] drm/bridge: ite-it6263: Support VESA input format tomm.merciai
@ 2024-12-03 17:37 ` Dmitry Baryshkov
2024-12-04 3:42 ` Liu Ying
2024-12-04 3:34 ` Liu Ying
2024-12-04 8:11 ` Tommaso Merciai
2 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-12-03 17:37 UTC (permalink / raw)
To: tomm.merciai
Cc: linux-renesas-soc, dri-devel, biju.das.jz, Tommaso Merciai,
Liu Ying, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>
> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> format by selecting the LVDS input format based on the LVDS data mapping
> and thereby support both JEIDA and VESA input formats.
For the patch itself,
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
A more generic question: is the bridge limited to 4 lanes or does it
support 3-lane or 5-lane configurations?
>
> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> ---
> drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
> 1 file changed, 22 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
> index cbabd4e20d3e..83d1db29157a 100644
> --- a/drivers/gpu/drm/bridge/ite-it6263.c
> +++ b/drivers/gpu/drm/bridge/ite-it6263.c
> @@ -48,6 +48,7 @@
> #define REG_COL_DEP GENMASK(1, 0)
> #define BIT8 FIELD_PREP(REG_COL_DEP, 1)
> #define OUT_MAP BIT(4)
> +#define VESA BIT(4)
> #define JEIDA 0
> #define REG_DESSC_ENB BIT(6)
> #define DMODE BIT(7)
> @@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
> fsleep(10000);
> }
>
> +static bool it6263_is_input_bus_fmt_valid(u32 input_fmt)
> +{
> + switch (input_fmt) {
> + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
> + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
> + return true;
> + }
> + return false;
> +}
> +
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-03 17:21 [PATCH] drm/bridge: ite-it6263: Support VESA input format tomm.merciai
2024-12-03 17:37 ` Dmitry Baryshkov
@ 2024-12-04 3:34 ` Liu Ying
2024-12-04 6:27 ` Biju Das
2024-12-04 10:37 ` Tommaso Merciai
2024-12-04 8:11 ` Tommaso Merciai
2 siblings, 2 replies; 16+ messages in thread
From: Liu Ying @ 2024-12-04 3:34 UTC (permalink / raw)
To: tomm.merciai
Cc: linux-renesas-soc, dri-devel, biju.das.jz, Tommaso Merciai,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, linux-kernel
On 12/04/2024, tomm.merciai@gmail.com wrote:
> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>
> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> format by selecting the LVDS input format based on the LVDS data mapping
> and thereby support both JEIDA and VESA input formats.
ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
this patch actually only adds vesa-24 support. So, to be more
specific, the patch subject and commit message should reflect
this rather than claim "Support VESA input format".
>
> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Can you please send this patch with your Renesas email address
instead of Gmail email address?
Otherwise, add a Signed-off-by tag with your Gmail email address.
> ---
> drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
> 1 file changed, 22 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
> index cbabd4e20d3e..83d1db29157a 100644
> --- a/drivers/gpu/drm/bridge/ite-it6263.c
> +++ b/drivers/gpu/drm/bridge/ite-it6263.c
> @@ -48,6 +48,7 @@
> #define REG_COL_DEP GENMASK(1, 0)
> #define BIT8 FIELD_PREP(REG_COL_DEP, 1)
> #define OUT_MAP BIT(4)
> +#define VESA BIT(4)
> #define JEIDA 0
> #define REG_DESSC_ENB BIT(6)
> #define DMODE BIT(7)
> @@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
> fsleep(10000);
> }
>
> +static bool it6263_is_input_bus_fmt_valid(u32 input_fmt)
1) Inline this small function.
2) Change the argument input_fmt type from u32 to int to
match the type of it->lvds_data_mapping.
static inline bool it6263_is_input_bus_fmt_valid(int input_fmt)
> +{
> + switch (input_fmt) {
> + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
> + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
> + return true;
> + }
> + return false;
> +}
> +
> static inline void it6263_lvds_set_interface(struct it6263 *it)
> {
> + u8 fmt;
> +
> /* color depth */
> regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_COL_DEP, BIT8);
> +
> + if (it->lvds_data_mapping == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG)
> + fmt = VESA;
> + else
> + fmt = JEIDA;
> +
> /* output mapping */
> - regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, JEIDA);
> + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, fmt);
>
> if (it->lvds_dual_link) {
> regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, DISO);
> @@ -714,14 +733,14 @@ it6263_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,
>
> *num_input_fmts = 0;
>
> - if (it->lvds_data_mapping != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA)
> + if (!it6263_is_input_bus_fmt_valid(it->lvds_data_mapping))
> return NULL;
>
> input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL);
> if (!input_fmts)
> return NULL;
>
> - input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
> + input_fmts[0] = it->lvds_data_mapping;
> *num_input_fmts = 1;
>
> return input_fmts;
--
Regards,
Liu Ying
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-03 17:37 ` Dmitry Baryshkov
@ 2024-12-04 3:42 ` Liu Ying
2024-12-04 6:45 ` Biju Das
0 siblings, 1 reply; 16+ messages in thread
From: Liu Ying @ 2024-12-04 3:42 UTC (permalink / raw)
To: Dmitry Baryshkov, tomm.merciai
Cc: linux-renesas-soc, dri-devel, biju.das.jz, Tommaso Merciai,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, linux-kernel
On 12/04/2024, Dmitry Baryshkov wrote:
> On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
>> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>>
>> Introduce it6263_is_input_bus_fmt_valid() and refactor the
>> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
>> format by selecting the LVDS input format based on the LVDS data mapping
>> and thereby support both JEIDA and VESA input formats.
>
> For the patch itself,
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>
> A more generic question: is the bridge limited to 4 lanes or does it
> support 3-lane or 5-lane configurations?
According to ite,it6263.yaml, the bridge supports all the data
mappings(jeida-{18,24,30} and vesa-{24,30}) listed in
lvds-data-mapping.yaml. lvds-data-mapping.yaml specifies the
data lanes(3/4/5) used by each of the data mappings. So, the
bridge supports 3, 4 or 5 data lanes.
>
>>
>> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>> ---
>> drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
>> 1 file changed, 22 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
>> index cbabd4e20d3e..83d1db29157a 100644
>> --- a/drivers/gpu/drm/bridge/ite-it6263.c
>> +++ b/drivers/gpu/drm/bridge/ite-it6263.c
>> @@ -48,6 +48,7 @@
>> #define REG_COL_DEP GENMASK(1, 0)
>> #define BIT8 FIELD_PREP(REG_COL_DEP, 1)
>> #define OUT_MAP BIT(4)
>> +#define VESA BIT(4)
>> #define JEIDA 0
>> #define REG_DESSC_ENB BIT(6)
>> #define DMODE BIT(7)
>> @@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
>> fsleep(10000);
>> }
>>
>> +static bool it6263_is_input_bus_fmt_valid(u32 input_fmt)
>> +{
>> + switch (input_fmt) {
>> + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
>> + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
>> + return true;
>> + }
>> + return false;
>> +}
>> +
>
--
Regards,
Liu Ying
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 3:34 ` Liu Ying
@ 2024-12-04 6:27 ` Biju Das
2024-12-04 6:47 ` Liu Ying
2024-12-04 10:37 ` Tommaso Merciai
1 sibling, 1 reply; 16+ messages in thread
From: Biju Das @ 2024-12-04 6:27 UTC (permalink / raw)
To: Liu Ying, tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
Hi Liu Ying,
> -----Original Message-----
> From: Liu Ying <victor.liu@nxp.com>
> Sent: 04 December 2024 03:34
> To: tomm.merciai@gmail.com
> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>
> On 12/04/2024, tomm.merciai@gmail.com wrote:
> > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> >
> > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > format by selecting the LVDS input format based on the LVDS data
> > mapping and thereby support both JEIDA and VESA input formats.
>
> ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while this patch actually only adds vesa-24
> support. So, to be more specific, the patch subject and commit message should reflect this rather
> than claim "Support VESA input format".
>
> >
> > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>
> Can you please send this patch with your Renesas email address instead of Gmail email address?
> Otherwise, add a Signed-off-by tag with your Gmail email address.
If I am correct, you can clearly see the Renesas email address after subject.
So, the procedure followed by Tommaso is correct.
You can use gmail account for send patch, but you just need to add From tag and SoB tag
after subject with company address.
Please shout if anyone think this procedure is wrong.
<snippet>
Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Introduce it6263_is_input_bus_fmt_valid() and refactor the
</snippet>
Cheers,
Biju
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 3:42 ` Liu Ying
@ 2024-12-04 6:45 ` Biju Das
2024-12-05 9:02 ` Liu Ying
0 siblings, 1 reply; 16+ messages in thread
From: Biju Das @ 2024-12-04 6:45 UTC (permalink / raw)
To: Liu Ying, Dmitry Baryshkov, tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
Hi Liu Ying,
> -----Original Message-----
> From: Liu Ying <victor.liu@nxp.com>
> Sent: 04 December 2024 03:43
> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>
> On 12/04/2024, Dmitry Baryshkov wrote:
> > On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
> >> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> >>
> >> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> >> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> >> format by selecting the LVDS input format based on the LVDS data
> >> mapping and thereby support both JEIDA and VESA input formats.
> >
> > For the patch itself,
> >
> > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> >
> > A more generic question: is the bridge limited to 4 lanes or does it
> > support 3-lane or 5-lane configurations?
>
> According to ite,it6263.yaml, the bridge supports all the data mappings(jeida-{18,24,30} and vesa-
> {24,30}) listed in lvds-data-mapping.yaml. lvds-data-mapping.yaml specifies the data lanes(3/4/5)
> used by each of the data mappings. So, the bridge supports 3, 4 or 5 data lanes.
In Renesas SMARC RZ/G3E LVDS add on board, only 4 LVDS Rx lanes connected. The 5th one is unconnected.
What is the situation in your board Liu Ying?
Cheers,
Biju
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 6:27 ` Biju Das
@ 2024-12-04 6:47 ` Liu Ying
0 siblings, 0 replies; 16+ messages in thread
From: Liu Ying @ 2024-12-04 6:47 UTC (permalink / raw)
To: Biju Das, tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
On 12/04/2024, Biju Das wrote:
> Hi Liu Ying,
Hi Biju,
>
>> -----Original Message-----
>> From: Liu Ying <victor.liu@nxp.com>
>> Sent: 04 December 2024 03:34
>> To: tomm.merciai@gmail.com
>> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>>
>> On 12/04/2024, tomm.merciai@gmail.com wrote:
>>> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>>>
>>> Introduce it6263_is_input_bus_fmt_valid() and refactor the
>>> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
>>> format by selecting the LVDS input format based on the LVDS data
>>> mapping and thereby support both JEIDA and VESA input formats.
>>
>> ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while this patch actually only adds vesa-24
>> support. So, to be more specific, the patch subject and commit message should reflect this rather
>> than claim "Support VESA input format".
>>
>>>
>>> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>>
>> Can you please send this patch with your Renesas email address instead of Gmail email address?
>> Otherwise, add a Signed-off-by tag with your Gmail email address.
>
> If I am correct, you can clearly see the Renesas email address after subject.
Yes.
> So, the procedure followed by Tommaso is correct.
No, I think it's wrong. We don't know whether the person(s)
behind the two Email addresses are the same Tommaso.
Likely it's a person from two different domains - still kind
of two people.
AFAIK, sending other's patch needs to add sender's SoB tag.
>
> You can use gmail account for send patch, but you just need to add From tag and SoB tag
> after subject with company address.
Again, we don't know sender and author are the same
person if their Email addresses are different.
>
> Please shout if anyone think this procedure is wrong.
>
> <snippet>
> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>
> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>
> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> </snippet>
>
>
> Cheers,
> Biju
--
Regards,
Liu Ying
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-03 17:21 [PATCH] drm/bridge: ite-it6263: Support VESA input format tomm.merciai
2024-12-03 17:37 ` Dmitry Baryshkov
2024-12-04 3:34 ` Liu Ying
@ 2024-12-04 8:11 ` Tommaso Merciai
2 siblings, 0 replies; 16+ messages in thread
From: Tommaso Merciai @ 2024-12-04 8:11 UTC (permalink / raw)
To: tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Biju Das, Liu Ying,
Andrzej Hajda, Neil Armstrong, Robert Foss, laurent.pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
-----Original Message-----
From: tomm.merciai@gmail.com <tomm.merciai@gmail.com>
Sent: Tuesday, December 3, 2024 6:21 PM
To: tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org; dri-devel@lists.freedesktop.org; Biju Das <biju.das.jz@bp.renesas.com>; Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>; Liu Ying <victor.liu@nxp.com>; Andrzej Hajda <andrzej.hajda@intel.com>; Neil Armstrong <neil.armstrong@linaro.org>; Robert Foss <rfoss@kernel.org>; laurent.pinchart <laurent.pinchart@ideasonboard.com>; Jonas Karlman <jonas@kwiboo.se>; Jernej Skrabec <jernej.skrabec@gmail.com>; Maarten Lankhorst <maarten.lankhorst@linux.intel.com>; Maxime Ripard <mripard@kernel.org>; Thomas Zimmermann <tzimmermann@suse.de>; David Airlie <airlied@gmail.com>; Simona Vetter <simona@ffwll.ch>; linux-kernel@vger.kernel.org
Subject: [PATCH] drm/bridge: ite-it6263: Support VESA input format
From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Introduce it6263_is_input_bus_fmt_valid() and refactor the
it6263_bridge_atomic_get_input_bus_fmts() function to support VESA format by selecting the LVDS input format based on the LVDS data mapping and thereby support both JEIDA and VESA input formats.
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
---
drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
index cbabd4e20d3e..83d1db29157a 100644
--- a/drivers/gpu/drm/bridge/ite-it6263.c
+++ b/drivers/gpu/drm/bridge/ite-it6263.c
@@ -48,6 +48,7 @@
#define REG_COL_DEP GENMASK(1, 0)
#define BIT8 FIELD_PREP(REG_COL_DEP, 1)
#define OUT_MAP BIT(4)
+#define VESA BIT(4)
#define JEIDA 0
#define REG_DESSC_ENB BIT(6)
#define DMODE BIT(7)
@@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
fsleep(10000);
}
+static bool it6263_is_input_bus_fmt_valid(u32 input_fmt) {
+ switch (input_fmt) {
+ case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
+ case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
+ return true;
+ }
+ return false;
+}
+
static inline void it6263_lvds_set_interface(struct it6263 *it) {
+ u8 fmt;
+
/* color depth */
regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_COL_DEP, BIT8);
+
+ if (it->lvds_data_mapping == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG)
+ fmt = VESA;
+ else
+ fmt = JEIDA;
+
/* output mapping */
- regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, JEIDA);
+ regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, fmt);
if (it->lvds_dual_link) {
regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, DISO); @@ -714,14 +733,14 @@ it6263_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,
*num_input_fmts = 0;
- if (it->lvds_data_mapping != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA)
+ if (!it6263_is_input_bus_fmt_valid(it->lvds_data_mapping))
return NULL;
input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL);
if (!input_fmts)
return NULL;
- input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
+ input_fmts[0] = it->lvds_data_mapping;
*num_input_fmts = 1;
return input_fmts;
--
2.34.1
Acked-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
________________________________
Renesas Electronics Europe GmbH
Registered Office: Arcadiastrasse 10
DE-40472 Duesseldorf
Commercial Registry: Duesseldorf, HRB 3708
Managing Director: Carsten Jauch
VAT-No.: DE 14978647
Tax-ID-No: 105/5839/1793
Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 3:34 ` Liu Ying
2024-12-04 6:27 ` Biju Das
@ 2024-12-04 10:37 ` Tommaso Merciai
2024-12-04 11:53 ` Dmitry Baryshkov
1 sibling, 1 reply; 16+ messages in thread
From: Tommaso Merciai @ 2024-12-04 10:37 UTC (permalink / raw)
To: Liu Ying
Cc: linux-renesas-soc, dri-devel, biju.das.jz, Tommaso Merciai,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, linux-kernel
Hi Liu Ying,
Thanks for your review.
On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote:
> On 12/04/2024, tomm.merciai@gmail.com wrote:
> > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> >
> > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > format by selecting the LVDS input format based on the LVDS data mapping
> > and thereby support both JEIDA and VESA input formats.
>
> ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
> this patch actually only adds vesa-24 support. So, to be more
> specific, the patch subject and commit message should reflect
> this rather than claim "Support VESA input format".
Fully agree, thanks.
I will fix that in v2 specifying vesa-24 like you suggest.
>
> >
> > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>
> Can you please send this patch with your Renesas email address
> instead of Gmail email address?
> Otherwise, add a Signed-off-by tag with your Gmail email address.
Thanks, for the point.
What about adding Acked-by: from my renesas email address?
>
> > ---
> > drivers/gpu/drm/bridge/ite-it6263.c | 25 ++++++++++++++++++++++---
> > 1 file changed, 22 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c
> > index cbabd4e20d3e..83d1db29157a 100644
> > --- a/drivers/gpu/drm/bridge/ite-it6263.c
> > +++ b/drivers/gpu/drm/bridge/ite-it6263.c
> > @@ -48,6 +48,7 @@
> > #define REG_COL_DEP GENMASK(1, 0)
> > #define BIT8 FIELD_PREP(REG_COL_DEP, 1)
> > #define OUT_MAP BIT(4)
> > +#define VESA BIT(4)
> > #define JEIDA 0
> > #define REG_DESSC_ENB BIT(6)
> > #define DMODE BIT(7)
> > @@ -428,12 +429,30 @@ static inline void it6263_lvds_reset(struct it6263 *it)
> > fsleep(10000);
> > }
> >
> > +static bool it6263_is_input_bus_fmt_valid(u32 input_fmt)
>
> 1) Inline this small function.
> 2) Change the argument input_fmt type from u32 to int to
> match the type of it->lvds_data_mapping.
Will fix that in v2, thanks :)
>
> static inline bool it6263_is_input_bus_fmt_valid(int input_fmt)
>
> > +{
> > + switch (input_fmt) {
> > + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
> > + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
> > + return true;
> > + }
> > + return false;
> > +}
> > +
> > static inline void it6263_lvds_set_interface(struct it6263 *it)
> > {
> > + u8 fmt;
> > +
> > /* color depth */
> > regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_COL_DEP, BIT8);
> > +
> > + if (it->lvds_data_mapping == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG)
> > + fmt = VESA;
> > + else
> > + fmt = JEIDA;
> > +
> > /* output mapping */
> > - regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, JEIDA);
> > + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, fmt);
> >
> > if (it->lvds_dual_link) {
> > regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, DISO);
> > @@ -714,14 +733,14 @@ it6263_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,
> >
> > *num_input_fmts = 0;
> >
> > - if (it->lvds_data_mapping != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA)
> > + if (!it6263_is_input_bus_fmt_valid(it->lvds_data_mapping))
> > return NULL;
> >
> > input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL);
> > if (!input_fmts)
> > return NULL;
> >
> > - input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
> > + input_fmts[0] = it->lvds_data_mapping;
> > *num_input_fmts = 1;
> >
> > return input_fmts;
>
> --
> Regards,
> Liu Ying
Thanks & Regards,
Tommaso
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 10:37 ` Tommaso Merciai
@ 2024-12-04 11:53 ` Dmitry Baryshkov
2024-12-04 13:11 ` Tommaso Merciai
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-12-04 11:53 UTC (permalink / raw)
To: Tommaso Merciai
Cc: Liu Ying, linux-renesas-soc, dri-devel, biju.das.jz,
Tommaso Merciai, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote:
> Hi Liu Ying,
> Thanks for your review.
>
> On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote:
> > On 12/04/2024, tomm.merciai@gmail.com wrote:
> > > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > >
> > > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > > format by selecting the LVDS input format based on the LVDS data mapping
> > > and thereby support both JEIDA and VESA input formats.
> >
> > ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
> > this patch actually only adds vesa-24 support. So, to be more
> > specific, the patch subject and commit message should reflect
> > this rather than claim "Support VESA input format".
>
> Fully agree, thanks.
> I will fix that in v2 specifying vesa-24 like you suggest.
>
> >
> > >
> > > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> >
> > Can you please send this patch with your Renesas email address
> > instead of Gmail email address?
> > Otherwise, add a Signed-off-by tag with your Gmail email address.
>
> Thanks, for the point.
> What about adding Acked-by: from my renesas email address?
Acked-by has a different meaning. I'd say that generally it's okay to
have this light mismatch, see [1] or any of the emails that B4 generates
for web-based submission.
[1] https://lore.kernel.org/dri-devel/20241121164858.457921-1-robdclark@gmail.com/
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 11:53 ` Dmitry Baryshkov
@ 2024-12-04 13:11 ` Tommaso Merciai
2024-12-04 13:33 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Tommaso Merciai @ 2024-12-04 13:11 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Liu Ying, linux-renesas-soc, dri-devel, biju.das.jz,
Tommaso Merciai, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
Hi Dmitry,
On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote:
> On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote:
> > Hi Liu Ying,
> > Thanks for your review.
> >
> > On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote:
> > > On 12/04/2024, tomm.merciai@gmail.com wrote:
> > > > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > > >
> > > > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > > > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > > > format by selecting the LVDS input format based on the LVDS data mapping
> > > > and thereby support both JEIDA and VESA input formats.
> > >
> > > ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
> > > this patch actually only adds vesa-24 support. So, to be more
> > > specific, the patch subject and commit message should reflect
> > > this rather than claim "Support VESA input format".
> >
> > Fully agree, thanks.
> > I will fix that in v2 specifying vesa-24 like you suggest.
> >
> > >
> > > >
> > > > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > >
> > > Can you please send this patch with your Renesas email address
> > > instead of Gmail email address?
> > > Otherwise, add a Signed-off-by tag with your Gmail email address.
> >
> > Thanks, for the point.
> > What about adding Acked-by: from my renesas email address?
>
> Acked-by has a different meaning. I'd say that generally it's okay to
> have this light mismatch, see [1] or any of the emails that B4 generates
> for web-based submission.
>
> [1] https://lore.kernel.org/dri-devel/20241121164858.457921-1-robdclark@gmail.com/
Thanks for sharing this example and for the clarification.
This is similar to my case :)
Then v1 procedure is correct?
I can use the same formatting (From: Sob:) for sending v2?
Thanks & Regards,
Tommaso
>
> >
>
> --
> With best wishes
> Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 13:11 ` Tommaso Merciai
@ 2024-12-04 13:33 ` Dmitry Baryshkov
2024-12-04 13:36 ` Tommaso Merciai
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-12-04 13:33 UTC (permalink / raw)
To: Tommaso Merciai
Cc: Liu Ying, linux-renesas-soc, dri-devel, biju.das.jz,
Tommaso Merciai, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
On Wed, Dec 04, 2024 at 02:11:28PM +0100, Tommaso Merciai wrote:
> Hi Dmitry,
>
> On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote:
> > On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote:
> > > Hi Liu Ying,
> > > Thanks for your review.
> > >
> > > On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote:
> > > > On 12/04/2024, tomm.merciai@gmail.com wrote:
> > > > > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > > > >
> > > > > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > > > > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > > > > format by selecting the LVDS input format based on the LVDS data mapping
> > > > > and thereby support both JEIDA and VESA input formats.
> > > >
> > > > ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
> > > > this patch actually only adds vesa-24 support. So, to be more
> > > > specific, the patch subject and commit message should reflect
> > > > this rather than claim "Support VESA input format".
> > >
> > > Fully agree, thanks.
> > > I will fix that in v2 specifying vesa-24 like you suggest.
> > >
> > > >
> > > > >
> > > > > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > > >
> > > > Can you please send this patch with your Renesas email address
> > > > instead of Gmail email address?
> > > > Otherwise, add a Signed-off-by tag with your Gmail email address.
> > >
> > > Thanks, for the point.
> > > What about adding Acked-by: from my renesas email address?
> >
> > Acked-by has a different meaning. I'd say that generally it's okay to
> > have this light mismatch, see [1] or any of the emails that B4 generates
> > for web-based submission.
> >
> > [1] https://lore.kernel.org/dri-devel/20241121164858.457921-1-robdclark@gmail.com/
>
> Thanks for sharing this example and for the clarification.
> This is similar to my case :)
>
> Then v1 procedure is correct?
> I can use the same formatting (From: Sob:) for sending v2?
I think so
>
> Thanks & Regards,
> Tommaso
> >
> > >
> >
> > --
> > With best wishes
> > Dmitry
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 13:33 ` Dmitry Baryshkov
@ 2024-12-04 13:36 ` Tommaso Merciai
0 siblings, 0 replies; 16+ messages in thread
From: Tommaso Merciai @ 2024-12-04 13:36 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Liu Ying, linux-renesas-soc, dri-devel, biju.das.jz,
Tommaso Merciai, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, linux-kernel
On Wed, Dec 04, 2024 at 03:33:09PM +0200, Dmitry Baryshkov wrote:
> On Wed, Dec 04, 2024 at 02:11:28PM +0100, Tommaso Merciai wrote:
> > Hi Dmitry,
> >
> > On Wed, Dec 04, 2024 at 01:53:44PM +0200, Dmitry Baryshkov wrote:
> > > On Wed, Dec 04, 2024 at 11:37:05AM +0100, Tommaso Merciai wrote:
> > > > Hi Liu Ying,
> > > > Thanks for your review.
> > > >
> > > > On Wed, Dec 04, 2024 at 11:34:23AM +0800, Liu Ying wrote:
> > > > > On 12/04/2024, tomm.merciai@gmail.com wrote:
> > > > > > From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > > > > >
> > > > > > Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > > > > > it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> > > > > > format by selecting the LVDS input format based on the LVDS data mapping
> > > > > > and thereby support both JEIDA and VESA input formats.
> > > > >
> > > > > ite,it6263.yaml says IT6263 supports vesa-24 and vesa-30, while
> > > > > this patch actually only adds vesa-24 support. So, to be more
> > > > > specific, the patch subject and commit message should reflect
> > > > > this rather than claim "Support VESA input format".
> > > >
> > > > Fully agree, thanks.
> > > > I will fix that in v2 specifying vesa-24 like you suggest.
> > > >
> > > > >
> > > > > >
> > > > > > Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > > > >
> > > > > Can you please send this patch with your Renesas email address
> > > > > instead of Gmail email address?
> > > > > Otherwise, add a Signed-off-by tag with your Gmail email address.
> > > >
> > > > Thanks, for the point.
> > > > What about adding Acked-by: from my renesas email address?
> > >
> > > Acked-by has a different meaning. I'd say that generally it's okay to
> > > have this light mismatch, see [1] or any of the emails that B4 generates
> > > for web-based submission.
> > >
> > > [1] https://lore.kernel.org/dri-devel/20241121164858.457921-1-robdclark@gmail.com/
> >
> > Thanks for sharing this example and for the clarification.
> > This is similar to my case :)
> >
> > Then v1 procedure is correct?
> > I can use the same formatting (From: Sob:) for sending v2?
>
> I think so
Oks, thanks for the feedback.
Regards,
Tommaso
>
> >
> > Thanks & Regards,
> > Tommaso
> > >
> > > >
> > >
> > > --
> > > With best wishes
> > > Dmitry
>
> --
> With best wishes
> Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-04 6:45 ` Biju Das
@ 2024-12-05 9:02 ` Liu Ying
2024-12-05 11:42 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Liu Ying @ 2024-12-05 9:02 UTC (permalink / raw)
To: Biju Das, Dmitry Baryshkov, tomm.merciai@gmail.com
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
On 12/04/2024, Biju Das wrote:
> Hi Liu Ying,
Hi Biju,
>
>> -----Original Message-----
>> From: Liu Ying <victor.liu@nxp.com>
>> Sent: 04 December 2024 03:43
>> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>>
>> On 12/04/2024, Dmitry Baryshkov wrote:
>>> On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
>>>> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
>>>>
>>>> Introduce it6263_is_input_bus_fmt_valid() and refactor the
>>>> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
>>>> format by selecting the LVDS input format based on the LVDS data
>>>> mapping and thereby support both JEIDA and VESA input formats.
>>>
>>> For the patch itself,
>>>
>>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>>
>>> A more generic question: is the bridge limited to 4 lanes or does it
>>> support 3-lane or 5-lane configurations?
>>
>> According to ite,it6263.yaml, the bridge supports all the data mappings(jeida-{18,24,30} and vesa-
>> {24,30}) listed in lvds-data-mapping.yaml. lvds-data-mapping.yaml specifies the data lanes(3/4/5)
>> used by each of the data mappings. So, the bridge supports 3, 4 or 5 data lanes.
>
> In Renesas SMARC RZ/G3E LVDS add on board, only 4 LVDS Rx lanes connected. The 5th one is unconnected.
> What is the situation in your board Liu Ying?
The adapter cards I'm using to connect with i.MX8MP EVK have only 4
LVDS data lanes routed out.
>
> Cheers,
> Biju
--
Regards,
Liu Ying
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-05 9:02 ` Liu Ying
@ 2024-12-05 11:42 ` Dmitry Baryshkov
2024-12-05 12:19 ` Biju Das
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-12-05 11:42 UTC (permalink / raw)
To: Liu Ying
Cc: Biju Das, tomm.merciai@gmail.com,
linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
On Thu, 5 Dec 2024 at 11:01, Liu Ying <victor.liu@nxp.com> wrote:
>
> On 12/04/2024, Biju Das wrote:
> > Hi Liu Ying,
>
> Hi Biju,
>
> >
> >> -----Original Message-----
> >> From: Liu Ying <victor.liu@nxp.com>
> >> Sent: 04 December 2024 03:43
> >> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
> >>
> >> On 12/04/2024, Dmitry Baryshkov wrote:
> >>> On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
> >>>> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> >>>>
> >>>> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> >>>> it6263_bridge_atomic_get_input_bus_fmts() function to support VESA
> >>>> format by selecting the LVDS input format based on the LVDS data
> >>>> mapping and thereby support both JEIDA and VESA input formats.
> >>>
> >>> For the patch itself,
> >>>
> >>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> >>>
> >>> A more generic question: is the bridge limited to 4 lanes or does it
> >>> support 3-lane or 5-lane configurations?
> >>
> >> According to ite,it6263.yaml, the bridge supports all the data mappings(jeida-{18,24,30} and vesa-
> >> {24,30}) listed in lvds-data-mapping.yaml. lvds-data-mapping.yaml specifies the data lanes(3/4/5)
> >> used by each of the data mappings. So, the bridge supports 3, 4 or 5 data lanes.
> >
> > In Renesas SMARC RZ/G3E LVDS add on board, only 4 LVDS Rx lanes connected. The 5th one is unconnected.
> > What is the situation in your board Liu Ying?
>
> The adapter cards I'm using to connect with i.MX8MP EVK have only 4
> LVDS data lanes routed out.
What about the bridge SoC. I don't understand why the driver gets
limited by a particular add-on card.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: [PATCH] drm/bridge: ite-it6263: Support VESA input format
2024-12-05 11:42 ` Dmitry Baryshkov
@ 2024-12-05 12:19 ` Biju Das
0 siblings, 0 replies; 16+ messages in thread
From: Biju Das @ 2024-12-05 12:19 UTC (permalink / raw)
To: Dmitry Baryshkov, Liu Ying
Cc: tomm.merciai@gmail.com, linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, Tommaso Merciai, Andrzej Hajda,
Neil Armstrong, Robert Foss, laurent.pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
linux-kernel@vger.kernel.org
Hi Dmitry Baryshkov,
> -----Original Message-----
> From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Sent: 05 December 2024 11:43
> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input format
>
> On Thu, 5 Dec 2024 at 11:01, Liu Ying <victor.liu@nxp.com> wrote:
> >
> > On 12/04/2024, Biju Das wrote:
> > > Hi Liu Ying,
> >
> > Hi Biju,
> >
> > >
> > >> -----Original Message-----
> > >> From: Liu Ying <victor.liu@nxp.com>
> > >> Sent: 04 December 2024 03:43
> > >> Subject: Re: [PATCH] drm/bridge: ite-it6263: Support VESA input
> > >> format
> > >>
> > >> On 12/04/2024, Dmitry Baryshkov wrote:
> > >>> On Tue, Dec 03, 2024 at 06:21:29PM +0100, tomm.merciai@gmail.com wrote:
> > >>>> From: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> > >>>>
> > >>>> Introduce it6263_is_input_bus_fmt_valid() and refactor the
> > >>>> it6263_bridge_atomic_get_input_bus_fmts() function to support
> > >>>> VESA format by selecting the LVDS input format based on the LVDS
> > >>>> data mapping and thereby support both JEIDA and VESA input formats.
> > >>>
> > >>> For the patch itself,
> > >>>
> > >>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> > >>>
> > >>> A more generic question: is the bridge limited to 4 lanes or does
> > >>> it support 3-lane or 5-lane configurations?
> > >>
> > >> According to ite,it6263.yaml, the bridge supports all the data
> > >> mappings(jeida-{18,24,30} and vesa-
> > >> {24,30}) listed in lvds-data-mapping.yaml. lvds-data-mapping.yaml
> > >> specifies the data lanes(3/4/5) used by each of the data mappings. So, the bridge supports 3, 4
> or 5 data lanes.
> > >
> > > In Renesas SMARC RZ/G3E LVDS add on board, only 4 LVDS Rx lanes connected. The 5th one is
> unconnected.
> > > What is the situation in your board Liu Ying?
> >
> > The adapter cards I'm using to connect with i.MX8MP EVK have only 4
> > LVDS data lanes routed out.
>
> What about the bridge SoC. I don't understand why the driver gets limited by a particular add-on card.
Bridge SoC supports up to 5 Rx Lanes. But vendors do the wiring to bridge SoC and
currently as far as we know there are 2 boards with ITE 6263 bridge SoC and both of
them has 4 LVDS rx lanes connected and both vesa-24 and Jeida-24 formats are tested.
Cheers,
Biju
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-12-05 12:19 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 17:21 [PATCH] drm/bridge: ite-it6263: Support VESA input format tomm.merciai
2024-12-03 17:37 ` Dmitry Baryshkov
2024-12-04 3:42 ` Liu Ying
2024-12-04 6:45 ` Biju Das
2024-12-05 9:02 ` Liu Ying
2024-12-05 11:42 ` Dmitry Baryshkov
2024-12-05 12:19 ` Biju Das
2024-12-04 3:34 ` Liu Ying
2024-12-04 6:27 ` Biju Das
2024-12-04 6:47 ` Liu Ying
2024-12-04 10:37 ` Tommaso Merciai
2024-12-04 11:53 ` Dmitry Baryshkov
2024-12-04 13:11 ` Tommaso Merciai
2024-12-04 13:33 ` Dmitry Baryshkov
2024-12-04 13:36 ` Tommaso Merciai
2024-12-04 8:11 ` Tommaso Merciai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox