Skip to content

Commit b405d8d

Browse files
ahalaneyandersson
authored andcommitted
arm64: dts: qcom: sc8280xp: Add ethernet nodes
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
1 parent 46384ac commit b405d8d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

arch/arm64/boot/dts/qcom/sc8280xp.dtsi

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,36 @@
768768
ranges = <0 0 0 0 0x10 0>;
769769
dma-ranges = <0 0 0 0 0x10 0>;
770770

771+
ethernet0: ethernet@20000 {
772+
compatible = "qcom,sc8280xp-ethqos";
773+
reg = <0x0 0x00020000 0x0 0x10000>,
774+
<0x0 0x00036000 0x0 0x100>;
775+
reg-names = "stmmaceth", "rgmii";
776+
777+
clocks = <&gcc GCC_EMAC0_AXI_CLK>,
778+
<&gcc GCC_EMAC0_SLV_AHB_CLK>,
779+
<&gcc GCC_EMAC0_PTP_CLK>,
780+
<&gcc GCC_EMAC0_RGMII_CLK>;
781+
clock-names = "stmmaceth",
782+
"pclk",
783+
"ptp_ref",
784+
"rgmii";
785+
786+
interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>,
787+
<GIC_SPI 936 IRQ_TYPE_LEVEL_HIGH>;
788+
interrupt-names = "macirq", "eth_lpi";
789+
790+
iommus = <&apps_smmu 0x4c0 0xf>;
791+
power-domains = <&gcc EMAC_0_GDSC>;
792+
793+
snps,tso;
794+
snps,pbl = <32>;
795+
rx-fifo-depth = <4096>;
796+
tx-fifo-depth = <4096>;
797+
798+
status = "disabled";
799+
};
800+
771801
gcc: clock-controller@100000 {
772802
compatible = "qcom,gcc-sc8280xp";
773803
reg = <0x0 0x00100000 0x0 0x1f0000>;
@@ -4706,6 +4736,36 @@
47064736

47074737
status = "disabled";
47084738
};
4739+
4740+
ethernet1: ethernet@23000000 {
4741+
compatible = "qcom,sc8280xp-ethqos";
4742+
reg = <0x0 0x23000000 0x0 0x10000>,
4743+
<0x0 0x23016000 0x0 0x100>;
4744+
reg-names = "stmmaceth", "rgmii";
4745+
4746+
clocks = <&gcc GCC_EMAC1_AXI_CLK>,
4747+
<&gcc GCC_EMAC1_SLV_AHB_CLK>,
4748+
<&gcc GCC_EMAC1_PTP_CLK>,
4749+
<&gcc GCC_EMAC1_RGMII_CLK>;
4750+
clock-names = "stmmaceth",
4751+
"pclk",
4752+
"ptp_ref",
4753+
"rgmii";
4754+
4755+
interrupts = <GIC_SPI 929 IRQ_TYPE_LEVEL_HIGH>,
4756+
<GIC_SPI 919 IRQ_TYPE_LEVEL_HIGH>;
4757+
interrupt-names = "macirq", "eth_lpi";
4758+
4759+
iommus = <&apps_smmu 0x40 0xf>;
4760+
power-domains = <&gcc EMAC_1_GDSC>;
4761+
4762+
snps,tso;
4763+
snps,pbl = <32>;
4764+
rx-fifo-depth = <4096>;
4765+
tx-fifo-depth = <4096>;
4766+
4767+
status = "disabled";
4768+
};
47094769
};
47104770

47114771
sound: sound {

0 commit comments

Comments
 (0)