public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen Hristev <eugen.hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [PATCH 20/34] ARM: dts: sama7g5: add GMAC0
Date: Thu, 3 Dec 2020 11:28:36 +0200	[thread overview]
Message-ID: <20201203092850.7909-21-eugen.hristev@microchip.com> (raw)
In-Reply-To: <20201203092850.7909-1-eugen.hristev@microchip.com>

From: Claudiu Beznea <claudiu.beznea@microchip.com>

Add GMAC0.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/dts/sama7g5.dtsi  | 11 +++++++++++
 arch/arm/dts/sama7g5ek.dts | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi
index d9208d68d5..33589f3ad9 100644
--- a/arch/arm/dts/sama7g5.dtsi
+++ b/arch/arm/dts/sama7g5.dtsi
@@ -114,6 +114,17 @@
 				clock-names = "usart";
 				status = "disabled";
 			};
+
+			gmac0: ethernet at e2800000 {
+				compatible = "cdns,sama7g5-gem";
+				reg = <0xe2800000 0x4000>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 51>, <&pmc PMC_TYPE_PERIPHERAL 51>, <&pmc PMC_TYPE_GCK 51>;
+				clock-names = "hclk", "pclk", "tx_clk";
+				assigned-clocks = <&pmc PMC_TYPE_GCK 51>;
+				assigned-clock-parents = <&pmc PMC_TYPE_CORE 21>; /* eth pll div. */
+				assigned-clock-rates = <125000000>;
+				status = "disabled";
+			};
 		};
 	};
 };
diff --git a/arch/arm/dts/sama7g5ek.dts b/arch/arm/dts/sama7g5ek.dts
index a9190bfcb3..194f4644b5 100644
--- a/arch/arm/dts/sama7g5ek.dts
+++ b/arch/arm/dts/sama7g5ek.dts
@@ -53,6 +53,19 @@
 	};
 };
 
+&gmac0 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gmac0_default>;
+	phy-mode = "rgmii-id";
+	status = "okay";
+
+	ethernet-phy at 7 {
+		reg = <0x7>;
+	};
+};
+
 &pinctrl {
 	pinctrl_flx3_default: flx3_default {
 		pinmux = <PIN_PD16__FLEXCOM3_IO0>,
@@ -76,4 +89,23 @@
 			 <PIN_PC4__SDMMC1_CD>;
 		bias-pull-up;
 	};
+
+	pinctrl_gmac0_default: gmac0_default {
+		pinmux = <PIN_PA16__G0_TX0>,
+			 <PIN_PA17__G0_TX1>,
+			 <PIN_PA26__G0_TX2>,
+			 <PIN_PA27__G0_TX3>,
+			 <PIN_PA19__G0_RX0>,
+			 <PIN_PA20__G0_RX1>,
+			 <PIN_PA28__G0_RX2>,
+			 <PIN_PA29__G0_RX3>,
+			 <PIN_PA15__G0_TXEN>,
+			 <PIN_PA24__G0_TXCK>,
+			 <PIN_PA30__G0_RXCK>,
+			 <PIN_PA18__G0_RXDV>,
+			 <PIN_PA22__G0_MDC>,
+			 <PIN_PA23__G0_MDIO>,
+			 <PIN_PA25__G0_125CK>;
+		bias-disable;
+	};
 };
