From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: 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: Frank Wunderlich <frank-w@public-files.de>,
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 5/5] arm64: dts: mediatek: mt7988: Add xsphy for ssusb0/pcie2
Date: Mon, 14 Apr 2025 12:27:30 +0200 [thread overview]
Message-ID: <e243cca4-40d7-4cd6-804a-7e63bb5581b0@collabora.com> (raw)
In-Reply-To: <20250413085806.8544-6-linux@fw-web.de>
Il 13/04/25 10:58, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w@public-files.de>
>
> First usb and third pcie controller on mt7988 need a xs-phy to work
> properly.
>
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> ---
> arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 39 +++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> index 88b56a24efca..10525d977007 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> @@ -334,6 +334,8 @@ usb@11190000 {
> <&infracfg CLK_INFRA_133M_USB_HCK>,
> <&infracfg CLK_INFRA_USB_XHCI>;
> clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck";
> + phys = <&xphyu2port0 PHY_TYPE_USB2>,
> + <&xphyu3port0 PHY_TYPE_USB3>;
> status = "disabled";
> };
>
> @@ -398,6 +400,9 @@ pcie2: pcie@11280000 {
> pinctrl-0 = <&pcie2_pins>;
> status = "disabled";
>
> + phys = <&xphyu3port0 PHY_TYPE_PCIE>;
> + phy-names = "pcie-phy";
> +
> #interrupt-cells = <1>;
> interrupt-map-mask = <0 0 0 0x7>;
> interrupt-map = <0 0 0 1 &pcie_intc2 0>,
> @@ -548,6 +553,40 @@ tphyu3port0: usb-phy@11c50700 {
> };
> };
>
> + topmisc: power-controller@11d10000 {
> + compatible = "mediatek,mt7988-topmisc", "syscon",
> + "mediatek,mt7988-power-controller";
> + reg = <0 0x11d10000 0 0x10000>;
> + #clock-cells = <1>;
> + #power-domain-cells = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> +
> + xs-phy@11e10000 {
That shall be just "phy@addr"
> + compatible = "mediatek,mt7988-xsphy",
> + "mediatek,xsphy";
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges;
> + status = "disabled";
> +
> + xphyu2port0: usb-phy@11e10000 {
Perhaps just u2port0/u3port0 like done on the other MediaTek SoC DTs is better
for consistency :-)
Cheers!
> + reg = <0 0x11e10000 0 0x400>;
> + clocks = <&infracfg CLK_INFRA_USB_UTMI>;
> + clock-names = "ref";
> + #phy-cells = <1>;
> + };
> +
> + xphyu3port0: usb-phy@11e13000 {
> + reg = <0 0x11e13400 0 0x500>;
> + clocks = <&infracfg CLK_INFRA_USB_PIPE>;
> + clock-names = "ref";
> + #phy-cells = <1>;
> + mediatek,syscon-type = <&topmisc 0x218 0>;
> + };
> + };
> +
> clock-controller@11f40000 {
> compatible = "mediatek,mt7988-xfi-pll";
> reg = <0 0x11f40000 0 0x1000>;
next prev parent reply other threads:[~2025-04-14 10:27 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
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 [this message]
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=e243cca4-40d7-4cd6-804a-7e63bb5581b0@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