From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Aradhya Bhatia <a-bhatia1@ti.com>, Jyri Sarha <jyri.sarha@iki.fi>,
Rob Herring <robh+dt@kernel.org>, David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel@ffwll.ch>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Nishanth Menon <nm@ti.com>,
Devicetree List <devicetree@vger.kernel.org>,
Vignesh Raghavendra <vigneshr@ti.com>,
Devarsh Thakkar <devarsht@ti.com>,
Linux Kernel List <linux-kernel@vger.kernel.org>,
DRI Development List <dri-devel@lists.freedesktop.org>,
Rahul T R <r-ravikumar@ti.com>
Subject: Re: [PATCH v3 2/2] drm/tidss: Add support for AM625 DSS
Date: Tue, 9 Aug 2022 09:31:46 +0300 [thread overview]
Message-ID: <1a394a4d-1099-400f-2b52-e7a02e379cba@ideasonboard.com> (raw)
In-Reply-To: <cb9ada9f-9673-2039-c22b-fa0d3345fe41@ti.com>
On 09/08/2022 09:08, Aradhya Bhatia wrote:
> Hi Tomi,
>
> On 28-Jul-22 17:34, Tomi Valkeinen wrote:
>> On 27/06/2022 18:12, Aradhya Bhatia wrote:
>>> Add support for the DSS IP on TI's new AM625 SoC in the tidss driver.
>>>
>>> Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
>>> Reviewed-by: Rahul T R <r-ravikumar@ti.com>
>>> ---
>>> drivers/gpu/drm/tidss/tidss_dispc.c | 56 ++++++++++++++++++++++++++++-
>>> drivers/gpu/drm/tidss/tidss_dispc.h | 2 ++
>>> drivers/gpu/drm/tidss/tidss_drv.c | 1 +
>>> 3 files changed, 58 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c
>>> b/drivers/gpu/drm/tidss/tidss_dispc.c
>>> index dae47853b728..f084f0688a54 100644
>>> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
>>> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
>>> @@ -272,6 +272,55 @@ const struct dispc_features dispc_j721e_feats = {
>>> .vid_order = { 1, 3, 0, 2 },
>>> };
>>> +const struct dispc_features dispc_am625_feats = {
>>> + .max_pclk_khz = {
>>> + [DISPC_VP_DPI] = 165000,
>>> + [DISPC_VP_OLDI] = 165000,
>>> + },
>>> +
>>> + .scaling = {
>>> + .in_width_max_5tap_rgb = 1280,
>>> + .in_width_max_3tap_rgb = 2560,
>>> + .in_width_max_5tap_yuv = 2560,
>>> + .in_width_max_3tap_yuv = 4096,
>>> + .upscale_limit = 16,
>>> + .downscale_limit_5tap = 4,
>>> + .downscale_limit_3tap = 2,
>>> + /*
>>> + * The max supported pixel inc value is 255. The value
>>> + * of pixel inc is calculated like this: 1+(xinc-1)*bpp.
>>> + * The maximum bpp of all formats supported by the HW
>>> + * is 8. So the maximum supported xinc value is 32,
>>> + * because 1+(32-1)*8 < 255 < 1+(33-1)*4.
>>> + */
>>> + .xinc_max = 32,
>>> + },
>>> +
>>> + .subrev = DISPC_AM625,
>>> +
>>> + .common = "common",
>>> + .common_regs = tidss_am65x_common_regs,
>>> +
>>> + .num_vps = 2,
>>> + .vp_name = { "vp1", "vp2" },
>>> + .ovr_name = { "ovr1", "ovr2" },
>>> + .vpclk_name = { "vp1", "vp2" },
>>> + .vp_bus_type = { DISPC_VP_OLDI, DISPC_VP_DPI },
>>
>> This looks correct, but with the two OLDI TXes, I think there will be
>> some interesting issues.
>>
>> The tidss_kms.c associates a DSS VP and a DT port, but that's no
>> longer true if you add the ports for both OLDI TXes, as they both use
>> the same VP. I think fixing that won't affect this patch, though, and
>> merging this patch will, afaik, enable similar DSS functionality as we
>> have for AM65x.
>>
>> So, I think these two patches could be merged, or we could wait a bit
>> until the OLDI situation becomes more clear. Up to you. In any case,
>> for both patches:
>>
>> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\
>
> Thank you for the review!
>
> This patch set is required for the dss DT patches to be upstreamed for
> the AM625-SK, so I would like them to get merged.
>
> Since these were posted in the previous merge window, I will re-send
> with your tag.
I'd like to understand better the dual OLDI TX case before merging any
AM625 dss changes.
At the moment you have only one port in the DT for the OLDI TX for
AM625, right? I don't see how that is supposed to work as there are two
OLDI outputs. And if we do add a new port, it perhaps makes sense to
have two OLDI TX ports as ports 0 and 1, and the DPI as port 2, which is
then different from AM65x.
Tomi
next prev parent reply other threads:[~2022-08-09 6:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-27 15:11 [PATCH v3 0/2] Add DSS support for AM625 SoC Aradhya Bhatia
2022-06-27 15:11 ` [PATCH v3 1/2] dt-bindings: display: ti,am65x-dss: Add am625 dss compatible Aradhya Bhatia
2022-06-29 10:40 ` Krzysztof Kozlowski
2022-06-27 15:12 ` [PATCH v3 2/2] drm/tidss: Add support for AM625 DSS Aradhya Bhatia
2022-07-28 12:04 ` Tomi Valkeinen
2022-08-09 6:08 ` Aradhya Bhatia
2022-08-09 6:31 ` Tomi Valkeinen [this message]
2022-08-09 9:21 ` Aradhya Bhatia
2022-08-09 9:57 ` Tomi Valkeinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a394a4d-1099-400f-2b52-e7a02e379cba@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=a-bhatia1@ti.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=devarsht@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jyri.sarha@iki.fi \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=r-ravikumar@ti.com \
--cc=robh+dt@kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®