]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: Fix gmac not working on the Colombus board
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Aug 2015 13:39:05 +0000 (15:39 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:23:18 +0000 (10:23 +0200)
The phy is using a RGMII interface, which we need to specify in our
board-config, and the dts needs a gmac section (the dts changes have
also been submitted to the kernel).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/dts/sun6i-a31-colombus.dts
configs/Colombus_defconfig

index 0cf9926d1e93bebdc333c45f83c2dfe7610f50b9..0d0b6f268c3eda1df223b66ae5e188c020a6176b 100644 (file)
        status = "okay";
 };
 
+&gmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&gmac_pins_rgmii_a>;
+       phy = <&phy1>;
+       phy-mode = "rgmii";
+       status = "okay";
+
+       phy1: ethernet-phy@1 {
+               reg = <1>;
+       };
+};
+
 &i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins_a>;
index 1ae8c168e805ed15e5ab67f386d51a2fb2b4cb15..7fa9ef1efffc21d0acad9084581a20d2271fb4fe 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_USB1_VBUS_PIN=""
 CONFIG_DEFAULT_DEVICE_TREE="sun6i-a31-colombus"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="SUNXI_GMAC"
+CONFIG_SYS_EXTRA_OPTIONS="SUNXI_GMAC,RGMII"
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_FPGA is not set