arm64: dts: qcom: sm8150: add ethernet node
authorVinod Koul <vkoul@kernel.org>
Fri, 25 Mar 2022 16:35:36 +0000 (22:05 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 Apr 2022 14:21:16 +0000 (09:21 -0500)
SM8150 SoC supports ethqos ethernet controller so add the node for it

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
[bhsharma: Correct ethernet interrupt numbers and add power-domain]
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220325163537.1579969-2-bhupesh.sharma@linaro.org
arch/arm64/boot/dts/qcom/sm8150.dtsi

index 068cf3e..f0c5501 100644 (file)
                        status = "disabled";
                };
 
+               ethernet: ethernet@20000 {
+                       compatible = "qcom,sm8150-ethqos";
+                       reg = <0x0 0x00020000 0x0 0x10000>,
+                             <0x0 0x00036000 0x0 0x100>;
+                       reg-names = "stmmaceth", "rgmii";
+                       clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii";
+                       clocks = <&gcc GCC_EMAC_AXI_CLK>,
+                               <&gcc GCC_EMAC_SLV_AHB_CLK>,
+                               <&gcc GCC_EMAC_PTP_CLK>,
+                               <&gcc GCC_EMAC_RGMII_CLK>;
+                       interrupts = <GIC_SPI 689 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 699 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq", "eth_lpi";
+
+                       power-domains = <&gcc EMAC_GDSC>;
+                       resets = <&gcc GCC_EMAC_BCR>;
+
+                       iommus = <&apps_smmu 0x3C0 0x0>;
+
+                       snps,tso;
+                       rx-fifo-depth = <4096>;
+                       tx-fifo-depth = <4096>;
+
+                       status = "disabled";
+               };
+
+
                qupv3_id_0: geniqup@8c0000 {
                        compatible = "qcom,geni-se-qup";
                        reg = <0x0 0x008c0000 0x0 0x6000>;