Skip to content

Commit 5ca37ca

Browse files
cristiccConchuOD
authored andcommitted
riscv: dts: starfive: jh7100: Add sysmain and gmac DT nodes
Provide the sysmain and gmac DT nodes supporting the DWMAC found on the StarFive JH7100 SoC. Co-developed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Cristian Ciocaltea <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 8d01f74 commit 5ca37ca

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/riscv/boot/dts/starfive/jh7100.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,37 @@
204204
status = "disabled";
205205
};
206206

207+
gmac: ethernet@10020000 {
208+
compatible = "starfive,jh7100-dwmac", "snps,dwmac";
209+
reg = <0x0 0x10020000 0x0 0x10000>;
210+
clocks = <&clkgen JH7100_CLK_GMAC_ROOT_DIV>,
211+
<&clkgen JH7100_CLK_GMAC_AHB>,
212+
<&clkgen JH7100_CLK_GMAC_PTP_REF>,
213+
<&clkgen JH7100_CLK_GMAC_TX_INV>,
214+
<&clkgen JH7100_CLK_GMAC_GTX>;
215+
clock-names = "stmmaceth", "pclk", "ptp_ref", "tx", "gtx";
216+
resets = <&rstgen JH7100_RSTN_GMAC_AHB>;
217+
reset-names = "ahb";
218+
interrupts = <6>, <7>;
219+
interrupt-names = "macirq", "eth_wake_irq";
220+
max-frame-size = <9000>;
221+
snps,multicast-filter-bins = <32>;
222+
snps,perfect-filter-entries = <128>;
223+
starfive,syscon = <&sysmain 0x70 0>;
224+
rx-fifo-depth = <32768>;
225+
tx-fifo-depth = <16384>;
226+
snps,axi-config = <&stmmac_axi_setup>;
227+
snps,fixed-burst;
228+
snps,force_thresh_dma_mode;
229+
status = "disabled";
230+
231+
stmmac_axi_setup: stmmac-axi-config {
232+
snps,wr_osr_lmt = <16>;
233+
snps,rd_osr_lmt = <16>;
234+
snps,blen = <256 128 64 32 0 0 0>;
235+
};
236+
};
237+
207238
clkgen: clock-controller@11800000 {
208239
compatible = "starfive,jh7100-clkgen";
209240
reg = <0x0 0x11800000 0x0 0x10000>;
@@ -218,6 +249,11 @@
218249
#reset-cells = <1>;
219250
};
220251

252+
sysmain: syscon@11850000 {
253+
compatible = "starfive,jh7100-sysmain", "syscon";
254+
reg = <0x0 0x11850000 0x0 0x10000>;
255+
};
256+
221257
i2c0: i2c@118b0000 {
222258
compatible = "snps,designware-i2c";
223259
reg = <0x0 0x118b0000 0x0 0x10000>;

0 commit comments

Comments
 (0)