arm64: dts: rockchip: rv1126b: Add GMAC support

Change-Id: I89304a34712a0ede8a7e6b2e5e85ba1f7dcb55a3
Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
David Wu
2025-03-21 10:29:40 +08:00
committed by Tao Huang
parent 040eaab73c
commit ca6724fcc7

View File

@@ -21,6 +21,7 @@
#size-cells = <1>;
aliases {
ethernet0 = &gmac;
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
@@ -2372,6 +2373,58 @@
status = "okay";
};
gmac: ethernet@21c70000 {
compatible = "rockchip,rv1126b-gmac", "snps,dwmac-4.20a";
reg = <0x21c70000 0x10000>;
interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq";
rockchip,grf = <&grf>;
rockchip,php_grf = <&ioc_grf>;
clocks = <&cru CLK_GMAC_125M>, <&cru CLK_50M_GMAC_IOBUF_VI>,
<&cru PCLK_GMAC>, <&cru ACLK_GMAC>,
<&cru CLK_GMAC_PTP_REF>;
clock-names = "stmmaceth", "clk_mac_ref",
"pclk_mac", "aclk_mac",
"ptp_ref";
resets = <&cru SRST_ARESETN_GMAC>;
reset-names = "stmmaceth";
snps,mixed-burst;
snps,tso;
snps,axi-config = <&gmac0_stmmac_axi_setup>;
snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
status = "disabled";
mdio: mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <0x1>;
#size-cells = <0x0>;
};
gmac0_stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <4>;
snps,rd_osr_lmt = <8>;
snps,blen = <0 0 0 0 16 8 4>;
};
gmac0_mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <1>;
queue0 {
status = "okay";
};
};
gmac0_mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <1>;
queue0 {
status = "okay";
};
};
};
dsmc: dsmc@21ca0000 {
compatible = "rockchip,rv1126b-dsmc", "rockchip,rk3506-dsmc";
reg = <0x21ca0000 0x10000>;