Skip to contentSkip to conversation

board: at91: sama5d29_curiosity: add initial support for sama5d29_curiosity

PATCH In review Mihai Sain 2 participants 2 messages Jul 24, 2023 – Aug 7, 2023

Subsystems (3)
lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

PATCH v2 1/1 board: at91: sama5d29_curiosity: add initial support for sama5d29_curiosity

Add initial support for sama5d29_curiosity board.

Hardware:
SoC: SAMA5D29 500 MHz
DRAM: LPDDR2 512 MiB
PMIC: MCP16502
Debug: UART0
Flash: QSPI NOR 8 MiB
RGB LCD connector
Mikrobus connectors x 2
SD-Card connectors x 2
USB 2.0 x 2

Changes in v2:
* Remove CONFIG_SYS_PROMPT and CONFIG_SYS_PROMPT_HUSH_PS2
* Remove CONFIG_SYS_SDRAM_BASE and CONFIG_SYS_SDRAM_SIZE

---
 arch/arm/dts/Makefile                         |   3 +
 .../dts/at91-sama5d29_curiosity-u-boot.dtsi   |  55 +++++
 arch/arm/dts/at91-sama5d29_curiosity.dts      | 219 ++++++++++++++++++
 arch/arm/mach-at91/Kconfig                    |  12 +
 board/atmel/sama5d29_curiosity/Kconfig        |  15 ++
 board/atmel/sama5d29_curiosity/MAINTAINERS    |   8 +
 board/atmel/sama5d29_curiosity/Makefile       |   7 +
 .../sama5d29_curiosity/sama5d29_curiosity.c   |  86 +++++++
 configs/sama5d29_curiosity_mmc1_defconfig     | 120 ++++++++++
 configs/sama5d29_curiosity_mmc_defconfig      | 119 ++++++++++
 .../sama5d29_curiosity_qspiflash_defconfig    | 119 ++++++++++
 include/configs/sama5d29_curiosity.h          |  17 ++
 12 files changed, 780 insertions(+)
 create mode 100644 arch/arm/dts/at91-sama5d29_curiosity-u-boot.dtsi
 create mode 100644 arch/arm/dts/at91-sama5d29_curiosity.dts
 create mode 100644 board/atmel/sama5d29_curiosity/Kconfig
 create mode 100644 board/atmel/sama5d29_curiosity/MAINTAINERS
 create mode 100644 board/atmel/sama5d29_curiosity/Makefile
 create mode 100644 board/atmel/sama5d29_curiosity/sama5d29_curiosity.c
 create mode 100644 configs/sama5d29_curiosity_mmc1_defconfig
 create mode 100644 configs/sama5d29_curiosity_mmc_defconfig
 create mode 100644 configs/sama5d29_curiosity_qspiflash_defconfig
 create mode 100644 include/configs/sama5d29_curiosity.h
arch/arm/dts/Makefile +3 -0
index b7780de776..eecb9adca2 100644
@@ -1172,6 +1172,9 @@ dtb-$(CONFIG_TARGET_SAMA5D27_WLSOM1_EK) += \
 dtb-$(CONFIG_TARGET_SAMA5D2_ICP) += \
 	at91-sama5d2_icp.dtb
 
+dtb-$(CONFIG_TARGET_SAMA5D29_CURIOSITY) += \
+	at91-sama5d29_curiosity.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D3XEK) += \
 	sama5d31ek.dtb \
 	sama5d33ek.dtb \
arch/arm/dts/at91-sama5d29_curiosity-u-boot.dtsi new file +55 -0

55 lines not on this page · raw message

arch/arm/dts/at91-sama5d29_curiosity.dts new file +219 -0

219 lines not on this page · raw message

arch/arm/mach-at91/Kconfig +12 -0
index 7c2e4ebbdb..4c65fc0dbd 100644
@@ -215,6 +215,17 @@ config TARGET_SAMA5D2_ICP
 	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
 	  EtherCat and WILC3000 devices on board.
 
+config TARGET_SAMA5D29_CURIOSITY
+	bool "SAMA5D29 CURIOSITY board"
+	select SAMA5D2
+	select BOARD_EARLY_INIT_F
+	select BOARD_LATE_INIT
+	select CPU_V7A
+	help
+	  The SAMA5D29 Curiosity embeds SAMA5D29 SoC with 4 Gbit LPDDR2-SDRAM,
+	  a 64Mbit QSPI flash with Mac-address, MCP16502 PMIC, RGB LCD connector,
+	  2 x Mikrobus connectors, 2 x SD-Card connectors, 2 x USB
+
 config TARGET_SAMA5D3_XPLAINED
 	bool "SAMA5D3 Xplained board"
 	select BOARD_EARLY_INIT_F
