From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Chen-Yu Tsai <wenst@chromium.org>
Cc: matthias.bgg@gmail.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, kernel@collabora.com
Subject: Re: [PATCH 2/5] arm64: dts: mediatek: cherry: Assign dp-intf aliases
Date: Mon, 24 Apr 2023 09:19:25 +0200 [thread overview]
Message-ID: <8a3c0e35-b581-3405-ea2d-f8f8d9e432d9@collabora.com> (raw)
In-Reply-To: <CAGXv+5FMEphksTSLAy8=hDPGjC364dxD4_9qmw6aV4en-2d3ig@mail.gmail.com>
Il 24/04/23 09:17, Chen-Yu Tsai ha scritto:
> On Mon, Apr 24, 2023 at 3:03 PM AngeloGioacchino Del Regno
> <angelogioacchino.delregno@collabora.com> wrote:
>>
>> Il 21/04/23 08:46, Chen-Yu Tsai ha scritto:
>>> On Thu, Apr 20, 2023 at 5:45 PM AngeloGioacchino Del Regno
>>> <angelogioacchino.delregno@collabora.com> wrote:
>>>>
>>>> On Cherry boards, the IP at 0x1c015000 (dp_intf0) is used as primary
>>>> dp-intf, while the other at 0x1c113000 (dp_intf1) is used as secondary:
>>>> assign them to dp-intf{0,1} aliases respectively.
>>>>
>>>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>>>> ---
>>>> arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 2 ++
>>>
>>> This should be applied at the SoC level. The display pipeline is fixed in
>>> MMSYS, so it applies to all MT8195 devices.
>>>
>>
>> It's fixed in the MMSYS configuration/driver but - as far as I remember (I can
>> recheck on the datasheets) - the dp_intfX function can be inverted meaning that
>> the MMSYS paths can be configured such that DP_INTF0 becomes secondary and the
>> other becomes primary: this is why I am putting that into mt8195-cherry and not
>> mt8195.dtsi.
>
> Maybe that's possible, but the diagram in the datasheet suggests a fixed path.
>
> Either way, it's not actually the problem. My original reply is probably
> inaccurate. AFAIK the aliases are used to identify the individual hardware
> blocks, which otherwise have the same compatible string. So the numbering
> should be the same regardless of the design and/or routing.
Ack. Will move to mt8195.dtsi!
>
> Ideally this should be described with a proper graph though.
>
> ChenYu
>
>>
>> Regards,
>> Angelo
>>
>>>> 1 file changed, 2 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
>>>> index 0820e9ba3829..918380697a9a 100644
>>>> --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
>>>> +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
>>>> @@ -10,6 +10,8 @@
>>>>
>>>> / {
>>>> aliases {
>>>> + dp-intf0 = &dp_intf0;
>>>> + dp-intf1 = &dp_intf1;
>>>> i2c0 = &i2c0;
>>>> i2c1 = &i2c1;
>>>> i2c2 = &i2c2;
>>>> --
>>>> 2.40.0
>>>>
>>>>
>>>
>>
next prev parent reply other threads:[~2023-04-24 7:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 9:44 [PATCH 0/5] MT8195 Acer Tomato - devicetrees Part 3 AngeloGioacchino Del Regno
2023-04-20 9:44 ` [PATCH 1/5] arm64: dts: mediatek: cherry: Add platform thermal configuration AngeloGioacchino Del Regno
2023-04-21 7:37 ` Chen-Yu Tsai
2023-04-21 20:53 ` Nícolas F. R. A. Prado
2023-04-24 6:31 ` AngeloGioacchino Del Regno
2023-04-24 7:38 ` Chen-Yu Tsai
2023-04-24 7:40 ` AngeloGioacchino Del Regno
2023-04-20 9:44 ` [PATCH 2/5] arm64: dts: mediatek: cherry: Assign dp-intf aliases AngeloGioacchino Del Regno
2023-04-21 6:46 ` Chen-Yu Tsai
2023-04-24 7:03 ` AngeloGioacchino Del Regno
2023-04-24 7:17 ` Chen-Yu Tsai
2023-04-24 7:19 ` AngeloGioacchino Del Regno [this message]
2023-04-20 9:44 ` [PATCH 3/5] arm64: dts: mediatek: cherry: Configure eDP and internal display AngeloGioacchino Del Regno
2023-04-21 6:57 ` Chen-Yu Tsai
2023-04-20 9:44 ` [PATCH 4/5] arm64: dts: mediatek: cherry: Enable PCI-Express ports for WiFi AngeloGioacchino Del Regno
2023-04-21 7:07 ` Chen-Yu Tsai
2023-04-20 9:44 ` [PATCH 5/5] arm64: dts: mediatek: cherry-tomato-r1: Enable NVMe PCI-Express port AngeloGioacchino Del Regno
2023-04-21 7:59 ` Chen-Yu Tsai
2023-04-24 8:13 ` AngeloGioacchino Del Regno
2023-04-24 9:40 ` Chen-Yu Tsai
2023-04-24 9:59 ` AngeloGioacchino Del Regno
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=8a3c0e35-b581-3405-ea2d-f8f8d9e432d9@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=wenst@chromium.org \
/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