Skip to content

Commit

Permalink
MIPS: Loongson64: Add GMAC support for Loongson-2K1000
Browse files Browse the repository at this point in the history
The GMAC module is now supported, enable it.

Signed-off-by: Qing Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
zhangqingmy authored and davem330 committed Jun 18, 2021
1 parent 30bba69 commit f8a1142
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,52 @@
ranges = <0x01000000 0x0 0x00000000 0x0 0x18000000 0x0 0x00010000>,
<0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;

gmac@3,0 {
compatible = "pci0014,7a03.0",
"pci0014,7a03",
"pciclass0c0320",
"pciclass0c03",
"loongson, pci-gmac";

reg = <0x1800 0x0 0x0 0x0 0x0>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
<13 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "macirq", "eth_lpi";
interrupt-parent = <&liointc0>;
phy-mode = "rgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
};

gmac@3,1 {
compatible = "pci0014,7a03.0",
"pci0014,7a03",
"pciclass0c0320",
"pciclass0c03",
"loongson, pci-gmac";

reg = <0x1900 0x0 0x0 0x0 0x0>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>,
<15 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "macirq", "eth_lpi";
interrupt-parent = <&liointc0>;
phy-mode = "rgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy1: ethernet-phy@1 {
reg = <0>;
};
};
};

ehci@4,1 {
compatible = "pci0014,7a14.0",
"pci0014,7a14",
Expand Down

0 comments on commit f8a1142

Please sign in to comment.