[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250309132959.19045-14-ansuelsmth@gmail.com>
Date: Sun, 9 Mar 2025 14:29:44 +0100
From: Christian Marangi <ansuelsmth@...il.com>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Lee Jones <lee@...nel.org>,
Christian Marangi <ansuelsmth@...il.com>,
Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Daniel Danzberger <dd@...edd.com>,
Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>,
Nikita Shubin <nikita.shubin@...uefel.me>,
Guo Ren <guoren@...nel.org>,
Yangyu Chen <cyy@...self.name>,
Ben Hutchings <ben@...adent.org.uk>,
Felix Fietkau <nbd@....name>,
linux-clk@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-phy@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-usb@...r.kernel.org,
upstream@...oha.com
Subject: [PATCH 13/13] arm64: dts: airoha: en7581: add USB and SCU SSR nodes
Add SCU SSR and USB nodes required for USB support of Airoha EN7581. SCU
SSR node is required to read and configure the current Serdes mode of
the USB PHYs.
Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
---
arch/arm64/boot/dts/airoha/en7581.dtsi | 61 ++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/arch/arm64/boot/dts/airoha/en7581.dtsi b/arch/arm64/boot/dts/airoha/en7581.dtsi
index dfc12fa99748..5975da11ace0 100644
--- a/arch/arm64/boot/dts/airoha/en7581.dtsi
+++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
@@ -3,6 +3,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/en7523-clk.h>
+#include <dt-bindings/phy/phy.h>
#include <dt-bindings/reset/airoha,en7581-reset.h>
/ {
@@ -183,6 +184,10 @@ scuclk: clock-controller {
#clock-cells = <1>;
#reset-cells = <1>;
};
+
+ scu_ssr: system-controller {
+ compatible = "airoha,an7581-scu-ssr";
+ };
};
uart1: serial@...f0000 {
@@ -200,6 +205,62 @@ rng@...a1000 {
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
};
+ usb0: usb@...b0000 {
+ compatible = "mediatek,mtk-xhci";
+ reg = <0x0 0x1fab0000 0x0 0x3e00>,
+ <0x0 0x1fab3e00 0x0 0x100>;
+ reg-names = "mac", "ippc";
+ interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
+
+ phys = <&usb0_u2 PHY_TYPE_USB2>, <&usb0_u3 PHY_TYPE_USB3>;
+
+ status = "disabled";
+ };
+
+ phy@...c0000 {
+ compatible = "airoha,an7581-usb-phy";
+ reg = <0x0 0x1fac0000 0x0 0x10000>;
+
+ airoha,port-id = <0>;
+ airoha,scu-ssr = <&scu_ssr>;
+
+ usb0_u2: usb2-phy {
+ #phy-cells = <1>;
+ };
+
+ usb0_u3: usb3-phy {
+ #phy-cells = <1>;
+ };
+ };
+
+ usb1: usb@...d0000 {
+ compatible = "mediatek,mtk-xhci";
+ reg = <0x0 0x1fad0000 0x0 0x3e00>,
+ <0x0 0x1fad3e00 0x0 0x100>;
+ reg-names = "mac", "ippc";
+ interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
+
+ phys = <&usb1_u2 PHY_TYPE_USB2>, <&usb0_u3 PHY_TYPE_USB3>;
+
+ status = "disabled";
+ };
+
+ phy@...e0000 {
+ compatible = "airoha,an7581-usb-phy";
+ reg = <0x0 0x1fae0000 0x0 0x10000>;
+
+ airoha,port-id = <1>;
+ airoha,scu-ssr = <&scu_ssr>;
+
+ usb1_u2: usb2-phy {
+ #phy-cells = <1>;
+ };
+
+ usb1_u3: usb3-phy {
+ #phy-cells = <1>;
+ };
+ };
+
system-controller@...f0200 {
compatible = "airoha,en7581-gpio-sysctl", "syscon",
"simple-mfd";
--
2.48.1
Powered by blists - more mailing lists