Add initial support for Microchip SAMA7G54 Curiosity board
v2 cover Add initial support for Microchip SAMA7G54 Curiosity board
This patch series adds initial support for Microchip SAMA7G54 Curiosity board.
Changes in v2:
--------------
* Update flexcom 10 node in order to match previous flexcom definitions.
* Sort in alphabetical order all nodes and pinctrl.
* Remove status okay from leds, nand, eeprom, flash.
* Add CONFIG_ENV_SIZE=0x4000 in mmc defconfig.
* Set CONFIG_ENV_SECT_SIZE=0x10000 in qspiflash defconfig.
Mihai Sain (4):
ARM: dts: at91: sama7g5: Add flexcom 10 node
ARM: dts: at91: sama7g54_curiosity: Add initial device tree of the board
board: at91: sama7g54_curiosity: Add initial board support
configs: at91: sama7g54_curiosity: Add initial default configs
arch/arm/dts/Makefile | 3 + .../dts/at91-sama7g54_curiosity-u-boot.dtsi | 59 +++++ arch/arm/dts/at91-sama7g54_curiosity.dts | 242 ++++++++++++++++++ arch/arm/dts/sama7g5.dtsi | 24 ++ arch/arm/mach-at91/Kconfig | 10 + board/atmel/sama7g54_curiosity/Kconfig | 15 ++ board/atmel/sama7g54_curiosity/MAINTAINERS | 9 + board/atmel/sama7g54_curiosity/Makefile | 7 + .../sama7g54_curiosity/sama7g54_curiosity.c | 36 +++ configs/sama7g54_curiosity_mmc_defconfig | 123 +++++++++ .../sama7g54_curiosity_nandflash_defconfig | 122 +++++++++ .../sama7g54_curiosity_qspiflash_defconfig | 122 +++++++++ include/configs/sama7g54_curiosity.h | 17 ++ 13 files changed, 789 insertions(+) create mode 100644 arch/arm/dts/at91-sama7g54_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sama7g54_curiosity.dts create mode 100644 board/atmel/sama7g54_curiosity/Kconfig create mode 100644 board/atmel/sama7g54_curiosity/MAINTAINERS create mode 100644 board/atmel/sama7g54_curiosity/Makefile create mode 100644 board/atmel/sama7g54_curiosity/sama7g54_curiosity.c create mode 100644 configs/sama7g54_curiosity_mmc_defconfig create mode 100644 configs/sama7g54_curiosity_nandflash_defconfig create mode 100644 configs/sama7g54_curiosity_qspiflash_defconfig create mode 100644 include/configs/sama7g54_curiosity.h
Signature · 1 line
2.44.0
PATCH v2 1/4 ARM: dts: at91: sama7g5: Add flexcom 10 node
Add flexcom 10 node for usage on the SAMA7G54 Curiosity board.
--- arch/arm/dts/sama7g5.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/dts/sama7g5.dtsi +24 -0
@@ -871,6 +871,30 @@ }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom"; + reg = <0xe2820000 0x200>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xe2820000 0x800>; + status = "disabled"; + + i2c10: i2c@600 { + compatible = "microchip,sama7g5-i2c", "microchip,sam9x60-i2c"; + reg = <0x600 0x200>; + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; + atmel,fifo-size = <32>; + dmas = <&dma0 AT91_XDMAC_DT_PERID(26)>, + <&dma0 AT91_XDMAC_DT_PERID(25)>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + }; + flx11: flexcom@e2824000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe2824000 0x200>;
Signature · 1 line
2.44.0
PATCH v2 2/4 ARM: dts: at91: sama7g54_curiosity: Add initial device tree of the board
In reply to Mihai SainAdd initial device tree of the SAMA7G54 Curiosity board.
--- arch/arm/dts/Makefile | 3 + .../dts/at91-sama7g54_curiosity-u-boot.dtsi | 59 +++++ arch/arm/dts/at91-sama7g54_curiosity.dts | 242 ++++++++++++++++++ 3 files changed, 304 insertions(+) create mode 100644 arch/arm/dts/at91-sama7g54_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sama7g54_curiosity.dts
arch/arm/dts/Makefile +3 -0
@@ -1266,6 +1266,9 @@ dtb-$(CONFIG_TARGET_OMAP4_SDP4430) += \ dtb-$(CONFIG_TARGET_SAMA7G5EK) += \ at91-sama7g5ek.dtb +dtb-$(CONFIG_TARGET_SAMA7G54_CURIOSITY) += \ + at91-sama7g54_curiosity.dtb + dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \ at91-sama5d2_ptc_ek.dtb
arch/arm/dts/at91-sama7g54_curiosity-u-boot.dtsi new file +59 -0
59 lines not on this page · raw message
arch/arm/dts/at91-sama7g54_curiosity.dts new file +242 -0
242 lines not on this page · raw message
Signature · 1 line
2.44.0
PATCH v2 3/4 board: at91: sama7g54_curiosity: Add initial board support
In reply to Mihai SainAdd initial support for SAMA7G54 Curiosity board.
Hardware:
SoC: SAMA7G54D2G SiP 1000 MHz
DRAM: DDR3 256 MiB
PMIC: MCP16502
Debug: UART3
Flash: QSPI NOR 8 MiB, SLC NAND 512 MiB
M.2 slot for wireless
Mikrobus connectors x 2
SD-Card connectors x 1
USB 2.0 x 3
--- arch/arm/mach-at91/Kconfig | 10 ++++++ board/atmel/sama7g54_curiosity/Kconfig | 15 ++++++++ board/atmel/sama7g54_curiosity/MAINTAINERS | 9 +++++ board/atmel/sama7g54_curiosity/Makefile | 7 ++++ .../sama7g54_curiosity/sama7g54_curiosity.c | 36 +++++++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 board/atmel/sama7g54_curiosity/Kconfig create mode 100644 board/atmel/sama7g54_curiosity/MAINTAINERS create mode 100644 board/atmel/sama7g54_curiosity/Makefile create mode 100644 board/atmel/sama7g54_curiosity/sama7g54_curiosity.c
arch/arm/mach-at91/Kconfig +10 -0
@@ -286,6 +286,15 @@ config TARGET_SAMA7G5EK select BOARD_EARLY_INIT_F select BOARD_LATE_INIT +config TARGET_SAMA7G54_CURIOSITY + bool "SAMA7G54 CURIOSITY board" + select SAMA7G5 + select CPU_V7A + help + The SAMA7G54 Curiosity embeds SAMA7G54D2G SiP (System in Package) + with 2Gbit DDR3-SDRAM, 64Mbit QSPI nor-flash with MAC-address, + 4Gbit SLC nand-flash, MCP16502 PMIC, 2 x Mikrobus connectors, + 1 x SD-Card connector, 1 x M.2 slot, 3 x USB config TARGET_TAURUS bool "Support taurus"
@@ -366,6 +375,7 @@ source "board/atmel/at91sam9x5ek/Kconfig" source "board/atmel/sam9x60ek/Kconfig" source "board/atmel/sam9x60_curiosity/Kconfig" source "board/atmel/sama7g5ek/Kconfig" +source "board/atmel/sama7g54_curiosity/Kconfig" source "board/atmel/sama5d2_ptc_ek/Kconfig" source "board/atmel/sama5d2_xplained/Kconfig" source "board/atmel/sama5d27_som1_ek/Kconfig"
board/atmel/sama7g54_curiosity/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_SAMA7G54_CURIOSITY + +config SYS_BOARD + default "sama7g54_curiosity" + +config SYS_VENDOR + default "atmel" + +config SYS_SOC + default "at91" + +config SYS_CONFIG_NAME + default "sama7g54_curiosity" + +endif
board/atmel/sama7g54_curiosity/MAINTAINERS new file +9 -0
@@ -0,0 +1,9 @@ +SAMA7G54 CURIOSITY BOARD +M: Mihai Sain <[email protected]> +S: Maintained +F: board/atmel/sama7g54_curiosity.c +F: include/configs/sama7g54_curiosity.h +F: configs/sama7g54_curiosity_mmc_defconfig +F: configs/sama7g54_curiosity_nandflash_defconfig +F: configs/sama7g54_curiosity_qspiflash_defconfig +F: arch/arm/dts/at91-sama7g54_curiosity*
board/atmel/sama7g54_curiosity/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries +# +# Author: Mihai Sain <[email protected]> + +obj-y += sama7g54_curiosity.o
board/atmel/sama7g54_curiosity/sama7g54_curiosity.c new file +36 -0
@@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries +* +* Author: Mihai Sain <[email protected]> +* +*/ + +#include <common.h> +#include <init.h> +#include <asm/global_data.h> +#include <asm/io.h> +#include <asm/arch/at91_common.h> +#include <asm/arch/atmel_pio4.h> +#include <asm/arch/gpio.h> +#include <asm/arch/sama7g5.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +// Address of boot parameters + gd->bd->bi_boot_params = gd->bd->bi_dram[0 ].start +0x100 ; + +return 0 ; +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +}
Signature · 1 line
2.44.0
PATCH v2 4/4 configs: at91: sama7g54_curiosity: Add initial default configs
In reply to Mihai SainAdd default configuration for nand-flash to boot the linux kernel. Add default configuration for qspi-flash to boot the linux kernel. Add default configuration for sd-card to boot the linux kernel. Configs are synced with savedefconfig.
--- configs/sama7g54_curiosity_mmc_defconfig | 123 ++++++++++++++++++ .../sama7g54_curiosity_nandflash_defconfig | 122 +++++++++++++++++ .../sama7g54_curiosity_qspiflash_defconfig | 122 +++++++++++++++++ include/configs/sama7g54_curiosity.h | 17 +++ 4 files changed, 384 insertions(+) create mode 100644 configs/sama7g54_curiosity_mmc_defconfig create mode 100644 configs/sama7g54_curiosity_nandflash_defconfig create mode 100644 configs/sama7g54_curiosity_qspiflash_defconfig create mode 100644 include/configs/sama7g54_curiosity.h
configs/sama7g54_curiosity_mmc_defconfig new file +123 -0
@@ -0,0 +1,123 @@ +CONFIG_ARM=y +CONFIG_ARCH_AT91=y +CONFIG_TEXT_BASE=0x66f00000 +CONFIG_SYS_MALLOC_LEN=0x1000000 +CONFIG_SYS_MALLOC_F_LEN=0x40000 +CONFIG_TARGET_SAMA7G54_CURIOSITY=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x60044000 +CONFIG_SF_DEFAULT_SPEED=50000000 +CONFIG_ENV_SIZE=0x4000 +CONFIG_DM_GPIO=y +CONFIG_DEFAULT_DEVICE_TREE="at91-sama7g54_curiosity" +CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_DM_RESET=y +CONFIG_SYS_LOAD_ADDR=0x62000000 +CONFIG_SYS_MEMTEST_START=0x60000000 +CONFIG_SYS_MEMTEST_END=0x68000000 +CONFIG_ENV_VARS_UBOOT_CONFIG=y +CONFIG_FIT=y +# CONFIG_BOOTSTD is not set +CONFIG_SYS_BOOTM_LEN=0x2000000 +CONFIG_NAND_BOOT=y +CONFIG_QSPI_BOOT=y +CONFIG_SD_BOOT=y +CONFIG_BOOTDELAY=3 +CONFIG_USE_BOOTARGS=y +CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/mmcblk1p2 rw rootwait" +CONFIG_USE_BOOTCOMMAND=y +CONFIG_BOOTCOMMAND="fatload mmc 1:1 0x61000000 at91-sama7g54_curiosity.dtb; fatload mmc 1:1 0x62000000 zImage; bootz 0x62000000 - 0x61000000" +CONFIG_LOGLEVEL=6 +CONFIG_BOARD_TYPES=y +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_HUSH_PARSER=y +CONFIG_CMD_CPU=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEM_SEARCH=y +CONFIG_CMD_MX_CYCLIC=y +CONFIG_CMD_MEMTEST=y +CONFIG_CMD_STRINGS=y +CONFIG_CMD_CLK=y +CONFIG_CMD_DM=y +CONFIG_CMD_GPIO=y +CONFIG_CMD_I2C=y +# CONFIG_CMD_LOADB is not set +# CONFIG_CMD_LOADS is not set +CONFIG_CMD_LSBLK=y +CONFIG_CMD_MMC=y +CONFIG_CMD_MTD=y +CONFIG_CMD_NAND=y +CONFIG_CMD_NAND_TRIMFFS=y +CONFIG_CMD_NAND_LOCK_UNLOCK=y +CONFIG_CMD_NAND_TORTURE=y +CONFIG_CMD_SF_TEST=y +CONFIG_CMD_CAT=y +CONFIG_CMD_XXD=y +CONFIG_CMD_RTC=y +CONFIG_CMD_TIME=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4_WRITE=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +CONFIG_CMD_MTDPARTS=y +CONFIG_CMD_MTDPARTS_SPREAD=y +CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y +CONFIG_MTDIDS_DEFAULT="nand0=nand0,nor0=nor0" +CONFIG_MTDPARTS_DEFAULT="mtdparts=nand0:256k(bootstrap-nand)ro,1M(u-boot-nand)ro,256k(env-nand)ro,512k(dtb-nand)ro,6M(kernel-nand)ro,-(rootfs-nand)ro;nor0:256k(bootstrap-nor)ro,1M(u-boot-nor)ro,256k(env-nor)ro,512k(dtb-nor)ro,6M(kernel-nor)ro" +CONFIG_OF_CONTROL=y +# CONFIG_OF_TAG_MIGRATE is not set +CONFIG_ENV_IS_IN_FAT=y +CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_USE_HOSTNAME=y +CONFIG_HOSTNAME="SAMA7G54" +CONFIG_VERSION_VARIABLE=y +# CONFIG_NET is not set +CONFIG_CLK=y +CONFIG_CLK_CCF=y +CONFIG_CLK_AT91=y +CONFIG_AT91_UTMI=y +CONFIG_AT91_GENERIC_CLK=y +CONFIG_AT91_SAM9X60_PLL=y +CONFIG_CPU=y +CONFIG_ATMEL_PIO4=y +CONFIG_DM_I2C=y +CONFIG_I2C_SET_DEFAULT_BUS_NUM=y +CONFIG_SYS_I2C_AT91=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_ATMEL_EBI=y +CONFIG_MFD_ATMEL_SMC=y +CONFIG_I2C_EEPROM=y +CONFIG_MICROCHIP_FLEXCOM=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_ATMEL=y +CONFIG_MTD=y +CONFIG_DM_MTD=y +CONFIG_DM_NAND_ATMEL=y +CONFIG_SYS_NAND_ONFI_DETECTION=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPI_FLASH_SST=y +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set +CONFIG_SPI_FLASH_MTD=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_AT91PIO4=y +CONFIG_RESET_AT91=y +CONFIG_DM_RTC=y +CONFIG_RTC_EMULATION=y +CONFIG_DM_SERIAL=y +CONFIG_ATMEL_USART=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_ATMEL_QSPI=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_AT91=y +CONFIG_TIMER=y +CONFIG_MCHP_PIT64B_TIMER=y +CONFIG_FAT_WRITE=y +CONFIG_CMD_DHRYSTONE=y +# CONFIG_EFI_LOADER is not set +CONFIG_PHANDLE_CHECK_SEQ=y
configs/sama7g54_curiosity_nandflash_defconfig new file +122 -0
122 lines not on this page · raw message
configs/sama7g54_curiosity_qspiflash_defconfig new file +122 -0
122 lines not on this page · raw message
include/configs/sama7g54_curiosity.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Configuration file for the SAMA7G54 CURIOSITY board. +* +* Copyright (C) 2024 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.44.0
Quoted 33 lines · Mihai Sain
This patch series adds initial support for Microchip SAMA7G54 Curiosity board.
Changes in v2:
--------------* Update flexcom 10 node in order to match previous flexcom definitions.
* Sort in alphabetical order all nodes and pinctrl.
* Remove status okay from leds, nand, eeprom, flash.
* AddCONFIG_ENV_SIZE=0x4000in mmc defconfig.
* SetCONFIG_ENV_SECT_SIZE=0x10000in qspiflash defconfig.Mihai Sain (4):
ARM: dts: at91: sama7g5: Add flexcom 10 node
ARM: dts: at91:sama7g54_curiosity: Add initial device tree of the board
board: at91:sama7g54_curiosity: Add initial board support
configs: at91:sama7g54_curiosity: Add initial default configsarch/arm/dts/Makefile | 3 + .../dts/at91-sama7g54_curiosity-u-boot.dtsi | 59 +++++ arch/arm/dts/at91-sama7g54_curiosity.dts | 242 ++++++++++++++++++ arch/arm/dts/sama7g5.dtsi | 24 ++ arch/arm/mach-at91/Kconfig | 10 + board/atmel/sama7g54_curiosity/Kconfig | 15 ++ board/atmel/sama7g54_curiosity/MAINTAINERS | 9 + board/atmel/sama7g54_curiosity/Makefile | 7 + .../sama7g54_curiosity/sama7g54_curiosity.c | 36 +++ configs/sama7g54_curiosity_mmc_defconfig | 123 +++++++++ .../sama7g54_curiosity_nandflash_defconfig | 122 +++++++++ .../sama7g54_curiosity_qspiflash_defconfig | 122 +++++++++ include/configs/sama7g54_curiosity.h | 17 ++ 13 files changed, 789 insertions(+) create mode 100644 arch/arm/dts/at91-sama7g54_curiosity-u-boot.dtsi create mode 100644 arch/arm/dts/at91-sama7g54_curiosity.dts
Quoted 9 lines
create mode 100644 board/atmel/sama7g54_curiosity/Kconfig create mode 100644 board/atmel/sama7g54_curiosity/MAINTAINERS create mode 100644 board/atmel/sama7g54_curiosity/Makefile create mode 100644 board/atmel/sama7g54_curiosity/sama7g54_curiosity.c create mode 100644 configs/sama7g54_curiosity_mmc_defconfig create mode 100644 configs/sama7g54_curiosity_nandflash_defconfig create mode 100644 configs/sama7g54_curiosity_qspiflash_defconfig create mode 100644 include/configs/sama7g54_curiosity.h
Applied to u-boot-at91/next , thanks !