Add initial support for new target with the initial patch for ethernet support using pending upstream patches for PCS UNIPHY, PPE and EDMA. Only initramfs currently working as support for new SPI/NAND implementation, USB, CPUFreq and other devices is still unfinished and needs to be evaluated. Link: https://github.com/openwrt/openwrt/pull/17725 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
232 lines
5.8 KiB
Diff
232 lines
5.8 KiB
Diff
From 9f3d547ccaf1113244f9aeb1a849e553321869ea Mon Sep 17 00:00:00 2001
|
|
From: Lei Wei <quic_leiwei@quicinc.com>
|
|
Date: Tue, 14 May 2024 10:53:27 +0800
|
|
Subject: [PATCH 17/17] arm64: dts: qcom: Add IPQ9574 RDP433 port node
|
|
|
|
There are 6 PPE MAC ports available on RDP433. The port1-port4 are
|
|
connected with QCA8075 QUAD PHYs through UNIPHY0 PCS channel0-channel3.
|
|
The port5 is connected with Aquantia PHY through UNIPHY1 PCS channel0
|
|
and the port6 is connected with Aquantia PHY through UNIPHY2 PCS
|
|
channel0.
|
|
|
|
Change-Id: Ic16efdef2fe2cff7b1e80245619c0f82afb24cb9
|
|
Signed-off-by: Lei Wei <quic_leiwei@quicinc.com>
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 169 +++++++++++++++++++-
|
|
arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 +-
|
|
2 files changed, 169 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
|
|
index 1bb8d96c9a82..1bbe4c258c15 100644
|
|
--- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
|
|
@@ -3,11 +3,13 @@
|
|
* IPQ9574 RDP433 board device tree source
|
|
*
|
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
|
- * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
+ * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+
|
|
#include "ipq9574-rdp-common.dtsi"
|
|
|
|
/ {
|
|
@@ -15,6 +15,46 @@ / {
|
|
compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574";
|
|
};
|
|
|
|
+&mdio {
|
|
+ reset-gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
|
|
+ clock-frequency = <6250000>;
|
|
+ status = "okay";
|
|
+
|
|
+ ethernet-phy-package@0 {
|
|
+ compatible = "qcom,qca8075-package";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <0x10>;
|
|
+ qcom,package-mode = "qsgmii";
|
|
+
|
|
+ phy0: ethernet-phy@10 {
|
|
+ reg = <0x10>;
|
|
+ };
|
|
+
|
|
+ phy1: ethernet-phy@11 {
|
|
+ reg = <0x11>;
|
|
+ };
|
|
+
|
|
+ phy2: ethernet-phy@12 {
|
|
+ reg = <0x12>;
|
|
+ };
|
|
+
|
|
+ phy3: ethernet-phy@13 {
|
|
+ reg = <0x13>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ phy4: ethernet-phy@8 {
|
|
+ compatible ="ethernet-phy-ieee802.3-c45";
|
|
+ reg = <8>;
|
|
+ };
|
|
+
|
|
+ phy5: ethernet-phy@0 {
|
|
+ compatible ="ethernet-phy-ieee802.3-c45";
|
|
+ reg = <0>;
|
|
+ };
|
|
+};
|
|
+
|
|
&sdhc_1 {
|
|
pinctrl-0 = <&sdc_default_state>;
|
|
pinctrl-names = "default";
|
|
@@ -60,3 +100,130 @@ rclk-pins {
|
|
};
|
|
};
|
|
};
|
|
+
|
|
+&qcom_ppe {
|
|
+ ethernet-ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ phy-mode = "qsgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy0>;
|
|
+ pcs-handle = <&pcsuniphy0_ch0>;
|
|
+ clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT1_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT1_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT1_MAC_ARES>,
|
|
+ <&nsscc PORT1_RX_ARES>,
|
|
+ <&nsscc PORT1_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+
|
|
+ port@2 {
|
|
+ reg = <2>;
|
|
+ phy-mode = "qsgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy1>;
|
|
+ pcs-handle = <&pcsuniphy0_ch1>;
|
|
+ clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT2_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT2_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT2_MAC_ARES>,
|
|
+ <&nsscc PORT2_RX_ARES>,
|
|
+ <&nsscc PORT2_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+
|
|
+ port@3 {
|
|
+ reg = <3>;
|
|
+ phy-mode = "qsgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy2>;
|
|
+ pcs-handle = <&pcsuniphy0_ch2>;
|
|
+ clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT3_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT3_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT3_MAC_ARES>,
|
|
+ <&nsscc PORT3_RX_ARES>,
|
|
+ <&nsscc PORT3_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+
|
|
+ port@4 {
|
|
+ reg = <4>;
|
|
+ phy-mode = "qsgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy3>;
|
|
+ pcs-handle = <&pcsuniphy0_ch3>;
|
|
+ clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT4_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT4_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT4_MAC_ARES>,
|
|
+ <&nsscc PORT4_RX_ARES>,
|
|
+ <&nsscc PORT4_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+
|
|
+ port@5 {
|
|
+ reg = <5>;
|
|
+ phy-mode = "usxgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy4>;
|
|
+ pcs-handle = <&pcsuniphy1_ch0>;
|
|
+ clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT5_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT5_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT5_MAC_ARES>,
|
|
+ <&nsscc PORT5_RX_ARES>,
|
|
+ <&nsscc PORT5_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+
|
|
+ port@6 {
|
|
+ reg = <6>;
|
|
+ phy-mode = "usxgmii";
|
|
+ managed = "in-band-status";
|
|
+ phy-handle = <&phy5>;
|
|
+ pcs-handle = <&pcsuniphy2_ch0>;
|
|
+ clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
|
|
+ <&nsscc NSS_CC_PORT6_RX_CLK>,
|
|
+ <&nsscc NSS_CC_PORT6_TX_CLK>;
|
|
+ clock-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ resets = <&nsscc PORT6_MAC_ARES>,
|
|
+ <&nsscc PORT6_RX_ARES>,
|
|
+ <&nsscc PORT6_TX_ARES>;
|
|
+ reset-names = "port_mac",
|
|
+ "port_rx",
|
|
+ "port_tx";
|
|
+ };
|
|
+ };
|
|
+};
|
|
diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
|
|
index 61f9a7ee7282..5c7b47979b79 100644
|
|
--- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
|
|
@@ -903,7 +903,7 @@ pcsuniphy2_ch0: uniphy-ch@0 {
|
|
};
|
|
};
|
|
|
|
- ethernet@3a000000 {
|
|
+ qcom_ppe: ethernet@3a000000 {
|
|
compatible = "qcom,ipq9574-ppe";
|
|
reg = <0x3a000000 0xbef800>;
|
|
ranges;
|
|
--
|
|
2.45.2
|
|
|