Skip to contentSkip to conversation

Add support for sam9x60_curiosity

PATCH In review Durai Manickam KR 2 participants 5 messages Apr 4, 2022 – Apr 27, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover Add support for sam9x60_curiosity

---
v2 -> v3:
- Few symbols defined in the board specific header file (i.e) sam9x60_curiosity.h are no longer accepted by the u-boot mainline. So the below changes has been done.
- NAND symbols are no longer accepted by the u-boot mainline. This shall be migrated to device tree model. So, this patch series contains only SDMMC support. NAND support will be added once device tree model is implemented.
- Removed sam9x60_curiosity_nand_hw_init function from the board specific C file.
- Removed the NAND config support in the SDMMC defconfig.
- Converted CONFIG_BOOTP_BOOTFILESIZE to Kconfig

---
v1 -> v2:
- This patch series adds support for sam9x60_curiosity.
- Converted CONFIG_ATMEL_LEGACY to Kconfig. Previosly sent patch series from u-boot/master branch now sending the patch series on top of u-boot/next branch as v2.

Durai Manickam KR (3):
board: Add sam9x60_curiosity support
ARM: dts: Add device tree files for sam9x60_curiosity
configs: Add sam9x60_curiosity_mmc_defconfig

 arch/arm/dts/Makefile                         |  2 +
 .../dts/at91-sam9x60_curiosity-u-boot.dtsi    | 79 +++++++++++++++++++
 arch/arm/dts/at91-sam9x60_curiosity.dts       | 74 +++++++++++++++++
 arch/arm/mach-at91/Kconfig                    |  7 ++
 board/atmel/sam9x60_curiosity/Kconfig         | 15 ++++
 board/atmel/sam9x60_curiosity/MAINTAINERS     |  7 ++
 board/atmel/sam9x60_curiosity/Makefile        |  7 ++
 .../sam9x60_curiosity/sam9x60_curiosity.c     | 75 ++++++++++++++++++
 configs/sam9x60_curiosity_mmc_defconfig       | 74 +++++++++++++++++
 include/configs/sam9x60_curiosity.h           | 31 ++++++++
 10 files changed, 371 insertions(+)
 create mode 100644 arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi
 create mode 100644 arch/arm/dts/at91-sam9x60_curiosity.dts
 create mode 100644 board/atmel/sam9x60_curiosity/Kconfig
 create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS
 create mode 100644 board/atmel/sam9x60_curiosity/Makefile
 create mode 100644 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
 create mode 100644 configs/sam9x60_curiosity_mmc_defconfig
 create mode 100644 include/configs/sam9x60_curiosity.h
Signature · 1 line
2.25.1
#1 lore raw

PATCH v3 1/3 board: Add sam9x60_curiosity support

Add board files, Kconfig, Makefile and MAINTAINERS.

---
 arch/arm/mach-at91/Kconfig                    |  7 ++
 board/atmel/sam9x60_curiosity/Kconfig         | 15 ++++
 board/atmel/sam9x60_curiosity/MAINTAINERS     |  6 ++
 board/atmel/sam9x60_curiosity/Makefile        |  7 ++
 .../sam9x60_curiosity/sam9x60_curiosity.c     | 75 +++++++++++++++++++
 include/configs/sam9x60_curiosity.h           | 31 ++++++++
 6 files changed, 141 insertions(+)
 create mode 100644 board/atmel/sam9x60_curiosity/Kconfig
 create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS
 create mode 100644 board/atmel/sam9x60_curiosity/Makefile
 create mode 100644 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
 create mode 100644 include/configs/sam9x60_curiosity.h
arch/arm/mach-at91/Kconfig +7 -0
index 145c4b276b..7b2a62bf8a 100644
@@ -164,6 +164,12 @@ config TARGET_SAM9X60EK
 	select BOARD_EARLY_INIT_F
 	select BOARD_LATE_INIT
 
+config TARGET_SAM9X60_CURIOSITY
+        bool "SAM9X60 CURIOSITY board"
+        select SAM9X60
+        select BOARD_EARLY_INIT_F
+        select BOARD_LATE_INIT
+
 config TARGET_SAMA5D2_PTC_EK
 	bool "SAMA5D2 PTC EK board"
 	select BOARD_EARLY_INIT_F