-- 
2.25.1

  parent reply	other threads:[~2020-12-03  9:28 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03  9:28 [PATCH 00/34] Sama7g5 Evaluation Kit support Eugen Hristev
2020-12-03  9:28 ` [PATCH 01/34] ARM: dts: sama7g5: add initial DT for sama7g5 SoC Eugen Hristev
2020-12-03  9:28 ` [PATCH 02/34] board: atmel: sama7g5ek: add initial support for sama7g5ek Eugen Hristev
2020-12-03  9:28 ` [PATCH 03/34] board: atmel: sama7g5ek: add SYS_MALLOC_F_LEN to SYS_INIT_SP_ADDR Eugen Hristev
2020-12-03  9:28 ` [PATCH 04/34] configs: sama7g5ek: set malloc pool to 68K Eugen Hristev
2020-12-03  9:28 ` [PATCH 05/34] configs: sama7g5ek: enable pll driver Eugen Hristev
2020-12-03  9:28 ` [PATCH 06/34] ARM: dts: sama7g5: move clock frequencies for xtals in board file Eugen Hristev
2020-12-03  9:28 ` [PATCH 07/34] ARM: dts: sama7g5: add slow rc and main rc oscillators Eugen Hristev
2020-12-03  9:28 ` [PATCH 08/34] ARM: dts: sama7g5: add u-boot, dm-pre-reloc bindings for xtals Eugen Hristev
2020-12-03  9:28 ` [PATCH 09/34] ARM: dts: sama7g5: add slow clock bindings Eugen Hristev
2020-12-03  9:28 ` [PATCH 10/34] ARM: dts: sama7g5: add PMC bindings Eugen Hristev
2020-12-03  9:28 ` [PATCH 11/34] ARM: dts: sama7g5: switch to " Eugen Hristev
2020-12-03  9:28 ` [PATCH 12/34] configs: sama7g5: enable CONFIG_CPU Eugen Hristev
2020-12-03  9:28 ` [PATCH 13/34] ARM: dts: sama7g5: add CPU bindings Eugen Hristev
2020-12-03  9:28 ` [PATCH 14/34] configs: sama7g5: use PIT64B Eugen Hristev
2020-12-03  9:28 ` [PATCH 15/34] ARM: dts: sama7g5: enable autoboot Eugen Hristev
2020-12-03  9:28 ` [PATCH 16/34] ARM: dts: sama7g5: add pit64b support Eugen Hristev
2020-12-03  9:28 ` [PATCH 17/34] ARM: dts: at91: sama7g5: add pinctrl node Eugen Hristev
2020-12-03  9:28 ` [PATCH 18/34] ARM: dts: at91: sama7g5ek: add pinctrl for sdmmc1 and flx3 Eugen Hristev
2020-12-03  9:28 ` [PATCH 19/34] configs: sama7g5ek: enable mii command Eugen Hristev
2020-12-03  9:28 ` Eugen Hristev [this message]
2020-12-03  9:28 ` [PATCH 21/34] ARM: dts: sama7g5: add GMAC1 Eugen Hristev
2020-12-03  9:28 ` [PATCH 22/34] board: atmel: sama7g5ek: increase arp timeout and retry count Eugen Hristev
2020-12-03  9:28 ` [PATCH 23/34] configs: sama7g5ek: enable support for KSZ9131 Eugen Hristev
2020-12-03  9:28 ` [PATCH 24/34] configs: sama7g5ek: enable CCF Eugen Hristev
2020-12-03  9:28 ` [PATCH 25/34] ARM: dts: at91: sama7g5: add assigned clocks for sdmmc1 Eugen Hristev
2020-12-03  9:28 ` [PATCH 26/34] ARM: dts: at91: sama7g5: add node for sdmmc0 Eugen Hristev
2020-12-03  9:28 ` [PATCH 27/34] ARM: dts: at91: sama7g5ek: enable sdmmc0 with pinctrl Eugen Hristev
2020-12-03  9:28 ` [PATCH 28/34] board: atmel: sama7g5ek: clean-up header bootcommand Eugen Hristev
2020-12-03  9:28 ` [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0 Eugen Hristev
2020-12-03 10:38   ` Jaehoon Chung
2020-12-03 10:47     ` Eugen.Hristev at microchip.com
2020-12-03 11:11       ` Jaehoon Chung
2020-12-03 11:20         ` Eugen.Hristev at microchip.com
2020-12-03 21:45           ` Jaehoon Chung
2020-12-04  7:00             ` Eugen.Hristev at microchip.com
2020-12-06 22:15               ` Jaehoon Chung
2020-12-03  9:28 ` [PATCH 30/34] ARM: dts: at91: sama7g5: add flexcom1 and i2c subnode Eugen Hristev
2020-12-03  9:28 ` [PATCH 31/34] ARM: dts: sama7g5ek: add i2c1 bus and eeproms Eugen Hristev
2020-12-03  9:28 ` [PATCH 32/34] board: atmel: sama7g5ek: add support for MAC address retreival Eugen Hristev
2020-12-03  9:28 ` [PATCH 33/34] configs: sama7g5ek: add i2c and eeprom Eugen Hristev
2020-12-03  9:28 ` [PATCH 34/34] ARM: dts: sama7g5ek: fix TXC pin configuration Eugen Hristev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201203092850.7909-21-eugen.hristev@microchip.com \
    --to=eugen.hristev@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox