public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] sunxi: Fix gmac not working on the Colombus board
@ 2015-08-06 18:13 Hans de Goede
  2015-08-06 18:13 ` [U-Boot] [PATCH 2/2] sunxi: gpio: Add support for the gpio banks which are part of the R-io cluster Hans de Goede
  2015-08-11  7:47 ` [U-Boot] [PATCH 1/2] sunxi: Fix gmac not working on the Colombus board Ian Campbell
  0 siblings, 2 replies; 7+ messages in thread
From: Hans de Goede @ 2015-08-06 18:13 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/dts/sun6i-a31-colombus.dts | 12 ++++++++++++
 configs/Colombus_defconfig          |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/sun6i-a31-colombus.dts b/arch/arm/dts/sun6i-a31-colombus.dts
index 0cf9926..0d0b6f2 100644
--- a/arch/arm/dts/sun6i-a31-colombus.dts
+++ b/arch/arm/dts/sun6i-a31-colombus.dts
@@ -66,6 +66,18 @@
 	status = "okay";
 };
 
+&gmac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&gmac_pins_rgmii_a>;
+	phy = <&phy1>;
+	phy-mode = "rgmii";
+	status = "okay";
+
+	phy1: ethernet-phy at 1 {
+		reg = <1>;
+	};
+};
+
 &i2c0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c0_pins_a>;
diff --git a/configs/Colombus_defconfig b/configs/Colombus_defconfig
index 1ae8c16..7fa9ef1 100644
--- a/configs/Colombus_defconfig
+++ b/configs/Colombus_defconfig
@@ -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
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-18 12:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 18:13 [U-Boot] [PATCH 1/2] sunxi: Fix gmac not working on the Colombus board Hans de Goede
2015-08-06 18:13 ` [U-Boot] [PATCH 2/2] sunxi: gpio: Add support for the gpio banks which are part of the R-io cluster Hans de Goede
2015-08-11  7:49   ` Ian Campbell
2015-08-17 22:14   ` Simon Glass
2015-08-18  9:29     ` Hans de Goede
2015-08-18 12:45       ` Simon Glass
2015-08-11  7:47 ` [U-Boot] [PATCH 1/2] sunxi: Fix gmac not working on the Colombus board Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox