Skip to content

Commit 0872f84

Browse files
Christophe RoullierAlexandre Torgue
authored andcommitted
ARM: dts: stm32: add ethernet1 and ethernet2 support on stm32mp13
Both instances ethernet based on GMAC SNPS IP on stm32mp13. GMAC IP version is SNPS 4.20. Signed-off-by: Christophe Roullier <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 710d4f7 commit 0872f84

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

arch/arm/boot/dts/st/stm32mp131.dtsi

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,12 @@
979979
ts_cal2: calib@5e {
980980
reg = <0x5e 0x2>;
981981
};
982+
ethernet_mac1_address: mac1@e4 {
983+
reg = <0xe4 0x6>;
984+
};
985+
ethernet_mac2_address: mac2@ea {
986+
reg = <0xea 0x6>;
987+
};
982988
};
983989

984990
etzpc: bus@5c007000 {
@@ -1505,6 +1511,38 @@
15051511
status = "disabled";
15061512
};
15071513

1514+
ethernet1: ethernet@5800a000 {
1515+
compatible = "st,stm32mp13-dwmac", "snps,dwmac-4.20a";
1516+
reg = <0x5800a000 0x2000>;
1517+
reg-names = "stmmaceth";
1518+
interrupts-extended = <&intc GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
1519+
<&exti 68 1>;
1520+
interrupt-names = "macirq", "eth_wake_irq";
1521+
clock-names = "stmmaceth",
1522+
"mac-clk-tx",
1523+
"mac-clk-rx",
1524+
"ethstp",
1525+
"eth-ck";
1526+
clocks = <&rcc ETH1MAC>,
1527+
<&rcc ETH1TX>,
1528+
<&rcc ETH1RX>,
1529+
<&rcc ETH1STP>,
1530+
<&rcc ETH1CK_K>;
1531+
st,syscon = <&syscfg 0x4 0xff0000>;
1532+
snps,mixed-burst;
1533+
snps,pbl = <2>;
1534+
snps,axi-config = <&stmmac_axi_config_1>;
1535+
snps,tso;
1536+
access-controllers = <&etzpc 48>;
1537+
status = "disabled";
1538+
1539+
stmmac_axi_config_1: stmmac-axi-config {
1540+
snps,blen = <0 0 0 0 16 8 4>;
1541+
snps,rd_osr_lmt = <0x7>;
1542+
snps,wr_osr_lmt = <0x7>;
1543+
};
1544+
};
1545+
15081546
usbphyc: usbphyc@5a006000 {
15091547
#address-cells = <1>;
15101548
#size-cells = <0>;

arch/arm/boot/dts/st/stm32mp133.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,35 @@
6868
};
6969
};
7070
};
71+
72+
ethernet2: ethernet@5800e000 {
73+
compatible = "st,stm32mp13-dwmac", "snps,dwmac-4.20a";
74+
reg = <0x5800e000 0x2000>;
75+
reg-names = "stmmaceth";
76+
interrupts-extended = <&intc GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
77+
interrupt-names = "macirq";
78+
clock-names = "stmmaceth",
79+
"mac-clk-tx",
80+
"mac-clk-rx",
81+
"ethstp",
82+
"eth-ck";
83+
clocks = <&rcc ETH2MAC>,
84+
<&rcc ETH2TX>,
85+
<&rcc ETH2RX>,
86+
<&rcc ETH2STP>,
87+
<&rcc ETH2CK_K>;
88+
st,syscon = <&syscfg 0x4 0xff000000>;
89+
snps,mixed-burst;
90+
snps,pbl = <2>;
91+
snps,axi-config = <&stmmac_axi_config_2>;
92+
snps,tso;
93+
access-controllers = <&etzpc 49>;
94+
status = "disabled";
95+
96+
stmmac_axi_config_2: stmmac-axi-config {
97+
snps,blen = <0 0 0 0 16 8 4>;
98+
snps,rd_osr_lmt = <0x7>;
99+
snps,wr_osr_lmt = <0x7>;
100+
};
101+
};
71102
};

0 commit comments

Comments
 (0)