]> git.baikalelectronics.ru Git - uboot.git/commitdiff
bmips: enable ar-5315u enet support
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 1 Dec 2018 18:00:42 +0000 (19:00 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 19 Dec 2018 14:23:01 +0000 (15:23 +0100)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
arch/mips/dts/comtrend,ar-5315u.dts
configs/comtrend_ar5315u_ram_defconfig

index 45570189d0bd28505e8a5be7fe9add3ddf13175c..eb60aaa8d5f832f1ff2a094a68eed644f8f3e2d2 100644 (file)
        status = "okay";
 };
 
+&enet {
+       status = "okay";
+
+       port@0 {
+               compatible = "brcm,enetsw-port";
+               reg = <0>;
+               label = "fe4";
+               brcm,phy-id = <1>;
+       };
+
+       port@1 {
+               compatible = "brcm,enetsw-port";
+               reg = <1>;
+               label = "fe3";
+               brcm,phy-id = <2>;
+       };
+
+       port@2 {
+               compatible = "brcm,enetsw-port";
+               reg = <2>;
+               label = "fe2";
+               brcm,phy-id = <3>;
+       };
+
+       port@3 {
+               compatible = "brcm,enetsw-port";
+               reg = <3>;
+               label = "fe1";
+               brcm,phy-id = <4>;
+       };
+};
+
 &leds {
        status = "okay";
 
index d9ef52e68d205fed6724cb1eae1c378d73dfda41..1b8e4e43c4cd1f38b1d78ac1768f78b84150c798 100644 (file)
@@ -28,11 +28,14 @@ CONFIG_CMD_MEMINFO=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
 # CONFIG_CMD_MISC is not set
 CONFIG_OF_EMBED=y
 CONFIG_DEFAULT_DEVICE_TREE="comtrend,ar-5315u"
-# CONFIG_NET is not set
+CONFIG_NET_RANDOM_ETHADDR=y
 # CONFIG_DM_DEVICE_REMOVE is not set
+CONFIG_BCM6348_IUDMA=y
 CONFIG_DM_GPIO=y
 CONFIG_LED=y
 CONFIG_LED_BCM6328=y
@@ -41,6 +44,8 @@ CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SPI_FLASH_MTD=y
+CONFIG_DM_ETH=y
+CONFIG_BCM6368_ETH=y
 CONFIG_PHY=y
 CONFIG_BCM6318_USBH_PHY=y
 CONFIG_BCM6328_POWER_DOMAIN=y