Skip to contentSkip to conversation

board: atmel: add SAMA5D2 ICP board

PATCH Superseded Eugen.Hristev at microchip.com 1 participant 1 message Apr 9, 2019

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: atmel: add SAMA5D2 ICP board

From: Eugen Hristev <[email protected]>

The SAMA5D2 ICP Board features the SAMA5D27 SoC, together with QSPI Flash, Wilc3000 wireless device and EtherCat support.

---

Changes in v2:
- created at91-sama5d2_icp-u-boot.dtsi with the pre-reloc properties
- removed some #ifdef as suggested by Stefan
- fixed issue with wrong SPL FAT FS in defconfig
- fixed build issue with wrong DRAM_BANKS redefine

 arch/arm/dts/Makefile                     |   3 +
 arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi |  30 +++++
 arch/arm/dts/at91-sama5d2_icp.dts         |  95 +++++++++++++++
 arch/arm/mach-at91/Kconfig                |  12 ++
 board/atmel/sama5d2_icp/Kconfig           |  15 +++
 board/atmel/sama5d2_icp/MAINTAINERS       |   7 ++
 board/atmel/sama5d2_icp/Makefile          |   7 ++
 board/atmel/sama5d2_icp/sama5d2_icp.c     | 191 ++++++++++++++++++++++++++++++
 configs/sama5d2_icp_mmc_defconfig         |  73 ++++++++++++
 include/configs/sama5d2_icp.h             |  69 +++++++++++
 10 files changed, 502 insertions(+)
 create mode 100644 arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi
 create mode 100644 arch/arm/dts/at91-sama5d2_icp.dts
 create mode 100644 board/atmel/sama5d2_icp/Kconfig
 create mode 100644 board/atmel/sama5d2_icp/MAINTAINERS
 create mode 100644 board/atmel/sama5d2_icp/Makefile
 create mode 100644 board/atmel/sama5d2_icp/sama5d2_icp.c
 create mode 100644 configs/sama5d2_icp_mmc_defconfig
 create mode 100644 include/configs/sama5d2_icp.h
arch/arm/dts/Makefile +3 -0
index 930b7e0..a3bfb11 100644
@@ -643,6 +643,9 @@ dtb-$(CONFIG_TARGET_SAMA5D2_XPLAINED) += \
 dtb-$(CONFIG_TARGET_SAMA5D27_SOM1_EK) += \
 	at91-sama5d27_som1_ek.dtb
 
+dtb-$(CONFIG_TARGET_SAMA5D2_ICP) += \
+	at91-sama5d2_icp.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D3XEK) += \
 	sama5d31ek.dtb \
 	sama5d33ek.dtb \
arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi new file +30 -0
new file mode 100644
index 0000000..347fa81
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * at91-sama5d2_icp-for-uboot.dtsi - Device Tree file for SAMA5D2 ICP board
+ *			SAMA5D2 Industrial Connectivity Platform
+ *
+ *  Copyright (c) 2019, Microchip Technology Inc. and its subsidiaries
+ *                2019, Eugen Hristev <[email protected]>
+ */
+
+/ {
+	chosen {
+		u-boot,dm-pre-reloc;
+	};
+};
+
+&sdmmc0 {
+	u-boot,dm-pre-reloc;
+};
+
+&uart0 { /* mikrobus1 uart */
+	u-boot,dm-pre-reloc;
+};
+
+&pinctrl_sdmmc0_default {
+	u-boot,dm-pre-reloc;
+};
+
+&pinctrl_mikrobus1_uart {
+	u-boot,dm-pre-reloc;
+};
arch/arm/dts/at91-sama5d2_icp.dts new file +95 -0

95 lines not on this page · raw message

arch/arm/mach-at91/Kconfig +12 -0
index a089e94..c3b21b7 100644
@@ -180,6 +180,17 @@ config TARGET_SAMA5D27_SOM1_EK
 	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
 	  in a single package.
 
+config TARGET_SAMA5D2_ICP
+	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
+	select CPU_V7A
+	select SUPPORT_SPL
+	select BOARD_EARLY_INIT_F
+	select BOARD_LATE_INIT
+	help
+	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
+	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
+	  EtherCat and WILC3000 devices on board.
+
 config TARGET_SAMA5D3_XPLAINED
 	bool "SAMA5D3 Xplained board"
 	select BOARD_EARLY_INIT_F
@@ -281,6 +292,7 @@ source "board/atmel/at91sam9x5ek/Kconfig"
 source "board/atmel/sama5d2_ptc_ek/Kconfig"
 source "board/atmel/sama5d2_xplained/Kconfig"
 source "board/atmel/sama5d27_som1_ek/Kconfig"
+source "board/atmel/sama5d2_icp/Kconfig"
 source "board/atmel/sama5d3_xplained/Kconfig"
 source "board/atmel/sama5d3xek/Kconfig"
 source "board/atmel/sama5d4_xplained/Kconfig"
board/atmel/sama5d2_icp/Kconfig new file +15 -0
new file mode 100644
index 0000000..3859845
@@ -0,0 +1,15 @@
+if TARGET_SAMA5D2_ICP
+
+config SYS_BOARD
+	default "sama5d2_icp"
+
+config SYS_VENDOR
+	default "atmel"
+
+config SYS_SOC
+	default "at91"
+
+config SYS_CONFIG_NAME
+	default "sama5d2_icp"
+
+endif
board/atmel/sama5d2_icp/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000..db984b6
@@ -0,0 +1,7 @@
+SAMA5D2 ICP BOARD
+M:     Eugen Hristev <[email protected]>
+S:     Maintained
+F:     board/atmel/sama5d2_icp/
+F:     include/configs/sama5d2_icp.h
+F:     configs/sama5d2_icp_mmc_defconfig
+
board/atmel/sama5d2_icp/Makefile new file +7 -0
new file mode 100644
index 0000000..fd7e870
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier:     GPL-2.0+
+#
+# Copyright (C) 2018 Microchip Technology Inc.
+#                   Eugen Hristev <[email protected]>
+#
+
+obj-y += sama5d2_icp.o
board/atmel/sama5d2_icp/sama5d2_icp.c new file +191 -0

191 lines not on this page · raw message

configs/sama5d2_icp_mmc_defconfig new file +73 -0

73 lines not on this page · raw message

include/configs/sama5d2_icp.h new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.7.4