arm64: dts: qcom: sa8775p: add the first 1Gb ethernet interface
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 22 Jun 2023 12:01:39 +0000 (14:01 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 10 Jul 2023 04:26:43 +0000 (21:26 -0700)
Add the node for the first ethernet interface on sa8775p platforms.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/20230622120142.218055-3-brgl@bgdev.pl
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sa8775p.dtsi

index b6d95813c98c1a5be0b1fc5e35f3682946f0da63..59eedfc9c2cb4bd639ec8782f818983225dce0c7 100644 (file)
 
                        #freq-domain-cells = <1>;
                };
+
+               ethernet0: ethernet@23040000 {
+                       compatible = "qcom,sa8775p-ethqos";
+                       reg = <0x0 0x23040000 0x0 0x10000>,
+                             <0x0 0x23056000 0x0 0x100>;
+                       reg-names = "stmmaceth", "rgmii";
+
+                       interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+
+                       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 EMAC0_GDSC>;
+
+                       phys = <&serdes0>;
+                       phy-names = "serdes";
+
+                       iommus = <&apps_smmu 0x120 0xf>;
+
+                       snps,tso;
+                       snps,pbl = <32>;
+                       rx-fifo-depth = <16384>;
+                       tx-fifo-depth = <16384>;
+
+                       status = "disabled";
+               };
        };
 
        arch_timer: timer {