All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Wunderlich <linux@fw-web.de>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: Frank Wunderlich <frank-w@public-files.de>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org
Subject: [PATCH v3 09/22] arm64: dts: mediatek: mt7988: Add t-phy for ssusb1
Date: Tue, 17 Dec 2024 10:12:23 +0100	[thread overview]
Message-ID: <20241217091238.16032-10-linux@fw-web.de> (raw)
In-Reply-To: <20241217091238.16032-1-linux@fw-web.de>

From: Frank Wunderlich <frank-w@public-files.de>

USB controller needs phys for working properly.
On mt7988 ssusb0 uses a xs-phy, ssusb uses t-phy.
For now add the t-phy for ssusb1. We can reuse the mt7986 compatible
here.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 25 +++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index f8b01f3fff32..209d170bce7f 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -349,6 +349,8 @@ usb@11200000 {
 				 <&infracfg CLK_INFRA_133M_USB_HCK_CK_P1>,
 				 <&infracfg CLK_INFRA_USB_XHCI_CK_P1>;
 			clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck";
+			phys = <&tphyu2port0 PHY_TYPE_USB2>,
+			       <&tphyu3port0 PHY_TYPE_USB3>;
 			status = "disabled";
 		};
 
@@ -371,6 +373,29 @@ mmc0: mmc@11230000 {
 			status = "disabled";
 		};
 
+		t-phy@11c50000 {
+			compatible = "mediatek,mt7986-tphy",
+				     "mediatek,generic-tphy-v2";
+			#address-cells = <2>;
+			#size-cells = <2>;
+			ranges;
+			status = "disabled";
+
+			tphyu2port0: usb-phy@11c50000 {
+				reg = <0 0x11c50000 0 0x700>;
+				clocks = <&infracfg CLK_INFRA_USB_UTMI_CK_P1>;
+				clock-names = "ref";
+				#phy-cells = <1>;
+			};
+
+			tphyu3port0: usb-phy@11c50700 {
+				reg = <0 0x11c50700 0 0x900>;
+				clocks = <&infracfg CLK_INFRA_USB_PIPE_CK_P1>;
+				clock-names = "ref";
+				#phy-cells = <1>;
+			};
+		};
+
 		clock-controller@11f40000 {
 			compatible = "mediatek,mt7988-xfi-pll";
 			reg = <0 0x11f40000 0 0x1000>;
-- 
2.43.0



WARNING: multiple messages have this Message-ID (diff)
From: Frank Wunderlich <linux@fw-web.de>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 09/22] arm64: dts: mediatek: mt7988: Add t-phy for ssusb1
Date: Tue, 17 Dec 2024 10:12:23 +0100	[thread overview]
Message-ID: <20241217091238.16032-10-linux@fw-web.de> (raw)
In-Reply-To: <20241217091238.16032-1-linux@fw-web.de>

From: Frank Wunderlich <frank-w@public-files.de>

USB controller needs phys for working properly.
On mt7988 ssusb0 uses a xs-phy, ssusb uses t-phy.
For now add the t-phy for ssusb1. We can reuse the mt7986 compatible
here.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 25 +++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index f8b01f3fff32..209d170bce7f 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -349,6 +349,8 @@ usb@11200000 {
 				 <&infracfg CLK_INFRA_133M_USB_HCK_CK_P1>,
 				 <&infracfg CLK_INFRA_USB_XHCI_CK_P1>;
 			clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck";
+			phys = <&tphyu2port0 PHY_TYPE_USB2>,
+			       <&tphyu3port0 PHY_TYPE_USB3>;
 			status = "disabled";
 		};
 
@@ -371,6 +373,29 @@ mmc0: mmc@11230000 {
 			status = "disabled";
 		};
 
+		t-phy@11c50000 {
+			compatible = "mediatek,mt7986-tphy",
+				     "mediatek,generic-tphy-v2";
+			#address-cells = <2>;
+			#size-cells = <2>;
+			ranges;
+			status = "disabled";
+
+			tphyu2port0: usb-phy@11c50000 {
+				reg = <0 0x11c50000 0 0x700>;
+				clocks = <&infracfg CLK_INFRA_USB_UTMI_CK_P1>;
+				clock-names = "ref";
+				#phy-cells = <1>;
+			};
+
+			tphyu3port0: usb-phy@11c50700 {
+				reg = <0 0x11c50700 0 0x900>;
+				clocks = <&infracfg CLK_INFRA_USB_PIPE_CK_P1>;
+				clock-names = "ref";
+				#phy-cells = <1>;
+			};
+		};
+
 		clock-controller@11f40000 {
 			compatible = "mediatek,mt7988-xfi-pll";
 			reg = <0 0x11f40000 0 0x1000>;
-- 
2.43.0



  parent reply	other threads:[~2024-12-17  9:31 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-17  9:12 [PATCH v3 00/22] continue mt7988 devicetree work Frank Wunderlich
2024-12-17  9:12 ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 01/22] arm64: dts: mediatek: mt7988: Add reserved memory Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 02/22] arm64: dts: mediatek: mt7988: Add mmc support Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 03/22] arm64: dts: mediatek: mt7988: Add lvts node Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 04/22] arm64: dts: mediatek: mt7988: Add thermal-zone Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 05/22] arm64: dts: mediatek: mt7988: Add missing clock-div property for i2c Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 06/22] arm64: dts: mediatek: mt7988: Add mcu-sys node for cpu Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 07/22] arm64: dts: mediatek: mt7988: Add CPU OPP table for clock scaling Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 08/22] arm64: dts: mediatek: mt7988: Disable usb controllers by default Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` Frank Wunderlich [this message]
2024-12-17  9:12   ` [PATCH v3 09/22] arm64: dts: mediatek: mt7988: Add t-phy for ssusb1 Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 10/22] arm64: dts: mediatek: mt7988: Add pcie nodes Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 11/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable watchdog Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 12/22] arm64: dts: mediatek: mt7988a-bpi-r4: Add fixed regulators for 1v8 and 3v3 Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 13/22] arm64: dts: mediatek: mt7988a-bpi-r4: Add dt overlays for sd + emmc Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 14/22] arm64: dts: mediatek: mt7988a-bpi-r4: Add thermal configuration Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 15/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable serial0 debug uart Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 16/22] arm64: dts: mediatek: mt7988a-bpi-r4: Add default UART stdout Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 17/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable I2C controllers Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 18/22] arm64: dts: mediatek: mt7988a-bpi-r4: Add PCA9545 I2C Mux Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 19/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable t-phy for ssusb1 Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 20/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable ssusb1 on bpi-r4 Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 21/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable pwm Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-17  9:12 ` [PATCH v3 22/22] arm64: dts: mediatek: mt7988a-bpi-r4: Enable pcie Frank Wunderlich
2024-12-17  9:12   ` Frank Wunderlich
2024-12-18 14:10 ` [PATCH v3 00/22] continue mt7988 devicetree work AngeloGioacchino Del Regno
2024-12-18 14:10   ` AngeloGioacchino Del Regno
2025-01-02 12:46 ` AngeloGioacchino Del Regno
2025-01-02 12:46   ` 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=20241217091238.16032-10-linux@fw-web.de \
    --to=linux@fw-web.de \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frank-w@public-files.de \
    --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=matthias.bgg@gmail.com \
    --cc=robh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.