Browse Source

Loongson2k dts: add ethernet0, ethernet1 aliases for new version stmmac kernel driver.

Change-Id: Ia0a0375ca03af671917873ad038bb5e1de0a6c3a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
parent
commit
bf3c9ffd20
  1. 9
      Targets/LS2K/conf/LS2K.dts

9
Targets/LS2K/conf/LS2K.dts

@ -21,6 +21,11 @@
1 0x10000000 1 0xb0000000>; // 7424 - 512 MiB at 4352MiB 1 0x10000000 1 0xb0000000>; // 7424 - 512 MiB at 4352MiB
}; };
aliases {
ethernet0 = &gmac0;
ethernet1 = &gmac1;
};
// all soc device use 32bit address // all soc device use 32bit address
soc { soc {
@ -116,7 +121,7 @@
dma-mask = <0x0 0xffffffff>; dma-mask = <0x0 0xffffffff>;
}; };
ethernet@0x40040000 { gmac0: ethernet@0x40040000 {
compatible = "snps,dwmac-3.70a", "ls,ls-gmac"; compatible = "snps,dwmac-3.70a", "ls,ls-gmac";
reg = <0x40040000 0x10000>; reg = <0x40040000 0x10000>;
interrupt-parent = <&icu>; interrupt-parent = <&icu>;
@ -129,7 +134,7 @@
dma-mask = <0xffffffff 0xffffffff>; dma-mask = <0xffffffff 0xffffffff>;
}; };
ethernet@0x40050000 { gmac1: ethernet@0x40050000 {
compatible = "snps,dwmac-3.70a", "ls,ls-gmac"; compatible = "snps,dwmac-3.70a", "ls,ls-gmac";
reg = <0x40050000 0x10000>; reg = <0x40050000 0x10000>;
interrupt-parent = <&icu>; interrupt-parent = <&icu>;

Loading…
Cancel
Save