arm64: dts: qcom: sc8280xp: Add ethernet nodes
authorAndrew Halaney <ahalaney@redhat.com>
Mon, 1 May 2023 20:51:04 +0000 (15:51 -0500)
committerBjorn Andersson <andersson@kernel.org>
Mon, 15 May 2023 02:02:10 +0000 (19:02 -0700)
This platform has 2 MACs integrated in it, go ahead and describe them.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230501205105.2518373-2-ahalaney@redhat.com
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index 8fa9fbfe5d0009b44b40e02f16e980dd848a8a2b..a2320f88079542eb0081fe55209d6799d64434c0 100644 (file)
                ranges = <0 0 0 0 0x10 0>;
                dma-ranges = <0 0 0 0 0x10 0>;
 
+               ethernet0: ethernet@20000 {
+                       compatible = "qcom,sc8280xp-ethqos";
+                       reg = <0x0 0x00020000 0x0 0x10000>,
+                             <0x0 0x00036000 0x0 0x100>;
+                       reg-names = "stmmaceth", "rgmii";
+
+                       clocks = <&gcc GCC_EMAC0_AXI_CLK>,
+                                <&gcc GCC_EMAC0_SLV_AHB_CLK>,
+                                <&gcc GCC_EMAC0_PTP_CLK>,
+                                <&gcc GCC_EMAC0_RGMII_CLK>;
+                       clock-names = "stmmaceth",
+                                     "pclk",
+                                     "ptp_ref",
+                                     "rgmii";
+
+                       interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 936 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq", "eth_lpi";
+
+                       iommus = <&apps_smmu 0x4c0 0xf>;
+                       power-domains = <&gcc EMAC_0_GDSC>;
+
+                       snps,tso;
+                       snps,pbl = <32>;
+                       rx-fifo-depth = <4096>;
+                       tx-fifo-depth = <4096>;
+
+                       status = "disabled";
+               };
+
                gcc: clock-controller@100000 {
                        compatible = "qcom,gcc-sc8280xp";
                        reg = <0x0 0x00100000 0x0 0x1f0000>;
 
                        status = "disabled";
                };
+
+               ethernet1: ethernet@23000000 {
+                       compatible = "qcom,sc8280xp-ethqos";
+                       reg = <0x0 0x23000000 0x0 0x10000>,
+                             <0x0 0x23016000 0x0 0x100>;
+                       reg-names = "stmmaceth", "rgmii";
+
+                       clocks = <&gcc GCC_EMAC1_AXI_CLK>,
+                                <&gcc GCC_EMAC1_SLV_AHB_CLK>,
+                                <&gcc GCC_EMAC1_PTP_CLK>,
+                                <&gcc GCC_EMAC1_RGMII_CLK>;
+                       clock-names = "stmmaceth",
+                                     "pclk",
+                                     "ptp_ref",
+                                     "rgmii";
+
+                       interrupts = <GIC_SPI 929 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 919 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq", "eth_lpi";
+
+                       iommus = <&apps_smmu 0x40 0xf>;
+                       power-domains = <&gcc EMAC_1_GDSC>;
+
+                       snps,tso;
+                       snps,pbl = <32>;
+                       rx-fifo-depth = <4096>;
+                       tx-fifo-depth = <4096>;
+
+                       status = "disabled";
+               };
        };
 
        sound: sound {