@@ -335,6 +341,7 @@ source "board/atmel/at91sam9n12ek/Kconfig"
 source "board/atmel/at91sam9rlek/Kconfig"
 source "board/atmel/at91sam9x5ek/Kconfig"
 source "board/atmel/sam9x60ek/Kconfig"
+source "board/atmel/sam9x60_curiosity/Kconfig"
 source "board/atmel/sama7g5ek/Kconfig"
 source "board/atmel/sama5d2_ptc_ek/Kconfig"
 source "board/atmel/sama5d2_xplained/Kconfig"
board/atmel/sam9x60_curiosity/Kconfig new file +15 -0
new file mode 100644
index 0000000000..ae84e0f32c
@@ -0,0 +1,15 @@
+if TARGET_SAM9X60_CURIOSITY
+
+config SYS_BOARD
+	default "sam9x60_curiosity"
+
+config SYS_VENDOR
+	default "atmel"
+
+config SYS_SOC
+        default "at91"
+
+config SYS_CONFIG_NAME
+	default "sam9x60_curiosity"
+
+endif
board/atmel/sam9x60_curiosity/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..84a3a9f186
@@ -0,0 +1,6 @@
+SAM9X60 CURIOSITY BOARD
+M:	Durai Manickam KR <[email protected]>
+M:	Eugen Hristev <[email protected]>
+S:	Maintained
+F:	board/atmel/sam9x60_curiosity/
+F:	include/configs/sam9x60_curiosity.h
board/atmel/sam9x60_curiosity/Makefile new file +7 -0
new file mode 100644
index 0000000000..c4d17e66d4
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
+#
+# Author: Durai Manickam KR <[email protected]>
+
+obj-y += sam9x60_curiosity.o
board/atmel/sam9x60_curiosity/sam9x60_curiosity.c new file +75 -0

75 lines not on this page · raw message

include/configs/sam9x60_curiosity.h new file +31 -0
new file mode 100644
index 0000000000..2708711a4e
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Configuration settings for the SAM9X60 CURIOSITY board.
+ *
+ * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Durai Manickam KR <[email protected]>
+ */
+
+#ifndef __CONFIG_H__
+#define __CONFIG_H__
+
+#define CONFIG_SYS_AT91_SLOW_CLOCK	32768
+#define CONFIG_SYS_AT91_MAIN_CLOCK	24000000	/* 24 MHz crystal */
+
+#define CONFIG_USART_BASE   ATMEL_BASE_DBGU
+#define CONFIG_USART_ID     0 /* ignored in arm */
+
+/* SDRAM */
+#define CONFIG_SYS_SDRAM_BASE		0x20000000
+#define CONFIG_SYS_SDRAM_SIZE		0x8000000	/* 128 MB */
+
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SYS_INIT_SP_ADDR         0x218000
+#else
+#define CONFIG_SYS_INIT_SP_ADDR \
+	(CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \
+	 GENERATED_GBL_DATA_SIZE)
+#endif
+
+#endif
Signature · 1 line
2.25.1
#2 lore raw

PATCH v3 2/3 ARM: dts: Add device tree files for sam9x60_curiosity

In reply to Durai Manickam KR

Add dts and dtsi files.

---
 arch/arm/dts/Makefile                         |  2 +
 .../dts/at91-sam9x60_curiosity-u-boot.dtsi    | 79 +++++++++++++++++++
 arch/arm/dts/at91-sam9x60_curiosity.dts       | 74 +++++++++++++++++
 3 files changed, 155 insertions(+)
 create mode 100644 arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi
 create mode 100644 arch/arm/dts/at91-sam9x60_curiosity.dts
arch/arm/dts/Makefile +2 -0
index 99dc7bc777..2cebc533ac 100644
@@ -1007,6 +1007,8 @@ dtb-$(CONFIG_TARGET_AT91SAM9X5EK) += \
 
 dtb-$(CONFIG_TARGET_SAM9X60EK) += sam9x60ek.dtb
 
