]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: Bananapi_M2_Ultra: enable gigabit ethernet
authorLothar Felten <lothar.felten@gmail.com>
Fri, 13 Jul 2018 08:45:30 +0000 (10:45 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 16 Jul 2018 06:59:02 +0000 (12:29 +0530)
Enable the gigabit ethernet for the Bananapi M2 Ultra board.
Tested on BananaPi M2 Berry (R40), custom board (V40)

Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@openedev.com>
arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
configs/Bananapi_M2_Ultra_defconfig

index ab471ab0bffb9447a1da0e4591b416dfa5182b27..28c915830280aa931df1a67d8952008e3c47a93c 100644 (file)
@@ -48,6 +48,7 @@
        compatible = "sinovoip,bpi-m2-ultra", "allwinner,sun8i-r40";
 
        aliases {
+               ethernet0 = &gmac;
                serial0 = &uart0;
        };
 
        pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
+
+&gmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&gmac_rgmii_pins>;
+       phy-handle = <&phy1>;
+       phy-mode = "rgmii";
+       status = "okay";
+};
+
+&gmac_mdio {
+       phy1: ethernet-phy@1 {
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <1>;
+       };
+};
index 37cc2df5dcbe5f65057c070fea4562b39957ed5c..edcbb16cf693084879341a5f0de0cf14aa7b84f5 100644 (file)
@@ -14,6 +14,10 @@ CONFIG_SPL_I2C_SUPPORT=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_SCSI_AHCI=y
 CONFIG_AXP_DLDO4_VOLT=2500
+CONFIG_AXP_ALDO2_VOLT=2500
 CONFIG_AXP_ELDO3_VOLT=1200
 CONFIG_SCSI=y
 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+CONFIG_SUN8I_EMAC=y
+CONFIG_RGMII=y
+CONFIG_MACPWR="PA17"