@@ -346,6 +357,7 @@ source "board/atmel/sama5d2_xplained/Kconfig"
 source "board/atmel/sama5d27_som1_ek/Kconfig"
 source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
 source "board/atmel/sama5d2_icp/Kconfig"
+source "board/atmel/sama5d29_curiosity/Kconfig"
 source "board/atmel/sama5d3_xplained/Kconfig"
 source "board/atmel/sama5d3xek/Kconfig"
 source "board/atmel/sama5d4_xplained/Kconfig"
board/atmel/sama5d29_curiosity/Kconfig new file +15 -0
new file mode 100644
index 0000000000..64ca237697
@@ -0,0 +1,15 @@
+if TARGET_SAMA5D29_CURIOSITY
+
+config SYS_BOARD
+	default "sama5d29_curiosity"
+
+config SYS_VENDOR
+	default "atmel"
+
+config SYS_SOC
+	default "at91"
+
+config SYS_CONFIG_NAME
+	default "sama5d29_curiosity"
+
+endif
board/atmel/sama5d29_curiosity/MAINTAINERS new file +8 -0
new file mode 100644
index 0000000000..110c3d2874
@@ -0,0 +1,8 @@
+SAMA5D29 CURIOSITY BOARD
+M:     Mihai Sain <[email protected]>
+S:     Maintained
+F:     board/atmel/sama5d29_curiosity.c
+F:     include/configs/sama5d29_curiosity.h
+F:     configs/sama5d29_curiosity_mmc_defconfig
+F:     configs/sama5d29_curiosity_mmc1_defconfig
+F:     configs/sama5d29_curiosity_qspiflash_defconfig
board/atmel/sama5d29_curiosity/Makefile new file +7 -0
new file mode 100644
index 0000000000..848e1ce149
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+#
+# Author: Mihai Sain <[email protected]>
+
+obj-y += sama5d29_curiosity.o
board/atmel/sama5d29_curiosity/sama5d29_curiosity.c new file +86 -0

86 lines not on this page · raw message

configs/sama5d29_curiosity_mmc1_defconfig new file +120 -0

120 lines not on this page · raw message

configs/sama5d29_curiosity_mmc_defconfig new file +119 -0

119 lines not on this page · raw message

configs/sama5d29_curiosity_qspiflash_defconfig new file +119 -0

119 lines not on this page · raw message

include/configs/sama5d29_curiosity.h new file +17 -0
new file mode 100644
index 0000000000..ef09b8b25b
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Configuration file for the SAMA5D29 CURIOSITY board.
+ *
+ * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Mihai Sain <[email protected]>
+ *
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CFG_SYS_AT91_SLOW_CLOCK		32768
+#define CFG_SYS_AT91_MAIN_CLOCK		24000000
+
+#endif
Signature · 1 line
2.41.0
#1 lore raw
Quoted 13 lines · Mihai Sain

Add initial support for sama5d29_curiosity board.

Hardware:
SoC: SAMA5D29 500 MHz
DRAM: LPDDR2 512 MiB
PMIC: MCP16502
Debug: UART0
Flash: QSPI NOR 8 MiB
RGB LCD connector
Mikrobus connectors x 2
SD-Card connectors x 2
USB 2.0 x 2

Quoted 1 line

Changes in v2:

The version changes must be written after the --- dashes, such that they will not land in the commit message. I fixed this for you.

Quoted 5 lines

* Remove CONFIG_SYS_PROMPT and CONFIG_SYS_PROMPT_HUSH_PS2
* Remove CONFIG_SYS_SDRAM_BASE and CONFIG_SYS_SDRAM_SIZE

---

[snip]

Quoted 6 lines
board/atmel/sama5d29_curiosity/MAINTAINERS new file +0 -0
new file mode 100644
index 0000000000..110c3d2874

board/atmel/sama5d29_curiosity/MAINTAINERS line 8

Quoted 8 lines
board/atmel/sama5d29_curiosity/MAINTAINERS new file +8 -0
@@ -0,0 +1,8 @@
+SAMA5D29 CURIOSITY BOARD
+M:     Mihai Sain <[email protected]>
+S:     Maintained
+F:     board/atmel/sama5d29_curiosity.c
+F:     include/configs/sama5d29_curiosity.h
+F:     configs/sama5d29_curiosity_mmc_defconfig
+F:     configs/sama5d29_curiosity_mmc1_defconfig
+F:     configs/sama5d29_curiosity_qspiflash_defconfig

New requirement is to have the DT files added to this list as well

I added them for you,

and applied to u-boot-at91/next , thanks !