mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
riscv: dts: sophgo: sg2044: Add ethernet control device
Add ethernet control node for sg2044. Link: https://lore.kernel.org/r/20250608232836.784737-9-inochiama@gmail.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
This commit is contained in:
parent
2b09dad74e
commit
2c7ef3dc12
2 changed files with 79 additions and 0 deletions
|
@ -36,6 +36,23 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "rgmii-id";
|
||||
status = "okay";
|
||||
|
||||
mdio {
|
||||
phy0: phy@0 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <0>;
|
||||
reset-gpios = <&porta 28 GPIO_ACTIVE_LOW>;
|
||||
reset-assert-us = <10000>;
|
||||
reset-deassert-us = <10000>;
|
||||
rx-internal-delay-ps = <2050>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
|
||||
|
|
|
@ -111,6 +111,68 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
gmac0: ethernet@7030006000 {
|
||||
compatible = "sophgo,sg2044-dwmac", "snps,dwmac-5.30a";
|
||||
reg = <0x70 0x30006000 0x0 0x4000>;
|
||||
clocks = <&clk CLK_GATE_AXI_ETH0>,
|
||||
<&clk CLK_GATE_PTP_REF_I_ETH0>,
|
||||
<&clk CLK_GATE_TX_ETH0>;
|
||||
clock-names = "stmmaceth", "ptp_ref", "tx";
|
||||
dma-noncoherent;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <296 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
resets = <&rst RST_ETH0>;
|
||||
reset-names = "stmmaceth";
|
||||
snps,multicast-filter-bins = <0>;
|
||||
snps,perfect-filter-entries = <1>;
|
||||
snps,aal;
|
||||
snps,tso;
|
||||
snps,txpbl = <32>;
|
||||
snps,rxpbl = <32>;
|
||||
snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
|
||||
snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
|
||||
snps,axi-config = <&gmac0_stmmac_axi_setup>;
|
||||
status = "disabled";
|
||||
|
||||
mdio {
|
||||
compatible = "snps,dwmac-mdio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
gmac0_mtl_rx_setup: rx-queues-config {
|
||||
snps,rx-queues-to-use = <8>;
|
||||
snps,rx-sched-wsp;
|
||||
queue0 {};
|
||||
queue1 {};
|
||||
queue2 {};
|
||||
queue3 {};
|
||||
queue4 {};
|
||||
queue5 {};
|
||||
queue6 {};
|
||||
queue7 {};
|
||||
};
|
||||
|
||||
gmac0_mtl_tx_setup: tx-queues-config {
|
||||
snps,tx-queues-to-use = <8>;
|
||||
queue0 {};
|
||||
queue1 {};
|
||||
queue2 {};
|
||||
queue3 {};
|
||||
queue4 {};
|
||||
queue5 {};
|
||||
queue6 {};
|
||||
queue7 {};
|
||||
};
|
||||
|
||||
gmac0_stmmac_axi_setup: stmmac-axi-config {
|
||||
snps,blen = <16 8 4 0 0 0 0>;
|
||||
snps,wr_osr_lmt = <1>;
|
||||
snps,rd_osr_lmt = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
emmc: mmc@703000a000 {
|
||||
compatible = "sophgo,sg2044-dwcmshc", "sophgo,sg2042-dwcmshc";
|
||||
reg = <0x70 0x3000a000 0x0 0x1000>;
|
||||
|
|
Loading…
Add table
Reference in a new issue