arm64: dts: qcom: qcs8300: add the first 2.5G ethernet
authorYijie Yang <quic_yijiyang@quicinc.com>
Fri, 6 Dec 2024 01:35:04 +0000 (09:35 +0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 7 Jan 2025 16:18:40 +0000 (10:18 -0600)
Add the node for the first ethernet interface on qcs8300 platform.
Add the internal SGMII/SerDes PHY node as well.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
Link: https://lore.kernel.org/r/20241206-dts_qcs8300-v5-1-422e4fda292d@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs8300.dtsi

index 95ce347f6f8c46db674c59dc22a8e3f0904b3a3f..98fa5f0a8b8e4d3c6a8c89e452cae3700f5d4523 100644 (file)
                        clock-names = "apb_pclk";
                };
 
+               serdes0: phy@8909000 {
+                       compatible = "qcom,qcs8300-dwmac-sgmii-phy", "qcom,sa8775p-dwmac-sgmii-phy";
+                       reg = <0x0 0x08909000 0x0 0x00000e10>;
+                       clocks = <&gcc GCC_SGMI_CLKREF_EN>;
+                       clock-names = "sgmi_ref";
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
                pmu@9091000 {
                        compatible = "qcom,qcs8300-llcc-bwmon", "qcom,sc7280-llcc-bwmon";
                        reg = <0x0 0x9091000 0x0 0x1000>;
                        };
                };
 
+               ethernet0: ethernet@23040000 {
+                       compatible = "qcom,qcs8300-ethqos", "qcom,sa8775p-ethqos";
+                       reg = <0x0 0x23040000 0x0 0x00010000>,
+                             <0x0 0x23056000 0x0 0x00000100>;
+                       reg-names = "stmmaceth", "rgmii";
+
+                       interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 783 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq", "sfty";
+
+                       clocks = <&gcc GCC_EMAC0_AXI_CLK>,
+                                <&gcc GCC_EMAC0_SLV_AHB_CLK>,
+                                <&gcc GCC_EMAC0_PTP_CLK>,
+                                <&gcc GCC_EMAC0_PHY_AUX_CLK>;
+                       clock-names = "stmmaceth",
+                                     "pclk",
+                                     "ptp_ref",
+                                     "phyaux";
+                       power-domains = <&gcc GCC_EMAC0_GDSC>;
+
+                       phys = <&serdes0>;
+                       phy-names = "serdes";
+
+                       iommus = <&apps_smmu 0x120 0xf>;
+                       dma-coherent;
+
+                       snps,tso;
+                       snps,pbl = <32>;
+                       rx-fifo-depth = <16384>;
+                       tx-fifo-depth = <20480>;
+
+                       status = "disabled";
+               };
+
                nspa_noc: interconnect@260c0000 {
                        compatible = "qcom,qcs8300-nspa-noc";
                        reg = <0x0 0x260c0000 0x0 0x16080>;