public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Paul Barker <paul.barker@sancloud.com>
To: u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>
Cc: Paul Barker <paul.barker@sancloud.com>
Subject: [PATCH 2/4] arm: dts: am335x-sancloud-bbe: New dtb to support ethernet
Date: Thu, 17 Jun 2021 10:02:20 +0100	[thread overview]
Message-ID: <20210617090222.7516-2-paul.barker@sancloud.com> (raw)
In-Reply-To: <20210617090222.7516-1-paul.barker@sancloud.com>

To Ethernet PHY on the the SanCloud BeagleBone Enhanced (BBE) is
connected to the AM335x SoC via RGMII.

Signed-off-by: Paul Barker <paul.barker@sancloud.com>
---
 arch/arm/dts/Makefile                |  1 +
 arch/arm/dts/am335x-sancloud-bbe.dts | 25 +++++++++++++++++++++++++
 board/ti/am335x/board.c              |  2 ++
 configs/am335x_evm_defconfig         |  2 +-
 4 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/am335x-sancloud-bbe.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 096068261d..1ffbd8e7ae 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -360,6 +360,7 @@ dtb-$(CONFIG_AM33XX) += \
 	am335x-pocketbeagle.dtb \
 	am335x-pxm50.dtb \
 	am335x-rut.dtb \
+	am335x-sancloud-bbe.dtb \
 	am335x-shc.dtb \
 	am335x-pdu001.dtb \
 	am335x-chiliboard.dtb \
diff --git a/arch/arm/dts/am335x-sancloud-bbe.dts b/arch/arm/dts/am335x-sancloud-bbe.dts
new file mode 100644
index 0000000000..d205796e3a
--- /dev/null
+++ b/arch/arm/dts/am335x-sancloud-bbe.dts
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2021 SanCloud Ltd
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+#include "am33xx.dtsi"
+#include "am335x-bone-common.dtsi"
+#include "am335x-boneblack-common.dtsi"
+
+/ {
+	model = "Sancloud BeagleBone Enhanced (TI AM335x)";
+	compatible = "sancloud,am335x-boneenhanced",
+		     "ti,am335x-bone-black",
+		     "ti,am335x-bone",
+		     "ti,am33xx";
+};
+
+&cpsw_emac0 {
+	phy-mode = "rgmii-id";
+};
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 5959ff73dc..5c3c1a630d 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -954,6 +954,8 @@ int board_fit_config_name_match(const char *name)
 		return 0;
 	else if (board_is_icev2() && !strcmp(name, "am335x-icev2"))
 		return 0;
+	else if (board_is_bben() && !strcmp(name, "am335x-sancloud-bbe"))
+		return 0;
 	else
 		return -1;
 }
diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig
index edb56283df..4a9aeea648 100644
--- a/configs/am335x_evm_defconfig
+++ b/configs/am335x_evm_defconfig
@@ -37,7 +37,7 @@ CONFIG_MTDIDS_DEFAULT="nand0=nand.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)"
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
-CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2 am335x-pocketbeagle"
+CONFIG_OF_LIST="am335x-evm am335x-bone am335x-sancloud-bbe am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2 am335x-pocketbeagle"
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
-- 
2.26.2


  reply	other threads:[~2021-06-17  9:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17  9:02 [PATCH 1/4] arm: dts: am335x-boneblack: Extract common config Paul Barker
2021-06-17  9:02 ` Paul Barker [this message]
2021-06-17  9:02 ` [PATCH 3/4] configs: am335x_evm: Support GbE PHYs Paul Barker
2021-06-17  9:02 ` [PATCH 4/4] configs: am335x_evm: Fix BeagleBone Green DTB selection Paul Barker
2021-06-17 10:05 ` [PATCH 1/4] arm: dts: am335x-boneblack: Extract common config Peter Robinson
2021-06-17 10:31   ` Paul Barker
2021-06-17 10:35     ` Peter Robinson
2021-06-17 10:49       ` Paul Barker
2021-06-17 12:27     ` Tom Rini
2021-07-12 16:23       ` Paul Barker
2021-07-13  5:58         ` Lokesh Vutla

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=20210617090222.7516-2-paul.barker@sancloud.com \
    --to=paul.barker@sancloud.com \
    --cc=trini@konsulko.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