From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Devarsh Thakkar <devarsht@ti.com>
Cc: praneeth@ti.com, vigneshr@ti.com, aradhya.bhatia@linux.dev,
s-jain1@ti.com, r-donadkar@ti.com, j-choudhary@ti.com,
h-shenoy@ti.com, jyri.sarha@iki.fi, 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
Subject: Re: [PATCH v3 3/3] drm/tidss: Add support for AM62L display subsystem
Date: Thu, 13 Mar 2025 11:41:22 +0200 [thread overview]
Message-ID: <74ffed53-d6df-437a-b997-62fef3ee4d00@ideasonboard.com> (raw)
In-Reply-To: <20250306132914.1469387-4-devarsht@ti.com>
Hi,
On 06/03/2025 15:29, 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>
> ---
> V3:
> - Rebase on top of
> 0002-drm-tidss-Update-infra-to-support-DSS7-cut-down-vers.patch
> - Use the generic "tidss_am65x_common_regs" as common reg space
> instead of creating a new one.
>
> V2:
> - Add separate common reg space for AM62L
> - Add separate irq enable/disable/read/clear helpers for AM62L
> - Use separate helper function for setting overlay attributes
> - Drop Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
> due to additional changes made in V2.
>
> drivers/gpu/drm/tidss/tidss_dispc.c | 46 +++++++++++++++++++++++++++++
> drivers/gpu/drm/tidss/tidss_dispc.h | 2 ++
> drivers/gpu/drm/tidss/tidss_drv.c | 1 +
> 3 files changed, 49 insertions(+)
>
> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
> index 9b46403dbb0c..0ca0c2106715 100644
> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
> @@ -440,6 +440,47 @@ 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,
> + },
> +
> + .subrev = DISPC_AM62L,
> +
> + .common = "common",
> + .common_regs = tidss_am65x_common_regs,
> +
> + .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 = 2,
> +
> + .vid_info = {
> + {
> + .vid_name = "vid",
> + .vid_lite = false,
> + .is_present = false,
> + },
> + {
> + .vid_name = "vidl1",
> + .vid_lite = true,
> + .is_present = true,
> + }
> + },
I don't think this is a good idea. Now you have tidss->num_planes 1, and
feat->num_planes 2. It get's very confusing.
The naming is also mixed up. You have "vid_info" field, which has
"plane_info" entries...
My suggestion is to have entries in vid_info only for the instantiated
vids, like this:
struct vid_info {
u32 hw_id;
const char *name; /* Should match dt reg names */
bool is_lite;
};
While at it, let's change the num_planes name in the feat struct too, to
num_vids. This will also highlight all the places in the code that use
the vid structs.
For AM62L it would be:
.num_vids = 1,
{
.hw_id = 1,
.name = "vidl1",
.is_lite = true,
}
Tomi
prev parent reply other threads:[~2025-03-13 9:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-06 13:29 [PATCH v3 0/3] Add support for AM62L DSS Devarsh Thakkar
2025-03-06 13:29 ` [PATCH v3 1/3] dt-bindings: display: ti,am65x-dss: " Devarsh Thakkar
2025-03-06 13:29 ` [PATCH v3 2/3] drm/tidss: Update infrastructure to support K3 DSS cut-down versions Devarsh Thakkar
2025-03-06 13:29 ` [PATCH v3 3/3] drm/tidss: Add support for AM62L display subsystem Devarsh Thakkar
2025-03-13 9:41 ` Tomi Valkeinen [this message]
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=74ffed53-d6df-437a-b997-62fef3ee4d00@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=aradhya.bhatia@linux.dev \
--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=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