From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: frank-w@public-files.de, Frank Wunderlich <linux@fw-web.de>,
Chunfeng Yun <chunfeng.yun@mediatek.com>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: Daniel Golle <daniel@makrotopia.org>,
Sam Shih <sam.shih@mediatek.com>,
MandyJH Liu <mandyjh.liu@mediatek.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC 3/5] dt-bindings: power: Add binding for MediaTek MT7988 topmisc power controller
Date: Tue, 15 Apr 2025 11:59:06 +0200 [thread overview]
Message-ID: <bbb81e79-95da-4cf9-9eef-7cbaea191ebb@collabora.com> (raw)
In-Reply-To: <2EA2BDB0-E1C9-49BC-98FC-5048905AA036@public-files.de>
Il 15/04/25 11:52, Frank Wunderlich ha scritto:
> Hi Angelo,
>
> Am 14. April 2025 12:25:23 MESZ schrieb AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>:
>> Il 13/04/25 10:58, Frank Wunderlich ha scritto:
>>> From: Frank Wunderlich <frank-w@public-files.de>
>>>
>>> Topmisc is a systemcontroller used for xs-phy and ethernet on mt7988.
>>> Add binding for it.
>>
>> That's the wrong binding... check mfd/syscon.yaml :-)
>>
>> P.S.: Is there any reset controller in topmisc? Any clock?
>> If yes, syscon.yaml is also wrong, and you need a driver for that.
>> Remember: If it turns out *later* that this has clk/resets and the
>> bindings are already set for just a syscon, it's gonna be way harder!
>>
>> Cheers,
>> Angelo
>
> Ok based on the power-domain-cells property i guessed powercontroller is the right place.
power-domain-cells, but without any power domain assignment, so that was wrong :)))
>
> But based on your suggestion i tried moving compatible to syscon binding and made dtbs_check here.
>
> I can confirm dropping the unexpected properties reported by syscon binding (power-domain-cells,clock-cells,adress-cells and size-cells) are not needed for function (xsphy and ethernet).
>
> For verifying that there are really no clocks/resets in topmisc (have not found it in public available register documents) i asked mtk (waiting for answer).
>
> Also got it working without the syscon compatible by changing ethernet driver too (after this change xsphy was also working).
Perfect, a bit of a cleanup and you're done, then!
Cheers!
>
> Eth:
> https://github.com/frank-w/BPI-Router-Linux/commit/d866e648717800b6f6395ad36c38f9effcf0498d
> Xsphy:
> <https://github.com/frank-w/BPI-Router-Linux/commit/0121a94df99700487704ca056b210b13db07e90c>
>
> regards Frank
next prev parent reply other threads:[~2025-04-15 10:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-13 8:58 [RFC 0/5] Add mt7988 XS-PHY Frank Wunderlich
2025-04-13 8:58 ` [RFC 1/5] dt-bindings: phy: mtk-xs-phy: Add mt7988 compatible Frank Wunderlich
2025-04-13 8:58 ` [RFC 2/5] dt-bindings: phy: mtk-xs-phy: support type switch by pericfg Frank Wunderlich
2025-04-13 8:58 ` [RFC 3/5] dt-bindings: power: Add binding for MediaTek MT7988 topmisc power controller Frank Wunderlich
2025-04-13 10:42 ` Rob Herring (Arm)
2025-04-14 10:25 ` AngeloGioacchino Del Regno
2025-04-15 9:52 ` Frank Wunderlich
2025-04-15 9:59 ` AngeloGioacchino Del Regno [this message]
2025-04-15 11:33 ` Frank Wunderlich
2025-04-15 14:03 ` Frank Wunderlich
2025-04-15 14:12 ` AngeloGioacchino Del Regno
2025-04-13 8:58 ` [RFC 4/5] phy: mediatek: xsphy: support type switch by pericfg Frank Wunderlich
2025-04-14 10:25 ` AngeloGioacchino Del Regno
2025-04-13 8:58 ` [RFC 5/5] arm64: dts: mediatek: mt7988: Add xsphy for ssusb0/pcie2 Frank Wunderlich
2025-04-14 10:27 ` AngeloGioacchino Del Regno
2025-04-14 10:57 ` Frank Wunderlich
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=bbb81e79-95da-4cf9-9eef-7cbaea191ebb@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=frank-w@public-files.de \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux@fw-web.de \
--cc=mandyjh.liu@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=sam.shih@mediatek.com \
--cc=vkoul@kernel.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;
as well as URLs for NNTP newsgroup(s).