All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node
@ 2019-04-12 11:58 Eugen.Hristev at microchip.com
  2019-04-12 11:58 ` [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver Eugen.Hristev at microchip.com
  2019-04-18  6:57 ` [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com
  0 siblings, 2 replies; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-04-12 11:58 UTC (permalink / raw)
  To: u-boot

From: Razvan Stefanescu <razvan.stefanescu@microchip.com>

MACB has a fixed link connection to KSZ8563 switch port.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
---
 arch/arm/dts/at91-sama5d2_icp.dts | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_icp.dts
index e777754..cae8748 100644
--- a/arch/arm/dts/at91-sama5d2_icp.dts
+++ b/arch/arm/dts/at91-sama5d2_icp.dts
@@ -39,6 +39,13 @@
 				status = "okay";
 			};
 
+			macb0: ethernet at f8008000 {
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>;
+				phy-mode = "internal";
+				status = "okay";
+			};
+
 			i2c1: i2c at fc028000 {
 				dmas = <0>, <0>;
 				pinctrl-names = "default";
@@ -72,6 +79,36 @@
 						bias-disable;
 					};
 
+					pinctrl_macb0_rmii: macb0_rmii {
+						pinmux = <PIN_PD1__GRXCK>,
+							 <PIN_PD2__GTXER>,
+							 <PIN_PD5__GRX2>,
+							 <PIN_PD6__GRX3>,
+							 <PIN_PD7__GTX2>,
+							 <PIN_PD8__GTX3>,
+							 <PIN_PD9__GTXCK>,
+							 <PIN_PD10__GTXEN>,
+							 <PIN_PD11__GRXDV>,
+							 <PIN_PD12__GRXER>,
+							 <PIN_PD13__GRX0>,
+							 <PIN_PD14__GRX1>,
+							 <PIN_PD15__GTX0>,
+							 <PIN_PD16__GTX1>,
+							 <PIN_PD17__GMDC>,
+							 <PIN_PD18__GMDIO>;
+						bias-disable;
+					};
+
+					pinctrl_macb0_phy_irq: macb0_phy_irq {
+						pinmux = <PIN_PD3__GPIO>;
+						bias-disable;
+					};
+
+					pinctrl_macb0_rst: macb0_sw_rst {
+						pinmux = <PIN_PD4__GPIO>;
+						bias-pull-up;
+					};
+
 					pinctrl_sdmmc0_default: sdmmc0_default {
 						pinmux = <PIN_PA1__SDMMC0_CMD>,
 							 <PIN_PA2__SDMMC0_DAT0>,
-- 
2.7.4

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

* [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver
  2019-04-12 11:58 [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com
@ 2019-04-12 11:58 ` Eugen.Hristev at microchip.com
  2019-04-18  6:57   ` Eugen.Hristev at microchip.com
  2019-04-18  6:57 ` [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com
  1 sibling, 1 reply; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-04-12 11:58 UTC (permalink / raw)
  To: u-boot

From: Razvan Stefanescu <razvan.stefanescu@microchip.com>

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
---
 configs/sama5d2_icp_mmc_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/sama5d2_icp_mmc_defconfig b/configs/sama5d2_icp_mmc_defconfig
index 203b869..6d4d199 100644
--- a/configs/sama5d2_icp_mmc_defconfig
+++ b/configs/sama5d2_icp_mmc_defconfig
@@ -61,6 +61,8 @@ CONFIG_I2C_EEPROM=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ATMEL=y
+CONFIG_DM_ETH=y
+CONFIG_MACB=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_AT91PIO4=y
-- 
2.7.4

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

* [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node
  2019-04-12 11:58 [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com
  2019-04-12 11:58 ` [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver Eugen.Hristev at microchip.com
@ 2019-04-18  6:57 ` Eugen.Hristev at microchip.com
  1 sibling, 0 replies; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-04-18  6:57 UTC (permalink / raw)
  To: u-boot



On 12.04.2019 14:58, Eugen Hristev - M18282 wrote:
> From: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> 
> MACB has a fixed link connection to KSZ8563 switch port.
> 
> Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> ---

Applied to u-boot-atmel/master

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

* [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver
  2019-04-12 11:58 ` [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver Eugen.Hristev at microchip.com
@ 2019-04-18  6:57   ` Eugen.Hristev at microchip.com
  0 siblings, 0 replies; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2019-04-18  6:57 UTC (permalink / raw)
  To: u-boot



On 12.04.2019 14:58, Eugen Hristev - M18282 wrote:
> From: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> 
> Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> ---

Applied to u-boot-atmel/master

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

end of thread, other threads:[~2019-04-18  6:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12 11:58 [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com
2019-04-12 11:58 ` [U-Boot] [PATCH 2/2] board: sama5d2_icp: Enable MACB driver Eugen.Hristev at microchip.com
2019-04-18  6:57   ` Eugen.Hristev at microchip.com
2019-04-18  6:57 ` [U-Boot] [PATCH 1/2] ARM: dts: at91-sama5d2-icp: Add MACB node Eugen.Hristev at microchip.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.