All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tudor.Ambarus at microchip.com <Tudor.Ambarus@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-boot][PATCH v3 05/14] ARM: dts: at91: sam9x60: Add macb0 Ethernet controller
Date: Fri, 27 Sep 2019 13:08:48 +0000	[thread overview]
Message-ID: <20190927130818.478-6-tudor.ambarus@microchip.com> (raw)
In-Reply-To: <20190927130818.478-1-tudor.ambarus@microchip.com>

From: Nicolas Ferre <nicolas.ferre@microchip.com>

Add Ethernet controller to dtsi file and enable it on sam9x60ek
platform connected with rmii.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
---
 arch/arm/dts/sam9x60.dtsi  | 31 +++++++++++++++++++++++++++++++
 arch/arm/dts/sam9x60ek.dts |  5 +++++
 2 files changed, 36 insertions(+)

diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi
index e880dc0068df..a66d0a278a87 100644
--- a/arch/arm/dts/sam9x60.dtsi
+++ b/arch/arm/dts/sam9x60.dtsi
@@ -60,6 +60,16 @@
 			#size-cells = <1>;
 			ranges;
 
+			macb0: ethernet at f802c000 {
+				compatible = "cdns,sam9x60-macb", "cdns,macb";
+				reg = <0xf802c000 0x100>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_macb0_rmii>;
+				clock-names = "hclk", "pclk";
+				clocks = <&macb0_clk>, <&macb0_clk>;
+				status = "disabled";
+			};
+
 			dbgu: serial at fffff200 {
 				compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
 				reg = <0xfffff200 0x200>;
@@ -88,6 +98,22 @@
 					};
 				};
 
+				macb0 {
+					pinctrl_macb0_rmii: macb0_rmii-0 {
+						atmel,pins =
+							<AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB0 periph A */
+							 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB1 periph A */
+							 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB2 periph A */
+							 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB3 periph A */
+							 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
+							 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB5 periph A */
+							 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
+							 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
+							 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
+							 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A */
+					};
+				};
+
 				sdhci0 {
 					pinctrl_sdhci0: sdhci0 {
 						atmel,pins =
@@ -171,6 +197,11 @@
 						#clock-cells = <0>;
 						reg = <47>;
 					};
+
+					macb0_clk: macb0_clk {
+						#clock-cells = <0>;
+						reg = <24>;
+					};
 				};
 
 				generic: gck {
diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm/dts/sam9x60ek.dts
index e64566ec8e58..6fe9f19f0bc7 100644
--- a/arch/arm/dts/sam9x60ek.dts
+++ b/arch/arm/dts/sam9x60ek.dts
@@ -17,3 +17,8 @@
 		stdout-path = &dbgu;
 	};
 };
+
+&macb0 {
+	phy-mode = "rmii";
+	status = "okay";
+};
-- 
2.9.5

  parent reply	other threads:[~2019-09-27 13:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27 13:08 [U-Boot] [U-boot][PATCH v3 00/14] Add support for sam9x60ek Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 01/14] net: macb: Add sam9x60-macb compatibility string Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 02/14] mmc: atmel_sdhci: Add sam9x60-sdhci " Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 03/14] ARM: at91: Add sam9x60 soc Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 04/14] ARM: dts: Add dts files for sam9x60ek Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` Tudor.Ambarus at microchip.com [this message]
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 06/14] board: atmel: Add sam9x60ek board Tudor.Ambarus at microchip.com
2019-09-27 13:08 ` [U-Boot] [U-boot][PATCH v3 07/14] configs: Add sam9x60ek_mmc_defconfig Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 08/14] ARM: at91: Rename sama5_sfr.h to at91_sfr.h Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 09/14] ARM: at91: Add SFR definitions Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 10/14] board: sam9x60ek: Add NAND flash support Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 11/14] configs: Add sam9x60ek_nandflash_defconfig Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 12/14] configs: sam9x60ek: Add QSPI_BOOT defines Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 13/14] ARM: dts: at91: sam9x60ek: Enable qspi node Tudor.Ambarus at microchip.com
2019-09-27 13:09 ` [U-Boot] [U-boot][PATCH v3 14/14] configs: Add sam9x60ek_qspiflash_defconfig Tudor.Ambarus at microchip.com
2019-10-07  6:43 ` [U-Boot] [U-boot][PATCH v3 00/14] Add support for sam9x60ek Eugen.Hristev at microchip.com

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=20190927130818.478-6-tudor.ambarus@microchip.com \
    --to=tudor.ambarus@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 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.