+dtb-$(CONFIG_TARGET_SAM9X60_CURIOSITY) += at91-sam9x60_curiosity.dtb
+
 dtb-$(CONFIG_TARGET_AT91SAM9N12EK) += at91sam9n12ek.dtb
 
 dtb-$(CONFIG_TARGET_GARDENA_SMART_GATEWAY_AT91SAM) += \
arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi new file +79 -0

79 lines not on this page · raw message

arch/arm/dts/at91-sam9x60_curiosity.dts new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
2.25.1
#3 lore raw

PATCH v3 3/3 configs: Add sam9x60_curiosity_mmc_defconfig

In reply to Durai Manickam KR

Add boot from SDMMC (sdcard) support for sam9x60_curiosity.

---
 board/atmel/sam9x60_curiosity/MAINTAINERS |  1 +
 configs/sam9x60_curiosity_mmc_defconfig   | 74 +++++++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 configs/sam9x60_curiosity_mmc_defconfig
board/atmel/sam9x60_curiosity/MAINTAINERS +1 -0
index 84a3a9f186..3e1dce2980 100644
@@ -4,3 +4,4 @@ M:	Eugen Hristev <[email protected]>
 S:	Maintained
 F:	board/atmel/sam9x60_curiosity/
 F:	include/configs/sam9x60_curiosity.h
+F:	configs/sam9x60_curiosity_mmc_defconfig
configs/sam9x60_curiosity_mmc_defconfig new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
2.25.1
#4 lore raw
In reply to Durai Manickam KR
Quoted 44 lines · Durai Manickam KR

---
v2 -> v3:
- Few symbols defined in the board specific header file (i.e) sam9x60_curiosity.h are no longer accepted by the u-boot mainline. So the below changes has been done.
- NAND symbols are no longer accepted by the u-boot mainline. This shall be migrated to device tree model. So, this patch series contains only SDMMC support. NAND support will be added once device tree model is implemented.
- Removed sam9x60_curiosity_nand_hw_init function from the board specific C file.
- Removed the NAND config support in the SDMMC defconfig.
- Converted CONFIG_BOOTP_BOOTFILESIZE to Kconfig

---
v1 -> v2:
- This patch series adds support for sam9x60_curiosity.
- Converted CONFIG_ATMEL_LEGACY to Kconfig. Previosly sent patch series from u-boot/master branch now sending the patch series on top of u-boot/next branch as v2.

Durai Manickam KR (3):
board: Add sam9x60_curiosity support
ARM: dts: Add device tree files for sam9x60_curiosity
configs: Add sam9x60_curiosity_mmc_defconfig

  arch/arm/dts/Makefile                         |  2 +
  .../dts/at91-sam9x60_curiosity-u-boot.dtsi    | 79 +++++++++++++++++++
  arch/arm/dts/at91-sam9x60_curiosity.dts       | 74 +++++++++++++++++
  arch/arm/mach-at91/Kconfig                    |  7 ++
  board/atmel/sam9x60_curiosity/Kconfig         | 15 ++++
  board/atmel/sam9x60_curiosity/MAINTAINERS     |  7 ++
  board/atmel/sam9x60_curiosity/Makefile        |  7 ++
  .../sam9x60_curiosity/sam9x60_curiosity.c     | 75 ++++++++++++++++++
  configs/sam9x60_curiosity_mmc_defconfig       | 74 +++++++++++++++++
  include/configs/sam9x60_curiosity.h           | 31 ++++++++
  10 files changed, 371 insertions(+)

create mode 100644 arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sam9x60_curiosity.dts create mode 100644 board/atmel/sam9x60_curiosity/Kconfig create mode 100644 board/atmel/sam9x60_curiosity/MAINTAINERS create mode 100644 board/atmel/sam9x60_curiosity/Makefile create mode 100644 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c create mode 100644 configs/sam9x60_curiosity_mmc_defconfig create mode 100644 include/configs/sam9x60_curiosity.h

Quoted 3 lines

--
2.25.1

Applied to u-boot-at91/master , thanks !