From: Aradhya Bhatia <aradhya.bhatia@linux.dev>
To: Devarsh Thakkar <devarsht@ti.com>,
jyri.sarha@iki.fi, tomi.valkeinen@ideasonboard.com,
airlied@gmail.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de,
dri-devel@lists.freedesktop.org, simona@ffwll.ch,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org
Cc: praneeth@ti.com, vigneshr@ti.com, s-jain1@ti.com,
r-donadkar@ti.com, j-choudhary@ti.com, h-shenoy@ti.com
Subject: Re: [PATCH 2/2] drm/tidss: Add support for AM62L display subsystem
Date: Sat, 18 Jan 2025 14:57:44 +0530 [thread overview]
Message-ID: <eab600f6-bfc2-489c-b384-5b620164a556@linux.dev> (raw)
In-Reply-To: <20241231090432.3649158-3-devarsht@ti.com>
Hi Devarsh,
Thanks for the patches.
On 31/12/24 14:34, Devarsh Thakkar wrote:
> Enable display for AM62L DSS [1] which supports only a single display
> pipeline using a single overlay manager, single video port and a single
> video lite pipeline which does not support scaling.
>
> The output of video port is routed to SoC boundary via DPI interface and
> the DPI signals from the video port are also routed to DSI Tx controller
> present within the SoC.
>
> [1]: Section 11.7 (Display Subsystem and Peripherals)
> Link : https://www.ti.com/lit/pdf/sprujb4
>
> Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
> ---
> drivers/gpu/drm/tidss/tidss_dispc.c | 34 +++++++++++++++++++++++++++++
> drivers/gpu/drm/tidss/tidss_dispc.h | 2 ++
> drivers/gpu/drm/tidss/tidss_drv.c | 1 +
> 3 files changed, 37 insertions(+)
>
> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
> index cacb5f3d8085..cd322d60b825 100644
> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
> @@ -376,6 +376,35 @@ const struct dispc_features dispc_am62a7_feats = {
> .vid_order = { 1, 0 },
> };
>
> +const struct dispc_features dispc_am62l_feats = {
> + .max_pclk_khz = {
> + [DISPC_VP_DPI] = 165000,
The TRM mentions that the max the VP PLL can go is 150MHz, so maybe you
might need to update this.
That said, as far as I understand, the IP itself can support 165 MHz,
and I am wondering, what would we do if there comes out a new SoC that
uses AM62L DSS as is, but just bumps up the PLL capacity to 165MHz.
It would be odd to have a ditto feats structure with just the frequency
updated.
> + },
> +
> + .subrev = DISPC_AM62L,
> +
> + .common = "common",
> + .common_regs = tidss_am65x_common_regs,
Also, I don't think we should utilize this as is.
The AM62L common regions is different, and is, at best, a subset of the
AM65x/AM62x common register space.
For example, registers VID_IRQ{STATUS, ENABLE}_0 have been dropped,
along with VP_IRQ{STATUS, ENABLE}_1.
- Which brings to my next concern...
> +
> + .num_vps = 1,
> + .vp_name = { "vp1" },
> + .ovr_name = { "ovr1" },
> + .vpclk_name = { "vp1" },
> + .vp_bus_type = { DISPC_VP_DPI },
> +
> + .vp_feat = { .color = {
> + .has_ctm = true,
> + .gamma_size = 256,
> + .gamma_type = TIDSS_GAMMA_8BIT,
> + },
> + },
> +
> + .num_planes = 1,
> + .vid_name = { "vidl1" },
> + .vid_lite = { true },
> + .vid_order = { 0 },
...
Usually, VID1 is the first video pipeline, while VIDL1 remains the
second. Which is why vid1 occupies the index 0, and vidl1 occupies 1 -
even from the hardware perspective.
While AM62L has only one video (lite) pipeline - vidl1, and there is no
vid1, the hardware still treats vidl1 at index 1.
For example, the TRM has defined DISPC_VID_IRQ{STATUS, ENABLE}_1 (and
not _0) in the common region.
So, the vid_order here should be 1, not 0.
Regards
Aradhya
next prev parent reply other threads:[~2025-01-18 9:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-31 9:04 [PATCH 0/2] Add support for AM62L DSS Devarsh Thakkar
2024-12-31 9:04 ` [PATCH 1/2] dt-bindings: display: ti,am65x-dss: " Devarsh Thakkar
2025-01-02 8:22 ` Krzysztof Kozlowski
2025-01-24 8:20 ` Jayesh Choudhary
2025-02-03 12:34 ` Devarsh Thakkar
2024-12-31 9:04 ` [PATCH 2/2] drm/tidss: Add support for AM62L display subsystem Devarsh Thakkar
2025-01-06 9:28 ` Tomi Valkeinen
2025-01-18 9:27 ` Aradhya Bhatia [this message]
2025-01-28 13:16 ` Devarsh Thakkar
2025-02-04 15:33 ` Tomi Valkeinen
2025-02-05 5:53 ` Devarsh Thakkar
2025-02-05 6:56 ` Tomi Valkeinen
2025-01-06 9:29 ` [PATCH 0/2] Add support for AM62L DSS 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=eab600f6-bfc2-489c-b384-5b620164a556@linux.dev \
--to=aradhya.bhatia@linux.dev \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devarsht@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=h-shenoy@ti.com \
--cc=j-choudhary@ti.com \
--cc=jyri.sarha@iki.fi \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=praneeth@ti.com \
--cc=r-donadkar@ti.com \
--cc=robh@kernel.org \
--cc=s-jain1@ti.com \
--cc=simona@ffwll.ch \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tzimmermann@suse.de \
--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