From bf3c9ffd207cd00ca1470c78bb51ff6baf2fcd7b Mon Sep 17 00:00:00 2001 From: QiaoChong Date: Sat, 23 Mar 2019 15:25:23 +0800 Subject: [PATCH] Loongson2k dts: add ethernet0, ethernet1 aliases for new version stmmac kernel driver. Change-Id: Ia0a0375ca03af671917873ad038bb5e1de0a6c3a Signed-off-by: QiaoChong --- Targets/LS2K/conf/LS2K.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Targets/LS2K/conf/LS2K.dts b/Targets/LS2K/conf/LS2K.dts index 91ff9917..9b5560b2 100644 --- a/Targets/LS2K/conf/LS2K.dts +++ b/Targets/LS2K/conf/LS2K.dts @@ -21,6 +21,11 @@ 1 0x10000000 1 0xb0000000>; // 7424 - 512 MiB at 4352MiB }; + aliases { + ethernet0 = &gmac0; + ethernet1 = &gmac1; + }; + // all soc device use 32bit address soc { @@ -116,7 +121,7 @@ dma-mask = <0x0 0xffffffff>; }; - ethernet@0x40040000 { + gmac0: ethernet@0x40040000 { compatible = "snps,dwmac-3.70a", "ls,ls-gmac"; reg = <0x40040000 0x10000>; interrupt-parent = <&icu>; @@ -129,7 +134,7 @@ dma-mask = <0xffffffff 0xffffffff>; }; - ethernet@0x40050000 { + gmac1: ethernet@0x40050000 { compatible = "snps,dwmac-3.70a", "ls,ls-gmac"; reg = <0x40050000 0x10000>; interrupt-parent = <&icu>;