Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	Luca Leonardo Scorcia <l.scorcia@gmail.com>,
	linux-mediatek@lists.infradead.org
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	CK Hu <ck.hu@mediatek.com>, Jitao shi <jitao.shi@mediatek.com>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 4/4] arm64: dts: mediatek: mt8167: Add DRM nodes
Date: Tue, 17 Nov 2026 14:00:33 +0100	[thread overview]
Message-ID: <911e4163-8a2c-4ca2-8903-8d3ddb7266e8@collabora.com> (raw)
In-Reply-To: <5715e9e5-857d-4104-aedd-9662da0fc0ab@kernel.org>

On 11/17/26 13:55, Krzysztof Kozlowski wrote:
> On 17/11/2026 13:53, AngeloGioacchino Del Regno wrote:
>> On 11/17/26 13:35, Krzysztof Kozlowski wrote:
>>> On 21/09/2026 13:38, Luca Leonardo Scorcia wrote:
>>>> Add all the DRM nodes required to get DSI and DPI to work on MT8167 SoC.
>>>>
>>>> Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com>
>>>> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>>>> ---
>>>>    arch/arm64/boot/dts/mediatek/mt8167.dtsi | 369 +++++++++++++++++++++++
>>>>    1 file changed, 369 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi
>>>> index 27cf32d7ae35..a50bae4307c1 100644
>>>> --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi
>>>> +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi
>>>> @@ -16,6 +16,22 @@
>>>>    / {
>>>>    	compatible = "mediatek,mt8167";
>>>>    
>>>> +	aliases {
>>>> +		aal0 = &aal;
>>>> +		ccorr0 = &ccorr;
>>>> +		color0 = &color;
>>>> +		dither0 = &dither;
>>>> +		dpi0 = &dpi0;
>>>> +		dpi1 = &dpi1;
>>>> +		dsi0 = &dsi;
>>>> +		gamma0 = &gamma;
>>>> +		ovl0 = &ovl0;
>>>> +		pwm0 = &disp_pwm;
>>>> +		rdma0 = &rdma0;
>>>> +		rdma1 = &rdma1;
>>>> +		wdma0 = &wdma;
>>>
>>> Folks, what is happening here? Why Mediatek is adding bunch of
>>> undocumented aliases? This should have never been accepted to Mediatek SoC.
>>>
>>
>> It's always been like this on MediaTek from day 1, what's up with that!?
> 
> I wrote what is wrong - they are undocumented. You were never allowed to
> add undocumented ABI, never. Even 10 years ago.
> 

Well, that's right.

> I don't know what is day 1 in this context, but for a few (5-8 years?)
> we do not allow more custom aliases. Neither new DTS users of these.
> 

That actually poses a severe issue, as mediatek-drm relies on aliases to find out
the instance number of the display controller components, on all SoCs.

Any advice on how to possibly resolve this without rewriting the entire thing?

Mapping that by mmio address in the driver seems too stupid/dirty/bad/etc.

Thanks,
Angelo


  reply	other threads:[~2026-11-17 13:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 11:38 [PATCH v2 0/4] Add support for the mt8167 display pipeline Luca Leonardo Scorcia
2026-09-21 11:38 ` [PATCH v2 1/4] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia
2026-09-25 13:24   ` Krzysztof Kozlowski
2026-11-17 12:52     ` Krzysztof Kozlowski
2026-11-16 15:01   ` Chun-Kuang Hu
2026-11-17 12:52   ` Krzysztof Kozlowski
2026-09-21 11:38 ` [PATCH v2 2/4] drm/mediatek: Add support for mt8167 Digital Parallel Interface Luca Leonardo Scorcia
2026-11-16 15:05   ` Chun-Kuang Hu
2026-09-21 11:38 ` [PATCH v2 3/4] soc: mediatek: mt8167-mmsys: add routes for all display paths Luca Leonardo Scorcia
2026-09-21 11:38 ` [PATCH v2 4/4] arm64: dts: mediatek: mt8167: Add DRM nodes Luca Leonardo Scorcia
2026-11-17 12:35   ` Krzysztof Kozlowski
2026-11-17 12:53     ` AngeloGioacchino Del Regno
2026-11-17 12:55       ` Krzysztof Kozlowski
2026-11-17 13:00         ` AngeloGioacchino Del Regno [this message]
2026-11-17 13:12           ` Krzysztof Kozlowski

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=911e4163-8a2c-4ca2-8903-8d3ddb7266e8@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=airlied@gmail.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jitao.shi@mediatek.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=l.scorcia@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mripard@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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