Skip to contentSkip to conversation

arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

PATCH New Wolfgang Grandegger 4 participants 19 messages May 6, 2019 – May 8, 2019

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

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
---
 .travis.yml                                      |   2 +-
 arch/arm/dts/Makefile                            |   1 +
 arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
 arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
 arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
 arch/arm/mach-socfpga/Kconfig                    |   7 +
 board/aries/mcvevk/MAINTAINERS                   |   6 +
 board/aries/mcvevk/Makefile                      |   7 +
 board/aries/mcvevk/qts/iocsr_config.h            | 659 +++++++++++++++++++++++
 board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
 board/aries/mcvevk/qts/pll_config.h              |  84 +++
 board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++
 board/aries/mcvevk/socfpga.c                     |   5 +
 configs/socfpga_mcvevk_defconfig                 |  68 +++
 include/configs/socfpga_mcvevk.h                 | 102 ++++
 15 files changed, 1642 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/socfpga_cyclone5_mcv.dtsi
 create mode 100644 arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_cyclone5_mcvevk.dts
 create mode 100644 board/aries/mcvevk/MAINTAINERS
 create mode 100644 board/aries/mcvevk/Makefile
 create mode 100644 board/aries/mcvevk/qts/iocsr_config.h
 create mode 100644 board/aries/mcvevk/qts/pinmux_config.h
 create mode 100644 board/aries/mcvevk/qts/pll_config.h
 create mode 100644 board/aries/mcvevk/qts/sdram_config.h
 create mode 100644 board/aries/mcvevk/socfpga.c
 create mode 100644 configs/socfpga_mcvevk_defconfig
 create mode 100644 include/configs/socfpga_mcvevk.h
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
     - name: "buildman sandbox x86"
       env:
         - BUILDMAN="sandbox x86"
arch/arm/dts/Makefile +1 -0
index dfa5b02..9a6c4e2 100644
@@ -274,6 +274,7 @@ dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_arria5_socdk.dtb			\
 	socfpga_arria10_socdk_sdmmc.dtb			\
+	socfpga_cyclone5_mcvevk.dtb			\
 	socfpga_cyclone5_is1.dtb			\
 	socfpga_cyclone5_socdk.dtb			\
 	socfpga_cyclone5_dbm_soc1.dtb			\
arch/arm/dts/socfpga_cyclone5_mcv.dtsi new file +22 -0
new file mode 100644
index 0000000..bd92806
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+
+#include "socfpga_cyclone5.dtsi"
+
+/ {
+	model = "Aries/DENX MCV";
+	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+
+	memory at 0 {
+		name = "memory";
+		device_type = "memory";
+		reg = <0x0 0x40000000>; /* 1 GiB */
+	};
+};
+
+&mmc0 {	/* On-SoM eMMC */
+	bus-width = <8>;
+	status = "okay";
+};
arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi new file +38 -0
new file mode 100644
index 0000000..1afaa86
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ * Copyright (C) 2018 Wolfgang Grandegger <[email protected]>
+ */
+
+/{
+	soc {
+		u-boot,dm-pre-reloc;
+	};
+};
+
+&watchdog0 {
+	status = "disabled";
+};
+
+&mmc {
+	u-boot,dm-pre-reloc;
+};
+
+&uart0 {
+	clock-frequency = <100000000>;
+	u-boot,dm-pre-reloc;
+};
+
+&porta {
+	bank-name = "porta";
+};
+
+&portb {
+	bank-name = "portb";
+};
+
+&portc {
+	bank-name = "portc";
+};
arch/arm/dts/socfpga_cyclone5_mcvevk.dts new file +81 -0

81 lines not on this page · raw message

arch/arm/mach-socfpga/Kconfig +7 -0
index 8f7b79f..d3058d9 100644
@@ -64,6 +64,10 @@ choice
 	prompt "Altera SOCFPGA board select"
 	optional
 
+config TARGET_SOCFPGA_ARIES_MCVEVK
+	bool "Aries MCVEVK (Cyclone V)"
+	select TARGET_SOCFPGA_CYCLONE5
+
 config TARGET_SOCFPGA_ARRIA10_SOCDK
 	bool "Altera SOCFPGA SoCDK (Arria 10)"
 	select TARGET_SOCFPGA_ARRIA10
@@ -128,6 +132,7 @@ config SYS_BOARD
 	default "de1-soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
 	default "de10-nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
 	default "is1" if TARGET_SOCFPGA_IS1
+	default "mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
 	default "sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
 	default "socrates" if TARGET_SOCFPGA_EBV_SOCRATES
 	default "sr1500" if TARGET_SOCFPGA_SR1500
@@ -139,6 +144,7 @@ config SYS_VENDOR
 	default "altera" if TARGET_SOCFPGA_ARRIA10_SOCDK
 	default "altera" if TARGET_SOCFPGA_CYCLONE5_SOCDK
 	default "altera" if TARGET_SOCFPGA_STRATIX10_SOCDK
+	default "aries" if TARGET_SOCFPGA_ARIES_MCVEVK
 	default "devboards" if TARGET_SOCFPGA_DEVBOARDS_DBM_SOC1
 	default "ebv" if TARGET_SOCFPGA_EBV_SOCRATES
 	default "samtec" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA
@@ -159,6 +165,7 @@ config SYS_CONFIG_NAME
 	default "socfpga_de1_soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
 	default "socfpga_de10_nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
 	default "socfpga_is1" if TARGET_SOCFPGA_IS1
+	default "socfpga_mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
 	default "socfpga_sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
 	default "socfpga_socrates" if TARGET_SOCFPGA_EBV_SOCRATES
 	default "socfpga_sr1500" if TARGET_SOCFPGA_SR1500
board/aries/mcvevk/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..0e97941
@@ -0,0 +1,6 @@
+Aries MCVEVK BOARD
+M:	Wolfgang Grandegger <[email protected]>
+S:	Maintained
+F:	board/aries/mcvevk/
+F:	include/configs/socfpga_mcvevk.h
+F:	configs/socfpga_mcvevk_defconfig
board/aries/mcvevk/Makefile new file +7 -0
new file mode 100644
index 0000000..e1c8a6b
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2001-2006
+# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
+# (C) Copyright 2010, Thomas Chou <[email protected]>
+
+obj-y	:= socfpga.o
board/aries/mcvevk/qts/iocsr_config.h new file +659 -0

659 lines not on this page · raw message

board/aries/mcvevk/qts/pinmux_config.h new file +218 -0

218 lines not on this page · raw message

board/aries/mcvevk/qts/pll_config.h new file +84 -0

84 lines not on this page · raw message

board/aries/mcvevk/qts/sdram_config.h new file +343 -0

343 lines not on this page · raw message

board/aries/mcvevk/socfpga.c new file +5 -0
new file mode 100644
index 0000000..f173bf8
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+#include <common.h>
configs/socfpga_mcvevk_defconfig new file +68 -0

68 lines not on this page · raw message

include/configs/socfpga_mcvevk.h new file +102 -0

102 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 3 lines · Wolfgang Grandegger

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 3 lines
.travis.yml +0 -0
     - name: "buildman sandbox x86"
       env:
         - BUILDMAN="sandbox x86"

[...]

arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi line 6

Quoted 12 lines
arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi new file +6 -0
new file mode 100644
index 0000000..1afaa86
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ * Copyright (C) 2018 Wolfgang Grandegger <[email protected]>

It's 2019 now .
[...]

board/aries/mcvevk/MAINTAINERS line 6

Quoted 12 lines
board/aries/mcvevk/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..0e97941
@@ -0,0 +1,6 @@
+Aries MCVEVK BOARD
+M:	Wolfgang Grandegger <[email protected]>
+S:	Maintained
+F:	board/aries/mcvevk/
+F:	include/configs/socfpga_mcvevk.h
+F:	configs/socfpga_mcvevk_defconfig

DTs are missing in the list

[...]

board/aries/mcvevk/MAINTAINERS

Quoted 7 lines
board/aries/mcvevk/MAINTAINERS new file +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

[...]

Signature · 2 lines
Best regards,
Marek Vasut
#2 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 5 lines
Quoted 3 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

I don't know ;). That's from the original U-Boot support.

Quoted 51 lines
Quoted 4 lines
.travis.yml +0 -0
     - name: "buildman sandbox x86"
       env:
         - BUILDMAN="sandbox x86"

[...]

arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi line 6

Quoted 12 lines
arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi new file +6 -0
new file mode 100644
index 0000000..1afaa86
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ * Copyright (C) 2018 Wolfgang Grandegger <[email protected]>

It's 2019 now .
[...]

board/aries/mcvevk/MAINTAINERS line 6

Quoted 12 lines
board/aries/mcvevk/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..0e97941
@@ -0,0 +1,6 @@
+Aries MCVEVK BOARD
+M:	Wolfgang Grandegger <[email protected]>
+S:	Maintained
+F:	board/aries/mcvevk/
+F:	include/configs/socfpga_mcvevk.h
+F:	configs/socfpga_mcvevk_defconfig

DTs are missing in the list

[...]

board/aries/mcvevk/MAINTAINERS

Quoted 7 lines
board/aries/mcvevk/MAINTAINERS new file +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Thanks,

Wolfgang.

#3 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 13 lines · Wolfgang Grandegger

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Do the 12-byte hash should be in the commit message.

Quoted 15 lines
Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 2 lines

I don't know ;). That's from the original U-Boot support.

Is it needed ?

[...]

Quoted 13 lines
Quoted 13 lines

[...]

.travis.yml

Quoted 7 lines
.travis.yml +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 6 lines
Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Nope, it works with both GPT and MBR, look at partuuid command .

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 07.05.19 um 19:02 schrieb Marek Vasut:

Quoted 38 lines · Wolfgang Grandegger
Quoted 13 lines

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Do the 12-byte hash should be in the commit message.

Quoted 15 lines
Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 4 lines
Quoted 2 lines

I don't know ;). That's from the original U-Boot support.

Is it needed ?

I can't tell what it's good for! The header states: "build U-Boot on Travis CI". I will remove it!

Quoted 16 lines

[...]

Quoted 13 lines
Quoted 13 lines

[...]

.travis.yml

Quoted 7 lines
.travis.yml +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Nope, it works with both GPT and MBR, look at partuuid command .

Unfortunately, Buildroot does not set useful UUIDs:

=> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type

    1	2048      	2048      	00000000-01	a2
    2	4096      	65536     	00000000-02	0c Boot
    3	69632     	1024000   	00000000-03	83

Therefore I will stick with the device name.

Wolfgang.

#5 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 78 lines · Wolfgang Grandegger

Am 07.05.19 um 19:02 schrieb Marek Vasut:

Quoted 38 lines · Wolfgang Grandegger
Quoted 13 lines

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Do the 12-byte hash should be in the commit message.

Quoted 15 lines
Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 4 lines
Quoted 2 lines

I don't know ;). That's from the original U-Boot support.

Is it needed ?

I can't tell what it's good for! The header states: "build U-Boot on Travis CI". I will remove it!

Quoted 16 lines

[...]

Quoted 13 lines
Quoted 13 lines

[...]

.travis.yml

Quoted 7 lines
.travis.yml +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Nope, it works with both GPT and MBR, look at partuuid command .

Unfortunately, Buildroot does not set useful UUIDs:

=> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: DOS

Quoted 6 lines

Part Start Sector Num Sectors UUID Type

    1	2048      	2048      	00000000-01	a2
    2	4096      	65536     	00000000-02	0c Boot
    3	69632     	1024000   	00000000-03	83

Therefore I will stick with the device name.

Hum, too bad. Once someone attaches another SD card to your board, it might scramble the enumeration in Linux. Maybe it's something to fix in the longer run ?

Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 08.05.19 um 16:14 schrieb Marek Vasut:

Quoted 84 lines · Wolfgang Grandegger
Quoted 83 lines

Am 07.05.19 um 19:02 schrieb Marek Vasut:

Quoted 38 lines · Wolfgang Grandegger
Quoted 13 lines

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Do the 12-byte hash should be in the commit message.

Quoted 15 lines
Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 4 lines
Quoted 2 lines

I don't know ;). That's from the original U-Boot support.

Is it needed ?

I can't tell what it's good for! The header states: "build U-Boot on Travis CI". I will remove it!

Quoted 16 lines

[...]

Quoted 13 lines
Quoted 13 lines

[...]

.travis.yml

Quoted 7 lines
.travis.yml +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Nope, it works with both GPT and MBR, look at partuuid command .

Unfortunately, Buildroot does not set useful UUIDs:

=> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type

    1	2048      	2048      	00000000-01	a2
    2	4096      	65536     	00000000-02	0c Boot
    3	69632     	1024000   	00000000-03	83
Quoted 5 lines
Quoted 1 line

Therefore I will stick with the device name.

Hum, too bad. Once someone attaches another SD card to your board, it might scramble the enumeration in Linux. Maybe it's something to fix in the longer run ?

There is no SD-Card connected to the HPS, just the eMMC. Anyway, I will use PARTUUID. Our Buildroot port provides it's own env setting and therefore there should be no conflict (there are more differences, e.g. zImage instead of ftImage).

Wolfgang

#7 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 87 lines · Wolfgang Grandegger

Am 08.05.19 um 16:14 schrieb Marek Vasut:

Quoted 84 lines · Wolfgang Grandegger
Quoted 83 lines

Am 07.05.19 um 19:02 schrieb Marek Vasut:

Quoted 38 lines · Wolfgang Grandegger
Quoted 13 lines

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 6 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

I thought the board is now called MCVEVP , not MCVEVK ?

Yes, the new base board is called MCVEVP and the old MCVEVK. The patch supports both. Linux still uses the name of the old board. Not sure if it's worth changing the name.

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

If the DTs come from Linux, the exact commit should be stated here.

Yes, it's from the most recent version 5.1 of Linux.

Do the 12-byte hash should be in the commit message.

Quoted 15 lines
Quoted 14 lines

[...]

.travis.yml matrix: · line 233

Quoted 10 lines
.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 4 lines
Quoted 2 lines

I don't know ;). That's from the original U-Boot support.

Is it needed ?

I can't tell what it's good for! The header states: "build U-Boot on Travis CI". I will remove it!

Quoted 16 lines

[...]

Quoted 13 lines
Quoted 13 lines

[...]

.travis.yml

Quoted 7 lines
.travis.yml +7 -0
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\

Can you switch this to UUID/PARTUUID instead of ad-hoc hard-coded eMMC partitions ?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

[...]

This will only work with GPT partition tables, right? Buildroot still uses MBR.

Will have a look and fix the issues.

Nope, it works with both GPT and MBR, look at partuuid command .

Unfortunately, Buildroot does not set useful UUIDs:

=> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type

    1	2048      	2048      	00000000-01	a2
    2	4096      	65536     	00000000-02	0c Boot
    3	69632     	1024000   	00000000-03	83
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Therefore I will stick with the device name.

Hum, too bad. Once someone attaches another SD card to your board, it might scramble the enumeration in Linux. Maybe it's something to fix in the longer run ?

There is no SD-Card connected to the HPS, just the eMMC.

You have an FPGA on that devkit and you can connect SD card through that ; and maybe more than one. The DWMMC technically supports two cards too, but mainline Linux does not.

Quoted 4 lines

Anyway, I will
use PARTUUID. Our Buildroot port provides it's own env setting and therefore there should be no conflict (there are more differences, e.g. zImage instead of ftImage).

I am not demanding it, put whatever env you want in there, just keep in mind the implications.

Signature · 2 lines
Best regards,
Marek Vasut
#8 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

In reply to Wolfgang Grandegger
Quoted 5 lines · Wolfgang Grandegger

Am 06.05.19 um 19:55 schrieb Marek Vasut:

Quoted 4 lines · Wolfgang Grandegger
Quoted 3 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

[snip]

Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
.travis.yml +0 -0
index 8bd49ef..714b92e 100644
Quoted 8 lines

.travis.yml matrix: · line 233

Quoted 6 lines
.travis.yml +1 -1
@@ -230,7 +230,7 @@ matrix:
         - BUILDMAN="sun50i"
     - name: "buildman catch-all ARM"
       env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"

What's this about ?

Quoted 1 line

I don't know ;). That's from the original U-Boot support.

Since there's some confusion here, I'll explain so it can be handled correctly in any future re-inclusions. Due to a restriction on wall-clock job time in Travis-CI for open source projects, we split building the world up into a large number of jobs. We have lots of "build this vendor" type jobs, which in some cases means "everything from Toradex" and in other cases means "Everything that's an nvidia-provided SoC". There was a job for aries-produced boards and then they were also excluded from other jobs, so that for example we wouldn't build this platform under both "build all aries boards" and "build all socfpga boards". Since we're talking about just adding back this one socfpga board, we don't need to make a "build all aries boards" job, and can just build it in the general "build all socfpga boards" job.

Confusing and error-prone? Yes. This is one of the things that's why I'm looking at GitLab CI (which will have its own downsides, sadly).

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190508/67585e14/attachment.sig>
#9 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

In reply to Wolfgang Grandegger

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 13 lines
---
  .travis.yml                                      |   2 +-
  arch/arm/dts/Makefile                            |   1 +
  arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
  arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
  arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
  arch/arm/mach-socfpga/Kconfig                    |   7 +
  board/aries/mcvevk/MAINTAINERS                   |   6 +
  board/aries/mcvevk/Makefile                      |   7 +
  board/aries/mcvevk/qts/iocsr_config.h            | 659 +++++++++++++++++++++++
  board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
  board/aries/mcvevk/qts/pll_config.h              |  84 +++
  board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

Regards,
Simon

Quoted 1,787 lines
  board/aries/mcvevk/socfpga.c                     |   5 +
  configs/socfpga_mcvevk_defconfig                 |  68 +++
  include/configs/socfpga_mcvevk.h                 | 102 ++++
  15 files changed, 1642 insertions(+), 1 deletion(-)

create mode 100644 arch/arm/dts/socfpga_cyclone5_mcv.dtsi create mode 100644 arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi create mode 100644 arch/arm/dts/socfpga_cyclone5_mcvevk.dts create mode 100644 board/aries/mcvevk/MAINTAINERS
create mode 100644 board/aries/mcvevk/Makefile
create mode 100644 board/aries/mcvevk/qts/iocsr_config.h create mode 100644 board/aries/mcvevk/qts/pinmux_config.h create mode 100644 board/aries/mcvevk/qts/pll_config.h create mode 100644 board/aries/mcvevk/qts/sdram_config.h create mode 100644 board/aries/mcvevk/socfpga.c
create mode 100644 configs/socfpga_mcvevk_defconfig create mode 100644 include/configs/socfpga_mcvevk.h

.travis.yml +1 -1
index 8bd49ef..714b92e 100644
@@ -230,7 +230,7 @@ matrix:
          - BUILDMAN="sun50i"
      - name: "buildman catch-all ARM"
        env:
-        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
+        - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,aries,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
      - name: "buildman sandbox x86"
        env:
          - BUILDMAN="sandbox x86"
arch/arm/dts/Makefile +1 -0
index dfa5b02..9a6c4e2 100644
@@ -274,6 +274,7 @@ dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb
  dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
  	socfpga_arria5_socdk.dtb			\
  	socfpga_arria10_socdk_sdmmc.dtb			\
+	socfpga_cyclone5_mcvevk.dtb			\
  	socfpga_cyclone5_is1.dtb			\
  	socfpga_cyclone5_socdk.dtb			\
  	socfpga_cyclone5_dbm_soc1.dtb			\
arch/arm/dts/socfpga_cyclone5_mcv.dtsi new file +22 -0
new file mode 100644
index 0000000..bd92806
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+
+#include "socfpga_cyclone5.dtsi"
+
+/ {
+	model = "Aries/DENX MCV";
+	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
+
+	memory at 0 {
+		name = "memory";
+		device_type = "memory";
+		reg = <0x0 0x40000000>; /* 1 GiB */
+	};
+};
+
+&mmc0 {	/* On-SoM eMMC */
+	bus-width = <8>;
+	status = "okay";
+};
arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi new file +38 -0
new file mode 100644
index 0000000..1afaa86
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ * Copyright (C) 2018 Wolfgang Grandegger <[email protected]>
+ */
+
+/{
+	soc {
+		u-boot,dm-pre-reloc;
+	};
+};
+
+&watchdog0 {
+	status = "disabled";
+};
+
+&mmc {
+	u-boot,dm-pre-reloc;
+};
+
+&uart0 {
+	clock-frequency = <100000000>;
+	u-boot,dm-pre-reloc;
+};
+
+&porta {
+	bank-name = "porta";
+};
+
+&portb {
+	bank-name = "portb";
+};
+
+&portc {
+	bank-name = "portc";
+};
arch/arm/dts/socfpga_cyclone5_mcvevk.dts new file +81 -0
new file mode 100644
index 0000000..ceaec29
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+
+#include "socfpga_cyclone5_mcv.dtsi"
+
+/ {
+	model = "Aries/DENX MCV EVK";
+	compatible = "denx,mcvevk", "altr,socfpga-cyclone5", "altr,socfpga";
+
+	aliases {
+		ethernet0 = &gmac0;
+		stmpe-i2c0 = &stmpe1;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&can0 {
+	status = "okay";
+};
+
+&can1 {
+	status = "okay";
+};
+
+&gmac0 {
+	phy-mode = "rgmii";
+	status = "okay";
+};
+
+&gpio0 {	/* GPIO  0 ... 28 */
+	status = "okay";
+};
+
+&gpio1 {	/* GPIO 29 ... 57 */
+	status = "okay";
+};
+
+&gpio2 {	/* GPIO 58..66 (HLGPI 0..13 at offset 13) */
+	status = "okay";
+};
+
+&i2c0 {
+	status = "okay";
+	clock-frequency = <100000>;
+
+	stmpe1: stmpe811 at 41 {
+		compatible = "st,stmpe811";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0x41>;
+		id = <0>;
+		blocks = <0x5>;
+		irq-gpio = <&portb 28 0x4>;     /* GPIO 57, trig. level HI */
+
+		stmpe_touchscreen {
+			compatible = "st,stmpe-ts";
+			ts,sample-time = <4>;
+			ts,mod-12b = <1>;
+			ts,ref-sel = <0>;
+			ts,adc-freq = <1>;
+			ts,ave-ctrl = <1>;
+			ts,touch-det-delay = <3>;
+			ts,settling = <4>;
+			ts,fraction-z = <7>;
+			ts,i-drive = <1>;
+		};
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&usb1 {
+	status = "okay";
+};
arch/arm/mach-socfpga/Kconfig +7 -0
index 8f7b79f..d3058d9 100644
@@ -64,6 +64,10 @@ choice
  	prompt "Altera SOCFPGA board select"
  	optional
 
+config TARGET_SOCFPGA_ARIES_MCVEVK
+	bool "Aries MCVEVK (Cyclone V)"
+	select TARGET_SOCFPGA_CYCLONE5
+
  config TARGET_SOCFPGA_ARRIA10_SOCDK
  	bool "Altera SOCFPGA SoCDK (Arria 10)"
  	select TARGET_SOCFPGA_ARRIA10
@@ -128,6 +132,7 @@ config SYS_BOARD
  	default "de1-soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
  	default "de10-nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
  	default "is1" if TARGET_SOCFPGA_IS1
+	default "mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
  	default "sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
  	default "socrates" if TARGET_SOCFPGA_EBV_SOCRATES
  	default "sr1500" if TARGET_SOCFPGA_SR1500
@@ -139,6 +144,7 @@ config SYS_VENDOR
  	default "altera" if TARGET_SOCFPGA_ARRIA10_SOCDK
  	default "altera" if TARGET_SOCFPGA_CYCLONE5_SOCDK
  	default "altera" if TARGET_SOCFPGA_STRATIX10_SOCDK
+	default "aries" if TARGET_SOCFPGA_ARIES_MCVEVK
  	default "devboards" if TARGET_SOCFPGA_DEVBOARDS_DBM_SOC1
  	default "ebv" if TARGET_SOCFPGA_EBV_SOCRATES
  	default "samtec" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA
@@ -159,6 +165,7 @@ config SYS_CONFIG_NAME
  	default "socfpga_de1_soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
  	default "socfpga_de10_nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
  	default "socfpga_is1" if TARGET_SOCFPGA_IS1
+	default "socfpga_mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
  	default "socfpga_sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
  	default "socfpga_socrates" if TARGET_SOCFPGA_EBV_SOCRATES
  	default "socfpga_sr1500" if TARGET_SOCFPGA_SR1500
board/aries/mcvevk/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..0e97941
@@ -0,0 +1,6 @@
+Aries MCVEVK BOARD
+M:	Wolfgang Grandegger <[email protected]>
+S:	Maintained
+F:	board/aries/mcvevk/
+F:	include/configs/socfpga_mcvevk.h
+F:	configs/socfpga_mcvevk_defconfig
board/aries/mcvevk/Makefile new file +7 -0
new file mode 100644
index 0000000..e1c8a6b
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2001-2006
+# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
+# (C) Copyright 2010, Thomas Chou <[email protected]>
+
+obj-y	:= socfpga.o
board/aries/mcvevk/qts/iocsr_config.h new file +659 -0
new file mode 100644
index 0000000..e233d02
@@ -0,0 +1,659 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Altera SoCFPGA IOCSR configuration
+ */
+
+#ifndef __SOCFPGA_IOCSR_CONFIG_H__
+#define __SOCFPGA_IOCSR_CONFIG_H__
+
+#define CONFIG_HPS_IOCSR_SCANCHAIN0_LENGTH	764
+#define CONFIG_HPS_IOCSR_SCANCHAIN1_LENGTH	1719
+#define CONFIG_HPS_IOCSR_SCANCHAIN2_LENGTH	955
+#define CONFIG_HPS_IOCSR_SCANCHAIN3_LENGTH	16766
+
+const unsigned long iocsr_scan_chain0_table[] = {
+	0x00000000,
+	0x00000000,
+	0x0FF00000,
+	0xC0000000,
+	0x0000003F,
+	0x00008000,
+	0x00000000,
+	0x18060000,
+	0x00000060,
+	0x00000000,
+	0x00000000,
+	0x00004000,
+	0x0C0300C0,
+	0x00000000,
+	0x0C000000,
+	0x0000C030,
+	0x0000C030,
+	0x00002000,
+	0x06018060,
+	0x06018000,
+	0x06000018,
+	0x00006018,
+	0x01806018,
+	0x00001000,
+};
+
+const unsigned long iocsr_scan_chain1_table[] = {
+	0x000C0300,
+	0x300C0000,
+	0x300000C0,
+	0x000000C0,
+	0x000300C0,
+	0x00008000,
+	0x00060180,
+	0x18060000,
+	0x18000000,
+	0x00000060,
+	0x00018060,
+	0x00004000,
+	0x000300C0,
+	0x0C030000,
+	0x0C000000,
+	0x00000030,
+	0x0000C030,
+	0x00002000,
+	0x00018060,
+	0x06018000,
+	0x01FE0000,
+	0xF8000000,
+	0x00000007,
+	0x00001000,
+	0x0300C030,
+	0x00000000,
+	0x03000000,
+	0x0000000C,
+	0x00000000,
+	0x00000800,
+	0x00006018,
+	0x01806000,
+	0x00000000,
+	0x00000000,
+	0x00001806,
+	0x00000400,
+	0x0000300C,
+	0x00C03000,
+	0x00C00000,
+	0x00000003,
+	0x00000C03,
+	0x00000200,
+	0x00001806,
+	0x00601800,
+	0x80600000,
+	0x80000001,
+	0x00000601,
+	0x00000100,
+	0x00001000,
+	0x00300C00,
+	0xC0300000,
+	0xC0000000,
+	0x00000300,
+	0x00000080,
+};
+
+const unsigned long iocsr_scan_chain2_table[] = {
+	0x300C0300,
+	0x00000000,
+	0x0FF00000,
+	0x00000000,
+	0x0C0300C0,
+	0x00008000,
+	0x00060180,
+	0x00000000,
+	0x18000000,
+	0x00018060,
+	0x06018060,
+	0x00004000,
+	0x200300C0,
+	0x0C030000,
+	0x0C000000,
+	0x00000030,
+	0x0000C030,
+	0x00002000,
+	0x00018060,
+	0x00000000,
+	0x06000000,
+	0x00010018,
+	0x01806018,
+	0x00001000,
+	0x0000C030,
+	0x00000000,
+	0x03000000,
+	0x0000000C,
+	0x00C0300C,
+	0x00000800,
+};
+
+const unsigned long iocsr_scan_chain3_table[] = {
+	0x0C420D80,
+	0x0C3000FF,
+	0x0A804001,
+	0x07900000,
+	0x08020000,
+	0x00100000,
+	0x0A800000,
+	0x07900000,
+	0x08020000,
+	0x00100000,
+	0x20430000,
+	0x0C003001,
+	0x00C00481,
+	0x00000000,
+	0x00000021,
+	0x82000004,
+	0x05400000,
+	0x03C80000,
+	0x04010000,
+	0x00080000,
+	0x05400000,
+	0x03C80000,
+	0x05400000,
+	0x03C80000,
+	0x90218000,
+	0x86001800,
+	0x00600240,
+	0x80090218,
+	0x00000001,
+	0x40000002,
+	0x02A00000,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x4810C000,
+	0x43000C00,
+	0x00300120,
+	0xC004810C,
+	0x12043000,
+	0x20000300,
+	0x00040000,
+	0x50670000,
+	0x00000010,
+	0x24590000,
+	0x00001000,
+	0xA0000034,
+	0x0D000001,
+	0xC0680A28,
+	0x45034030,
+	0x12481A01,
+	0x80A280D0,
+	0x34030C06,
+	0x01A01450,
+	0x280D0000,
+	0x30C0680A,
+	0x02490340,
+	0xD000001A,
+	0x0680A280,
+	0x10040000,
+	0x00200000,
+	0x10040000,
+	0x00200000,
+	0x15000000,
+	0x0F200000,
+	0x15000000,
+	0x0F200000,
+	0x01FE0000,
+	0x18000000,
+	0x01800902,
+	0x00240860,
+	0x007F8006,
+	0x00000000,
+	0x0A800001,
+	0x07900000,
+	0x0A800000,
+	0x07900000,
+	0x0A800000,
+	0x07900000,
+	0x08020000,
+	0x00100000,
+	0x20430000,
+	0x0C003001,
+	0x00C00481,
+	0x00000FF0,
+	0x4810C000,
+	0x80000C00,
+	0x05400000,
+	0x02480000,
+	0x04000000,
+	0x00080000,
+	0x05400000,
+	0x03C80000,
+	0x05400000,
+	0x03C80000,
+	0x90218000,
+	0x86001800,
+	0x00600240,
+	0x80090218,
+	0x24086001,
+	0x40000600,
+	0x02A00040,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x02A00000,
+	0x01E40000,
+	0x4810C000,
+	0x43000C00,
+	0x00300120,
+	0xC004810C,
+	0x12043000,
+	0x20000300,
+	0x00040000,
+	0x50670000,
+	0x00000010,
+	0x24590000,
+	0x00001000,
+	0xA0000034,
+	0x0D000001,
+	0xC0680A28,
+	0x49034030,
+	0x12481A02,
+	0x80A280D0,
+	0x34030C06,
+	0x01A00040,
+	0x280D0002,
+	0x30C0680A,
+	0x02490340,
+	0xD00A281A,
+	0x0680A280,
+	0x10040000,
+	0x00200000,
+	0x10040000,
+	0x00200000,
+	0x15000000,
+	0x0F200000,
+	0x15000000,
+	0x0F200000,
+	0x01FE0000,
+	0x18000000,
+	0x01800902,
+	0x00240860,
+	0x007F8006,
+	0x00000000,
+	0x99300001,
+	0x34343400,
+	0xAA0D4000,
+	0x01C3A800,
+	0xAA0D4000,
+	0x01C3A890,
+	0xAA0D4000,
+	0x01C3A800,
+	0x00040100,
+	0x00000800,
+	0x00000000,
+	0x00001208,
+	0x00482000,
+	0x01000000,
+	0x00000000,
+	0x00410482,
+	0x0006A000,
+	0x0001B400,
+	0x00020000,
+	0x00000400,
+	0x0002A000,
+	0x0001E400,
+	0x5506A000,
+	0x00E1D400,
+	0x00000000,
+	0x2043090C,
+	0x00003001,
+	0x90400000,
+	0x00000000,
+	0x2020C243,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA24,
+	0x2A835000,
+	0x0070EA00,
+	0x00010040,
+	0x00000200,
+	0x00000000,
+	0x00000482,
+	0x00120800,
+	0x00002000,
+	0x80000000,
+	0x00104120,
+	0x00000200,
+	0xAC0D5F80,
+	0xFFFFFFFF,
+	0x14F3690D,
+	0x1A041414,
+	0x00D00000,
+	0x18864000,
+	0x49247A06,
+	0x9A28A3D7,
+	0xF511451E,
+	0x0356E388,
+	0x821A0000,
+	0x0000D000,
+	0x05140680,
+	0xD749247A,
+	0x1E9A28A3,
+	0x88F51145,
+	0x00034EE3,
+	0x00080000,
+	0x00001000,
+	0x00080200,
+	0x00001000,
+	0x000A8000,
+	0x00075000,
+	0x541A8000,
+	0x03875001,
+	0x00000000,
+	0x00000010,
+	0x0080C000,
+	0x41000000,
+	0x00003FC2,
+	0x00820000,
+	0xAA0D4000,
+	0x01C3A800,
+	0xAA0D4000,
+	0x01C3A890,
+	0xAA0D4000,
+	0x01C3A800,
+	0x00040000,
+	0x00000800,
+	0x00000000,
+	0x00001208,
+	0x00482000,
+	0x00800000,
+	0x00000000,
+	0x00410482,
+	0x0006A000,
+	0x0001B400,
+	0x00020000,
+	0x00000400,
+	0x00020080,
+	0x00000400,
+	0x5506A000,
+	0x00E1D400,
+	0x00000000,
+	0x0000090C,
+	0x00000010,
+	0x90400000,
+	0x00000000,
+	0x2020C243,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA24,
+	0x2A835000,
+	0x0070EA00,
+	0x00015000,
+	0x0000F200,
+	0x00000000,
+	0x00000482,
+	0x86120800,
+	0x00600240,
+	0x80000000,
+	0x00104120,
+	0x00000200,
+	0xAC0D5F80,
+	0xFFFFFFFF,
+	0x14F3690D,
+	0x1A041414,
+	0x00D00000,
+	0x18864000,
+	0x49247A06,
+	0xEBCF23D7,
+	0xF611451E,
+	0x034E9248,
+	0x821A038E,
+	0x0000D000,
+	0x00000680,
+	0xD749247A,
+	0x1E9BCF23,
+	0x88F61145,
+	0x00034EE3,
+	0x00080000,
+	0x00001000,
+	0x00080000,
+	0x00001000,
+	0x000A8000,
+	0x00075000,
+	0x541A8000,
+	0x03875001,
+	0x00000000,
+	0x00000010,
+	0x0080C000,
+	0x41000000,
+	0x00000002,
+	0x00820004,
+	0xAA0D4000,
+	0x01C3A800,
+	0xAA0D4000,
+	0x01C3A890,
+	0xAA0D4000,
+	0x01C3A800,
+	0x00040000,
+	0x00000800,
+	0x00000000,
+	0x00001208,
+	0x00482000,
+	0x00800000,
+	0x00000000,
+	0x00410482,
+	0x0006A000,
+	0x0001B400,
+	0x00020000,
+	0x00000400,
+	0x0002A000,
+	0x0001E400,
+	0x5506A000,
+	0x00E1D400,
+	0x00000000,
+	0x2043090C,
+	0x00003001,
+	0x90400000,
+	0x00000000,
+	0x2020C243,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA00,
+	0x00010000,
+	0x00000200,
+	0x00000000,
+	0x00000482,
+	0x00120800,
+	0x00200000,
+	0x80000000,
+	0x00104120,
+	0x00000200,
+	0xAC0D5F80,
+	0xFFFFFFFF,
+	0x14F3690D,
+	0x1A041414,
+	0x00D00000,
+	0x18864000,
+	0x49247A06,
+	0x9A28A3D7,
+	0xF431451E,
+	0x034E9248,
+	0x821A0000,
+	0x0000D000,
+	0x00000680,
+	0xD749247A,
+	0x1E9A28A3,
+	0x88F61145,
+	0x000356E3,
+	0x00080000,
+	0x00001000,
+	0x00080000,
+	0x00001000,
+	0x000A8000,
+	0x00075000,
+	0x541A8000,
+	0x03875001,
+	0x00000000,
+	0x00000010,
+	0x0080C000,
+	0x41000000,
+	0x00000002,
+	0x00820004,
+	0xAA0D4000,
+	0x01C3A800,
+	0xAA0D4000,
+	0x01C3A800,
+	0xAA0D4000,
+	0x01C3A800,
+	0x00040000,
+	0x00000800,
+	0x00000000,
+	0x00001208,
+	0x00482000,
+	0x00800000,
+	0x00000000,
+	0x00410482,
+	0x0006A000,
+	0x0001B400,
+	0x00020000,
+	0x00000400,
+	0x00020000,
+	0x00000400,
+	0x5506A000,
+	0x00E1D400,
+	0x00000000,
+	0x0000090C,
+	0x00001000,
+	0x90400000,
+	0x00000000,
+	0x2020C243,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA00,
+	0x2A835000,
+	0x0070EA00,
+	0x00010040,
+	0x00000200,
+	0x00000000,
+	0x00000482,
+	0x00120800,
+	0x00400000,
+	0x80000000,
+	0x00104120,
+	0x00000200,
+	0xAC0D5F80,
+	0xFFFFFFFF,
+	0x14F1690D,
+	0x1A041414,
+	0x00D00000,
+	0x08864000,
+	0x49247A02,
+	0xEBCF23DB,
+	0xF431451E,
+	0x0356E388,
+	0x821A0000,
+	0x0000D000,
+	0x00000680,
+	0xD749247A,
+	0x1EEBCF23,
+	0x88F43E79,
+	0x000356A2,
+	0x00080000,
+	0x00001000,
+	0x00080000,
+	0x00001000,
+	0x000A8000,
+	0x00075000,
+	0x541A8000,
+	0x03875001,
+	0x00000000,
+	0x00000010,
+	0x0080C000,
+	0x41000000,
+	0x00000002,
+	0x00820004,
+	0x00489800,
+	0x801A1A1A,
+	0x00000200,
+	0x80000004,
+	0x00000200,
+	0x80000004,
+	0x00000200,
+	0x00000004,
+	0x00000200,
+	0x00000004,
+	0x00040000,
+	0x10000000,
+	0x00000000,
+	0x00004000,
+	0x00010000,
+	0x40002080,
+	0x00000100,
+	0x40000002,
+	0x00000100,
+	0x00000002,
+	0x00000100,
+	0x40000002,
+	0x00000100,
+	0x00000002,
+	0x00020000,
+	0x00000000,
+	0x00000008,
+	0x00000020,
+	0x00008000,
+	0x20001040,
+	0x00000080,
+	0x20000001,
+	0x00000080,
+	0x20000001,
+	0x00000080,
+	0x20000001,
+	0x00000080,
+	0x00000001,
+	0x00010000,
+	0x04000000,
+	0x00FF0000,
+	0x00000000,
+	0x00004000,
+	0x00000800,
+	0xC0000001,
+	0x00041419,
+	0x40000000,
+	0x04000816,
+	0x000D0000,
+	0x00006800,
+	0x00000340,
+	0xD000001A,
+	0x06800000,
+	0x00340000,
+	0x0001A000,
+	0x00000D00,
+	0x40000068,
+	0x1A000003,
+	0x00D00000,
+	0x00068000,
+	0x00003400,
+	0x000001A0,
+	0x00000401,
+	0x00000008,
+	0x00000401,
+	0x00000008,
+	0x00000401,
+	0x00000008,
+	0x00000401,
+	0x80000008,
+	0x0000007F,
+	0x20000000,
+	0x00000000,
+	0xE0000080,
+	0x0000001F,
+	0x00004000,
+};
+
+
+#endif /* __SOCFPGA_IOCSR_CONFIG_H__ */
board/aries/mcvevk/qts/pinmux_config.h new file +218 -0
new file mode 100644
index 0000000..85f892a
@@ -0,0 +1,218 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Altera SoCFPGA PinMux configuration
+ */
+
+#ifndef __SOCFPGA_PINMUX_CONFIG_H__
+#define __SOCFPGA_PINMUX_CONFIG_H__
+
+const u8 sys_mgr_init_table[] = {
+	3, /* EMACIO0 */
+	3, /* EMACIO1 */
+	3, /* EMACIO2 */
+	3, /* EMACIO3 */
+	3, /* EMACIO4 */
+	3, /* EMACIO5 */
+	3, /* EMACIO6 */
+	3, /* EMACIO7 */
+	3, /* EMACIO8 */
+	3, /* EMACIO9 */
+	3, /* EMACIO10 */
+	3, /* EMACIO11 */
+	3, /* EMACIO12 */
+	3, /* EMACIO13 */
+	0, /* EMACIO14 */
+	0, /* EMACIO15 */
+	0, /* EMACIO16 */
+	0, /* EMACIO17 */
+	0, /* EMACIO18 */
+	0, /* EMACIO19 */
+	3, /* FLASHIO0 */
+	0, /* FLASHIO1 */
+	3, /* FLASHIO2 */
+	3, /* FLASHIO3 */
+	3, /* FLASHIO4 */
+	3, /* FLASHIO5 */
+	3, /* FLASHIO6 */
+	3, /* FLASHIO7 */
+	0, /* FLASHIO8 */
+	3, /* FLASHIO9 */
+	3, /* FLASHIO10 */
+	3, /* FLASHIO11 */
+	0, /* GENERALIO0 */
+	1, /* GENERALIO1 */
+	1, /* GENERALIO2 */
+	0, /* GENERALIO3 */
+	0, /* GENERALIO4 */
+	1, /* GENERALIO5 */
+	1, /* GENERALIO6 */
+	1, /* GENERALIO7 */
+	1, /* GENERALIO8 */
+	0, /* GENERALIO9 */
+	0, /* GENERALIO10 */
+	0, /* GENERALIO11 */
+	0, /* GENERALIO12 */
+	2, /* GENERALIO13 */
+	2, /* GENERALIO14 */
+	1, /* GENERALIO15 */
+	1, /* GENERALIO16 */
+	1, /* GENERALIO17 */
+	1, /* GENERALIO18 */
+	0, /* GENERALIO19 */
+	0, /* GENERALIO20 */
+	0, /* GENERALIO21 */
+	0, /* GENERALIO22 */
+	0, /* GENERALIO23 */
+	0, /* GENERALIO24 */
+	0, /* GENERALIO25 */
+	0, /* GENERALIO26 */
+	0, /* GENERALIO27 */
+	0, /* GENERALIO28 */
+	0, /* GENERALIO29 */
+	0, /* GENERALIO30 */
+	0, /* GENERALIO31 */
+	0, /* MIXED1IO0 */
+	1, /* MIXED1IO1 */
+	1, /* MIXED1IO2 */
+	1, /* MIXED1IO3 */
+	1, /* MIXED1IO4 */
+	0, /* MIXED1IO5 */
+	0, /* MIXED1IO6 */
+	0, /* MIXED1IO7 */
+	1, /* MIXED1IO8 */
+	1, /* MIXED1IO9 */
+	1, /* MIXED1IO10 */
+	1, /* MIXED1IO11 */
+	0, /* MIXED1IO12 */
+	0, /* MIXED1IO13 */
+	0, /* MIXED1IO14 */
+	1, /* MIXED1IO15 */
+	1, /* MIXED1IO16 */
+	1, /* MIXED1IO17 */
+	1, /* MIXED1IO18 */
+	0, /* MIXED1IO19 */
+	0, /* MIXED1IO20 */
+	0, /* MIXED1IO21 */
+	0, /* MIXED2IO0 */
+	0, /* MIXED2IO1 */
+	0, /* MIXED2IO2 */
+	0, /* MIXED2IO3 */
+	0, /* MIXED2IO4 */
+	0, /* MIXED2IO5 */
+	0, /* MIXED2IO6 */
+	0, /* MIXED2IO7 */
+	0, /* GPLINMUX48 */
+	0, /* GPLINMUX49 */
+	0, /* GPLINMUX50 */
+	0, /* GPLINMUX51 */
+	0, /* GPLINMUX52 */
+	0, /* GPLINMUX53 */
+	0, /* GPLINMUX54 */
+	0, /* GPLINMUX55 */
+	0, /* GPLINMUX56 */
+	0, /* GPLINMUX57 */
+	0, /* GPLINMUX58 */
+	0, /* GPLINMUX59 */
+	0, /* GPLINMUX60 */
+	0, /* GPLINMUX61 */
+	0, /* GPLINMUX62 */
+	0, /* GPLINMUX63 */
+	0, /* GPLINMUX64 */
+	0, /* GPLINMUX65 */
+	0, /* GPLINMUX66 */
+	0, /* GPLINMUX67 */
+	0, /* GPLINMUX68 */
+	0, /* GPLINMUX69 */
+	0, /* GPLINMUX70 */
+	1, /* GPLMUX0 */
+	1, /* GPLMUX1 */
+	1, /* GPLMUX2 */
+	1, /* GPLMUX3 */
+	1, /* GPLMUX4 */
+	1, /* GPLMUX5 */
+	1, /* GPLMUX6 */
+	1, /* GPLMUX7 */
+	1, /* GPLMUX8 */
+	1, /* GPLMUX9 */
+	1, /* GPLMUX10 */
+	1, /* GPLMUX11 */
+	1, /* GPLMUX12 */
+	1, /* GPLMUX13 */
+	1, /* GPLMUX14 */
+	1, /* GPLMUX15 */
+	1, /* GPLMUX16 */
+	1, /* GPLMUX17 */
+	1, /* GPLMUX18 */
+	1, /* GPLMUX19 */
+	1, /* GPLMUX20 */
+	1, /* GPLMUX21 */
+	1, /* GPLMUX22 */
+	1, /* GPLMUX23 */
+	1, /* GPLMUX24 */
+	1, /* GPLMUX25 */
+	1, /* GPLMUX26 */
+	1, /* GPLMUX27 */
+	1, /* GPLMUX28 */
+	1, /* GPLMUX29 */
+	1, /* GPLMUX30 */
+	1, /* GPLMUX31 */
+	1, /* GPLMUX32 */
+	1, /* GPLMUX33 */
+	1, /* GPLMUX34 */
+	1, /* GPLMUX35 */
+	1, /* GPLMUX36 */
+	1, /* GPLMUX37 */
+	1, /* GPLMUX38 */
+	1, /* GPLMUX39 */
+	1, /* GPLMUX40 */
+	1, /* GPLMUX41 */
+	1, /* GPLMUX42 */
+	1, /* GPLMUX43 */
+	1, /* GPLMUX44 */
+	1, /* GPLMUX45 */
+	1, /* GPLMUX46 */
+	1, /* GPLMUX47 */
+	1, /* GPLMUX48 */
+	1, /* GPLMUX49 */
+	1, /* GPLMUX50 */
+	1, /* GPLMUX51 */
+	1, /* GPLMUX52 */
+	1, /* GPLMUX53 */
+	1, /* GPLMUX54 */
+	1, /* GPLMUX55 */
+	1, /* GPLMUX56 */
+	1, /* GPLMUX57 */
+	1, /* GPLMUX58 */
+	1, /* GPLMUX59 */
+	1, /* GPLMUX60 */
+	1, /* GPLMUX61 */
+	1, /* GPLMUX62 */
+	1, /* GPLMUX63 */
+	1, /* GPLMUX64 */
+	1, /* GPLMUX65 */
+	1, /* GPLMUX66 */
+	1, /* GPLMUX67 */
+	1, /* GPLMUX68 */
+	1, /* GPLMUX69 */
+	1, /* GPLMUX70 */
+	0, /* NANDUSEFPGA */
+	0, /* UART0USEFPGA */
+	0, /* RGMII1USEFPGA */
+	0, /* SPIS0USEFPGA */
+	0, /* CAN0USEFPGA */
+	0, /* I2C0USEFPGA */
+	0, /* SDMMCUSEFPGA */
+	0, /* QSPIUSEFPGA */
+	0, /* SPIS1USEFPGA */
+	0, /* RGMII0USEFPGA */
+	1, /* UART1USEFPGA */
+	0, /* CAN1USEFPGA */
+	0, /* USB1USEFPGA */
+	0, /* I2C3USEFPGA */
+	0, /* I2C2USEFPGA */
+	0, /* I2C1USEFPGA */
+	0, /* SPIM1USEFPGA */
+	0, /* USB0USEFPGA */
+	0 /* SPIM0USEFPGA */
+};
+#endif /* __SOCFPGA_PINMUX_CONFIG_H__ */
board/aries/mcvevk/qts/pll_config.h new file +84 -0
new file mode 100644
index 0000000..4fa868e
@@ -0,0 +1,84 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Altera SoCFPGA Clock and PLL configuration
+ */
+
+#ifndef __SOCFPGA_PLL_CONFIG_H__
+#define __SOCFPGA_PLL_CONFIG_H__
+
+#define CONFIG_HPS_DBCTRL_STAYOSC1 1
+
+#define CONFIG_HPS_MAINPLLGRP_VCO_DENOM 0
+#define CONFIG_HPS_MAINPLLGRP_VCO_NUMER 63
+#define CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT 0
+#define CONFIG_HPS_MAINPLLGRP_MAINCLK_CNT 0
+#define CONFIG_HPS_MAINPLLGRP_DBGATCLK_CNT 0
+#define CONFIG_HPS_MAINPLLGRP_MAINQSPICLK_CNT 511
+#define CONFIG_HPS_MAINPLLGRP_MAINNANDSDMMCCLK_CNT 511
+#define CONFIG_HPS_MAINPLLGRP_CFGS2FUSER0CLK_CNT 15
+#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3MPCLK 1
+#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3SPCLK 1
+#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L4MPCLK 1
+#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L4SPCLK 1
+#define CONFIG_HPS_MAINPLLGRP_DBGDIV_DBGATCLK 0
+#define CONFIG_HPS_MAINPLLGRP_DBGDIV_DBGCLK 1
+#define CONFIG_HPS_MAINPLLGRP_TRACEDIV_TRACECLK 0
+#define CONFIG_HPS_MAINPLLGRP_L4SRC_L4MP 1
+#define CONFIG_HPS_MAINPLLGRP_L4SRC_L4SP 1
+
+#define CONFIG_HPS_PERPLLGRP_VCO_DENOM 0
+#define CONFIG_HPS_PERPLLGRP_VCO_NUMER 39
+#define CONFIG_HPS_PERPLLGRP_VCO_PSRC 0
+#define CONFIG_HPS_PERPLLGRP_EMAC0CLK_CNT 3
+#define CONFIG_HPS_PERPLLGRP_EMAC1CLK_CNT 511
+#define CONFIG_HPS_PERPLLGRP_PERQSPICLK_CNT 511
+#define CONFIG_HPS_PERPLLGRP_PERNANDSDMMCCLK_CNT 4
+#define CONFIG_HPS_PERPLLGRP_PERBASECLK_CNT 4
+#define CONFIG_HPS_PERPLLGRP_S2FUSER1CLK_CNT 511
+#define CONFIG_HPS_PERPLLGRP_DIV_USBCLK 0
+#define CONFIG_HPS_PERPLLGRP_DIV_SPIMCLK 0
+#define CONFIG_HPS_PERPLLGRP_DIV_CAN0CLK 1
+#define CONFIG_HPS_PERPLLGRP_DIV_CAN1CLK 1
+#define CONFIG_HPS_PERPLLGRP_GPIODIV_GPIODBCLK 6249
+#define CONFIG_HPS_PERPLLGRP_SRC_SDMMC 2
+#define CONFIG_HPS_PERPLLGRP_SRC_NAND 2
+#define CONFIG_HPS_PERPLLGRP_SRC_QSPI 1
+
+#define CONFIG_HPS_SDRPLLGRP_VCO_DENOM 0
+#define CONFIG_HPS_SDRPLLGRP_VCO_NUMER 31
+#define CONFIG_HPS_SDRPLLGRP_VCO_SSRC 0
+#define CONFIG_HPS_SDRPLLGRP_DDRDQSCLK_CNT 1
+#define CONFIG_HPS_SDRPLLGRP_DDRDQSCLK_PHASE 0
+#define CONFIG_HPS_SDRPLLGRP_DDR2XDQSCLK_CNT 0
+#define CONFIG_HPS_SDRPLLGRP_DDR2XDQSCLK_PHASE 0
+#define CONFIG_HPS_SDRPLLGRP_DDRDQCLK_CNT 1
+#define CONFIG_HPS_SDRPLLGRP_DDRDQCLK_PHASE 4
+#define CONFIG_HPS_SDRPLLGRP_S2FUSER2CLK_CNT 5
+#define CONFIG_HPS_SDRPLLGRP_S2FUSER2CLK_PHASE 0
+
+#define CONFIG_HPS_CLK_OSC1_HZ 25000000
+#define CONFIG_HPS_CLK_OSC2_HZ 25000000
+#define CONFIG_HPS_CLK_F2S_SDR_REF_HZ 0
+#define CONFIG_HPS_CLK_F2S_PER_REF_HZ 0
+#define CONFIG_HPS_CLK_MAINVCO_HZ 1600000000
+#define CONFIG_HPS_CLK_PERVCO_HZ 1000000000
+#define CONFIG_HPS_CLK_SDRVCO_HZ 800000000
+#define CONFIG_HPS_CLK_EMAC0_HZ 250000000
+#define CONFIG_HPS_CLK_EMAC1_HZ 1953125
+#define CONFIG_HPS_CLK_USBCLK_HZ 200000000
+#define CONFIG_HPS_CLK_NAND_HZ 50000000
+#define CONFIG_HPS_CLK_SDMMC_HZ 200000000
+#define CONFIG_HPS_CLK_QSPI_HZ 3125000
+#define CONFIG_HPS_CLK_SPIM_HZ 200000000
+#define CONFIG_HPS_CLK_CAN0_HZ 100000000
+#define CONFIG_HPS_CLK_CAN1_HZ 100000000
+#define CONFIG_HPS_CLK_GPIODB_HZ 32000
+#define CONFIG_HPS_CLK_L4_MP_HZ 100000000
+#define CONFIG_HPS_CLK_L4_SP_HZ 100000000
+
+#define CONFIG_HPS_ALTERAGRP_MPUCLK 1
+#define CONFIG_HPS_ALTERAGRP_MAINCLK 3
+#define CONFIG_HPS_ALTERAGRP_DBGATCLK 3
+
+
+#endif /* __SOCFPGA_PLL_CONFIG_H__ */
board/aries/mcvevk/qts/sdram_config.h new file +343 -0
new file mode 100644
index 0000000..fd72926
@@ -0,0 +1,343 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Altera SoCFPGA SDRAM configuration
+ */
+
+#ifndef __SOCFPGA_SDRAM_CONFIG_H__
+#define __SOCFPGA_SDRAM_CONFIG_H__
+
+/* SDRAM configuration */
+#define CONFIG_HPS_SDR_CTRLCFG_CPORTRDWR_CPORTRDWR		0x5A56A
+#define CONFIG_HPS_SDR_CTRLCFG_CPORTRMAP_CPORTRMAP		0xB00088
+#define CONFIG_HPS_SDR_CTRLCFG_CPORTWIDTH_CPORTWIDTH		0x44555
+#define CONFIG_HPS_SDR_CTRLCFG_CPORTWMAP_CPORTWMAP		0x2C011000
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_ADDRORDER		0
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_DQSTRKEN			0
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_ECCCORREN		0
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_ECCEN			0
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_MEMBL			8
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_MEMTYPE			2
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_NODMPINS			0
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_REORDEREN		1
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLCFG_STARVELIMIT		10
+#define CONFIG_HPS_SDR_CTRLCFG_CTRLWIDTH_CTRLWIDTH		2
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMADDRW_BANKBITS		3
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMADDRW_COLBITS		10
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMADDRW_CSBITS			1
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMADDRW_ROWBITS		15
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMDEVWIDTH_DEVWIDTH		8
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMIFWIDTH_IFWIDTH		32
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMINTR_INTREN			0
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMODT_READ			0
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMODT_WRITE			1
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_AL			0
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_TCL			6
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_TCWL			6
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_TFAW			16
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_TRFC			140
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING1_TRRD			5
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING2_IF_TRCD		6
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING2_IF_TREFI		1560
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING2_IF_TRP		6
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING2_IF_TWR		6
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING2_IF_TWTR		4
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TCCD			4
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TMRD			4
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TRAS			14
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TRC			20
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TRTP			5
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_PWRDOWNEXIT		3
+#define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_SELFRFSHEXIT		512
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_BC 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_DIFF_CHIP 0
+#define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_INCSYNC			0
+#define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_SYNCMODE			0
+#define CONFIG_HPS_SDR_CTRLCFG_FPGAPORTRST			0x0
+#define CONFIG_HPS_SDR_CTRLCFG_LOWPWREQ_SELFRFSHMASK		3
+#define CONFIG_HPS_SDR_CTRLCFG_LOWPWRTIMING_AUTOPDCYCLES	0
+#define CONFIG_HPS_SDR_CTRLCFG_LOWPWRTIMING_CLKDISABLECYCLES	8
+#define CONFIG_HPS_SDR_CTRLCFG_MPPACING_0_THRESHOLD1_31_0	0x20820820
+#define CONFIG_HPS_SDR_CTRLCFG_MPPACING_1_THRESHOLD1_59_32	0x8208208
+#define CONFIG_HPS_SDR_CTRLCFG_MPPACING_1_THRESHOLD2_3_0	0
+#define CONFIG_HPS_SDR_CTRLCFG_MPPACING_2_THRESHOLD2_35_4	0x41041041
+#define CONFIG_HPS_SDR_CTRLCFG_MPPACING_3_THRESHOLD2_59_36	0x410410
+#define CONFIG_HPS_SDR_CTRLCFG_MPPRIORITY_USERPRIORITY		0x3FFD1088
+#define CONFIG_HPS_SDR_CTRLCFG_MPTHRESHOLDRST_0_THRESHOLDRSTCYCLES_31_0	0x01010101
+#define CONFIG_HPS_SDR_CTRLCFG_MPTHRESHOLDRST_1_THRESHOLDRSTCYCLES_63_32	0x01010101
+#define CONFIG_HPS_SDR_CTRLCFG_MPTHRESHOLDRST_2_THRESHOLDRSTCYCLES_79_64	0x0101
+#define CONFIG_HPS_SDR_CTRLCFG_MPWIEIGHT_0_STATICWEIGHT_31_0	0x21084210
+#define CONFIG_HPS_SDR_CTRLCFG_MPWIEIGHT_1_STATICWEIGHT_49_32	0x1EF84
+#define CONFIG_HPS_SDR_CTRLCFG_MPWIEIGHT_1_SUMOFWEIGHT_13_0	0x2020
+#define CONFIG_HPS_SDR_CTRLCFG_MPWIEIGHT_2_SUMOFWEIGHT_45_14	0x0
+#define CONFIG_HPS_SDR_CTRLCFG_MPWIEIGHT_3_SUMOFWEIGHT_63_46	0xF800
+#define CONFIG_HPS_SDR_CTRLCFG_PHYCTRL_PHYCTRL_0		0x200
+#define CONFIG_HPS_SDR_CTRLCFG_PORTCFG_AUTOPCHEN		0
+#define CONFIG_HPS_SDR_CTRLCFG_RFIFOCMAP_RFIFOCMAP		0x760210
+#define CONFIG_HPS_SDR_CTRLCFG_STATICCFG_MEMBL			2
+#define CONFIG_HPS_SDR_CTRLCFG_STATICCFG_USEECCASDATA		0
+#define CONFIG_HPS_SDR_CTRLCFG_WFIFOCMAP_WFIFOCMAP		0x980543
+
+/* Sequencer auto configuration */
+#define RW_MGR_ACTIVATE_0_AND_1	0x0D
+#define RW_MGR_ACTIVATE_0_AND_1_WAIT1	0x0E
+#define RW_MGR_ACTIVATE_0_AND_1_WAIT2	0x10
+#define RW_MGR_ACTIVATE_1	0x0F
+#define RW_MGR_CLEAR_DQS_ENABLE	0x49
+#define RW_MGR_GUARANTEED_READ	0x4C
+#define RW_MGR_GUARANTEED_READ_CONT	0x54
+#define RW_MGR_GUARANTEED_WRITE	0x18
+#define RW_MGR_GUARANTEED_WRITE_WAIT0	0x1B
+#define RW_MGR_GUARANTEED_WRITE_WAIT1	0x1F
+#define RW_MGR_GUARANTEED_WRITE_WAIT2	0x19
+#define RW_MGR_GUARANTEED_WRITE_WAIT3	0x1D
+#define RW_MGR_IDLE	0x00
+#define RW_MGR_IDLE_LOOP1	0x7B
+#define RW_MGR_IDLE_LOOP2	0x7A
+#define RW_MGR_INIT_RESET_0_CKE_0	0x6F
+#define RW_MGR_INIT_RESET_1_CKE_0	0x74
+#define RW_MGR_LFSR_WR_RD_BANK_0	0x22
+#define RW_MGR_LFSR_WR_RD_BANK_0_DATA	0x25
+#define RW_MGR_LFSR_WR_RD_BANK_0_DQS	0x24
+#define RW_MGR_LFSR_WR_RD_BANK_0_NOP	0x23
+#define RW_MGR_LFSR_WR_RD_BANK_0_WAIT	0x32
+#define RW_MGR_LFSR_WR_RD_BANK_0_WL_1	0x21
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0	0x36
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0_DATA	0x39
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0_DQS	0x38
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0_NOP	0x37
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0_WAIT	0x46
+#define RW_MGR_LFSR_WR_RD_DM_BANK_0_WL_1	0x35
+#define RW_MGR_MRS0_DLL_RESET	0x02
+#define RW_MGR_MRS0_DLL_RESET_MIRR	0x08
+#define RW_MGR_MRS0_USER	0x07
+#define RW_MGR_MRS0_USER_MIRR	0x0C
+#define RW_MGR_MRS1	0x03
+#define RW_MGR_MRS1_MIRR	0x09
+#define RW_MGR_MRS2	0x04
+#define RW_MGR_MRS2_MIRR	0x0A
+#define RW_MGR_MRS3	0x05
+#define RW_MGR_MRS3_MIRR	0x0B
+#define RW_MGR_PRECHARGE_ALL	0x12
+#define RW_MGR_READ_B2B	0x59
+#define RW_MGR_READ_B2B_WAIT1	0x61
+#define RW_MGR_READ_B2B_WAIT2	0x6B
+#define RW_MGR_REFRESH_ALL	0x14
+#define RW_MGR_RETURN	0x01
+#define RW_MGR_SGLE_READ	0x7D
+#define RW_MGR_ZQCL	0x06
+
+/* Sequencer defines configuration */
+#define AFI_RATE_RATIO	1
+#define CALIB_LFIFO_OFFSET	7
+#define CALIB_VFIFO_OFFSET	5
+#define ENABLE_SUPER_QUICK_CALIBRATION	0
+#define IO_DELAY_PER_DCHAIN_TAP	25
+#define IO_DELAY_PER_DQS_EN_DCHAIN_TAP	25
+#define IO_DELAY_PER_OPA_TAP	312
+#define IO_DLL_CHAIN_LENGTH	8
+#define IO_DQDQS_OUT_PHASE_MAX	0
+#define IO_DQS_EN_DELAY_MAX	31
+#define IO_DQS_EN_DELAY_OFFSET	0
+#define IO_DQS_EN_PHASE_MAX	7
+#define IO_DQS_IN_DELAY_MAX	31
+#define IO_DQS_IN_RESERVE	4
+#define IO_DQS_OUT_RESERVE	4
+#define IO_IO_IN_DELAY_MAX	31
+#define IO_IO_OUT1_DELAY_MAX	31
+#define IO_IO_OUT2_DELAY_MAX	0
+#define IO_SHIFT_DQS_EN_WHEN_SHIFT_DQS	0
+#define MAX_LATENCY_COUNT_WIDTH	5
+#define READ_VALID_FIFO_SIZE	16
+#define REG_FILE_INIT_SEQ_SIGNATURE	0x55550496
+#define RW_MGR_MEM_ADDRESS_MIRRORING	0
+#define RW_MGR_MEM_DATA_MASK_WIDTH	4
+#define RW_MGR_MEM_DATA_WIDTH	32
+#define RW_MGR_MEM_DQ_PER_READ_DQS	8
+#define RW_MGR_MEM_DQ_PER_WRITE_DQS	8
+#define RW_MGR_MEM_IF_READ_DQS_WIDTH	4
+#define RW_MGR_MEM_IF_WRITE_DQS_WIDTH	4
+#define RW_MGR_MEM_NUMBER_OF_CS_PER_DIMM	1
+#define RW_MGR_MEM_NUMBER_OF_RANKS	1
+#define RW_MGR_MEM_VIRTUAL_GROUPS_PER_READ_DQS	1
+#define RW_MGR_MEM_VIRTUAL_GROUPS_PER_WRITE_DQS	1
+#define RW_MGR_TRUE_MEM_DATA_MASK_WIDTH	4
+#define TINIT_CNTR0_VAL	99
+#define TINIT_CNTR1_VAL	32
+#define TINIT_CNTR2_VAL	32
+#define TRESET_CNTR0_VAL	99
+#define TRESET_CNTR1_VAL	99
+#define TRESET_CNTR2_VAL	10
+
+/* Sequencer ac_rom_init configuration */
+const u32 ac_rom_init[] = {
+	0x20700000,
+	0x20780000,
+	0x10080421,
+	0x10080520,
+	0x10090044,
+	0x100a0008,
+	0x100b0000,
+	0x10380400,
+	0x10080441,
+	0x100804c0,
+	0x100a0024,
+	0x10090010,
+	0x100b0000,
+	0x30780000,
+	0x38780000,
+	0x30780000,
+	0x10680000,
+	0x106b0000,
+	0x10280400,
+	0x10480000,
+	0x1c980000,
+	0x1c9b0000,
+	0x1c980008,
+	0x1c9b0008,
+	0x38f80000,
+	0x3cf80000,
+	0x38780000,
+	0x18180000,
+	0x18980000,
+	0x13580000,
+	0x135b0000,
+	0x13580008,
+	0x135b0008,
+	0x33780000,
+	0x10580008,
+	0x10780000
+};
+
+/* Sequencer inst_rom_init configuration */
+const u32 inst_rom_init[] = {
+	0x80000,
+	0x80680,
+	0x8180,
+	0x8200,
+	0x8280,
+	0x8300,
+	0x8380,
+	0x8100,
+	0x8480,
+	0x8500,
+	0x8580,
+	0x8600,
+	0x8400,
+	0x800,
+	0x8680,
+	0x880,
+	0xa680,
+	0x80680,
+	0x900,
+	0x80680,
+	0x980,
+	0xa680,
+	0x8680,
+	0x80680,
+	0xb68,
+	0xcce8,
+	0xae8,
+	0x8ce8,
+	0xb88,
+	0xec88,
+	0xa08,
+	0xac88,
+	0x80680,
+	0xce00,
+	0xcd80,
+	0xe700,
+	0xc00,
+	0x20ce0,
+	0x20ce0,
+	0x20ce0,
+	0x20ce0,
+	0xd00,
+	0x680,
+	0x680,
+	0x680,
+	0x680,
+	0x60e80,
+	0x61080,
+	0x61080,
+	0x61080,
+	0xa680,
+	0x8680,
+	0x80680,
+	0xce00,
+	0xcd80,
+	0xe700,
+	0xc00,
+	0x30ce0,
+	0x30ce0,
+	0x30ce0,
+	0x30ce0,
+	0xd00,
+	0x680,
+	0x680,
+	0x680,
+	0x680,
+	0x70e80,
+	0x71080,
+	0x71080,
+	0x71080,
+	0xa680,
+	0x8680,
+	0x80680,
+	0x1158,
+	0x6d8,
+	0x80680,
+	0x1168,
+	0x7e8,
+	0x7e8,
+	0x87e8,
+	0x40fe8,
+	0x410e8,
+	0x410e8,
+	0x410e8,
+	0x1168,
+	0x7e8,
+	0x7e8,
+	0xa7e8,
+	0x80680,
+	0x40e88,
+	0x41088,
+	0x41088,
+	0x41088,
+	0x40f68,
+	0x410e8,
+	0x410e8,
+	0x410e8,
+	0xa680,
+	0x40fe8,
+	0x410e8,
+	0x410e8,
+	0x410e8,
+	0x41008,
+	0x41088,
+	0x41088,
+	0x41088,
+	0x1100,
+	0xc680,
+	0x8680,
+	0xe680,
+	0x80680,
+	0x0,
+	0x8000,
+	0xa000,
+	0xc000,
+	0x80000,
+	0x80,
+	0x8080,
+	0xa080,
+	0xc080,
+	0x80080,
+	0x9180,
+	0x8680,
+	0xa680,
+	0x80680,
+	0x40f08,
+	0x80680
+};
+
+#endif /* __SOCFPGA_SDRAM_CONFIG_H__ */
board/aries/mcvevk/socfpga.c new file +5 -0
new file mode 100644
index 0000000..f173bf8
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+#include <common.h>
configs/socfpga_mcvevk_defconfig new file +68 -0
new file mode 100644
index 0000000..fcae88d
@@ -0,0 +1,68 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SOCFPGA=y
+CONFIG_SYS_TEXT_BASE=0x01000040
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_SOCFPGA_ARIES_MCVEVK=y
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R_ADDR=0x00800000
+CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_mcvevk"
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_FIT=y
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200"
+# CONFIG_USE_BOOTCOMMAND is not set
+CONFIG_SYS_CONSOLE_IS_IN_ENV=y
+CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
+CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y
+CONFIG_VERSION_VARIABLE=y
+# CONFIG_DISPLAY_BOARDINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_SPI_LOAD=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_DFU=y
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_SF=y
+CONFIG_CMD_SPI=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),- at 1536k(UBI)0"
+CONFIG_CMD_UBI=y
+# CONFIG_ISO_PARTITION is not set
+# CONFIG_EFI_PARTITION is not set
+CONFIG_ENV_IS_IN_MMC=y
+CONFIG_SPL_DM=y
+CONFIG_DFU_MMC=y
+CONFIG_FPGA_SOCFPGA=y
+CONFIG_DM_GPIO=y
+CONFIG_DWAPB_GPIO=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_DW=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_DW=y
+CONFIG_DM_ETH=y
+CONFIG_PHY_GIGE=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_DM_RESET=y
+CONFIG_SPI=y
+CONFIG_CADENCE_QSPI=y
+CONFIG_DESIGNWARE_SPI=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="denx"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_USB_GADGET_DWC2_OTG=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USE_TINY_PRINTF=y
include/configs/socfpga_mcvevk.h new file +102 -0
new file mode 100644
index 0000000..4d1c4f2
@@ -0,0 +1,102 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2015 Marek Vasut <[email protected]>
+ */
+#ifndef __CONFIG_ARIES_MCVEVK_H__
+#define __CONFIG_ARIES_MCVEVK_H__
+
+#include <asm/arch/base_addr_ac5.h>
+
+/* Memory configurations */
+#define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on MCV */
+
+/* Booting Linux */
+#define CONFIG_BOOTFILE		"fitImage"
+#define CONFIG_PREBOOT		"run try_bootscript"
+#define CONFIG_BOOTCOMMAND	"run mmc_mmc"
+#define CONFIG_LOADADDR		0x01000000
+#define CONFIG_SYS_LOAD_ADDR	CONFIG_LOADADDR
+
+/* Environment is in MMC */
+#define CONFIG_ENV_OVERWRITE
+
+/* Extra Environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	"consdev=ttyS0\0"						\
+	"baudrate=115200\0"						\
+	"bootscript=boot.scr\0"						\
+	"bootdev=/dev/mmcblk0p2\0"					\
+	"rootdev=/dev/mmcblk0p3\0"					\
+	"netdev=eth0\0"							\
+	"hostname=mcvevk\0"						\
+	"kernel_addr_r=0x10000000\0"					\
+	"dfu_alt_info=mmc raw 0 3867148288\0"				\
+	"update_filename=u-boot-with-spl.sfp\0"				\
+	"update_sd_offset=0x800\0"					\
+	"update_sd="		/* Update the SD firmware partition */	\
+		"if mmc rescan ; then "					\
+		"if tftp ${update_filename} ; then "			\
+		"setexpr fw_sz ${filesize} / 0x200 ; "	/* SD block size */ \
+		"setexpr fw_sz ${fw_sz} + 1 ; "				\
+		"mmc write ${loadaddr} ${update_sd_offset} ${fw_sz} ; "	\
+		"fi ; "							\
+		"fi\0"							\
+	"update_qspi_offset=0x0\0"					\
+	"update_qspi="		/* Update the QSPI firmware */		\
+		"if sf probe ; then "					\
+		"if tftp ${update_filename} ; then "			\
+		"sf update ${loadaddr} ${update_qspi_offset} ${filesize} ; " \
+		"fi ; "							\
+		"fi\0"							\
+	"fpga_filename=output_file.rbf\0"				\
+	"load_fpga="		/* Load FPGA bitstream */		\
+		"if tftp ${fpga_filename} ; then "			\
+		"fpga load 0 $loadaddr $filesize ; "			\
+		"bridge enable ; "					\
+		"fi\0"							\
+	"addcons="							\
+		"setenv bootargs ${bootargs} "				\
+		"console=${consdev},${baudrate}\0"			\
+	"addip="							\
+		"setenv bootargs ${bootargs} "				\
+		"ip=${ipaddr}:${serverip}:${gatewayip}:"		\
+			"${netmask}:${hostname}:${netdev}:off\0"	\
+	"addmisc="							\
+		"setenv bootargs ${bootargs} ${miscargs}\0"		\
+	"addargs=run addcons addmisc\0"					\
+	"mmcload="							\
+		"mmc rescan ; "						\
+		"load mmc 0:2 ${kernel_addr_r} ${bootfile}\0"		\
+	"netload="							\
+		"tftp ${kernel_addr_r} ${hostname}/${bootfile}\0"	\
+	"miscargs=nohlt panic=1\0"					\
+	"mmcargs=setenv bootargs root=${rootdev} rw rootwait\0"		\
+	"nfsargs="							\
+		"setenv bootargs root=/dev/nfs rw "			\
+			"nfsroot=${serverip}:${rootpath},v3,tcp\0"	\
+	"mmc_mmc="							\
+		"run mmcload mmcargs addargs ; "			\
+		"bootm ${kernel_addr_r}\0"				\
+	"mmc_nfs="							\
+		"run mmcload nfsargs addip addargs ; "			\
+		"bootm ${kernel_addr_r}\0"				\
+	"net_mmc="							\
+		"run netload mmcargs addargs ; "			\
+		"bootm ${kernel_addr_r}\0"				\
+	"net_nfs="							\
+		"run netload nfsargs addip addargs ; "			\
+		"bootm ${kernel_addr_r}\0"				\
+	"try_bootscript="						\
+		"mmc rescan;"						\
+		"if test -e mmc 0:2 ${bootscript} ; then "		\
+		"if load mmc 0:2 ${kernel_addr_r} ${bootscript};"	\
+		"then ; "						\
+			"echo Running bootscript... ; "			\
+			"source ${kernel_addr_r} ; "			\
+		"fi ; "							\
+		"fi\0"
+
+/* The rest of the configuration is shared */
+#include <configs/socfpga_common.h>
+
+#endif	/* __CONFIG_ARIES_MCVEVK_H__ */
#10 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 26 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 14 lines

---
  .travis.yml                                      |   2 +- arch/arm/dts/Makefile                            |   1 + arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 + arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++ arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++ arch/arm/mach-socfpga/Kconfig                    |   7 + board/aries/mcvevk/MAINTAINERS                   |   6 + board/aries/mcvevk/Makefile                      |   7 + board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
  board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++ board/aries/mcvevk/qts/pll_config.h              |  84 +++ board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++

Quoted 6 lines

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Wolfgang

#11 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 34 lines · Wolfgang Grandegger

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 30 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 14 lines
---
  .travis.yml                                      |   2 +-
  arch/arm/dts/Makefile                            |   1 +
  arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
  arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
  arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
  arch/arm/mach-socfpga/Kconfig                    |   7 +
  board/aries/mcvevk/MAINTAINERS                   |   6 +
  board/aries/mcvevk/Makefile                      |   7 +
  board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
  board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
  board/aries/mcvevk/qts/pll_config.h              |  84 +++
  board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

Quoted 6 lines
Quoted 2 lines

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

Regards,
Simon

#12 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:

Quoted 38 lines · Wolfgang Grandegger
Quoted 37 lines

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 32 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 14 lines
---
  .travis.yml                                      |   2 +-
  arch/arm/dts/Makefile                            |   1 +
  arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
  arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
  arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
  arch/arm/mach-socfpga/Kconfig                    |   7 +
  board/aries/mcvevk/MAINTAINERS                   |   6 +
  board/aries/mcvevk/Makefile                      |   7 +
  board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
  board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
  board/aries/mcvevk/qts/pll_config.h              |  84 +++
  board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

Quoted 7 lines
Quoted 3 lines

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

I will check with the author!

BTW: My patch works fine on top of v2019.04 but the boot hangs without console output with the latest HEAD. The problems start with commit:

ede6e7b reset: socfpga: add reset handling for old kernels

Then I get:

U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52 +0200) ### ERROR ### Please RESET the board ###

Any idea how to fix that?

Wolfgang

#13 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Quoted 53 lines · Wolfgang Grandegger

Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:

Quoted 38 lines · Wolfgang Grandegger
Quoted 37 lines

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 32 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 14 lines
---
   .travis.yml                                      |   2 +-
   arch/arm/dts/Makefile                            |   1 +
   arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
   arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
   arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
   arch/arm/mach-socfpga/Kconfig                    |   7 +
   board/aries/mcvevk/MAINTAINERS                   |   6 +
   board/aries/mcvevk/Makefile                      |   7 +
   board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
   board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
   board/aries/mcvevk/qts/pll_config.h              |  84 +++
   board/aries/mcvevk/qts/sdram_config.h            | 343 ++++++++++++

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

Quoted 7 lines
Quoted 3 lines

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

I will check with the author!

BTW: My patch works fine on top of v2019.04 but the boot hangs without console output with the latest HEAD. The problems start with commit:

Quoted 8 lines

ede6e7b reset: socfpga: add reset handling for old kernels

Then I get:

U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52 +0200) ### ERROR ### Please RESET the board ###

Any idea how to fix that?

No, sorry, I don't have an idea right now. Are you sure you're not missing any of the "u-boot,dm-pre-reloc" tags?

And you're absolutely sure this very commit produces this error?

Regards,
Simon

#14 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Hello,

Am 07.05.19 um 21:25 schrieb Simon Goldschmidt:

Quoted 66 lines · Wolfgang Grandegger
Quoted 63 lines

Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:

Quoted 41 lines
Quoted 39 lines · Wolfgang Grandegger

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 34 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 10 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
Quoted 15 lines

---
   .travis.yml                                      |   2 +- arch/arm/dts/Makefile                            |   1 + arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 + arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++ arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++ arch/arm/mach-socfpga/Kconfig                    |   7 + board/aries/mcvevk/MAINTAINERS                   |   6 + board/aries/mcvevk/Makefile                      |   7 + board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
   board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++ board/aries/mcvevk/qts/pll_config.h              |  84 +++ board/aries/mcvevk/qts/sdram_config.h            | 343
++++++++++++

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone can regenerate these?

I'll try to provide such a quartus project for the socrates board, and I'd be very happy if the original Intel dev boards could do so as well!

Quoted 7 lines
Quoted 3 lines

There is a Quartus example project for that module/board here:

   https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

I will check with the author!

BTW: My patch works fine on top of v2019.04 but the boot hangs without console output with the latest HEAD. The problems start with commit:

   ede6e7b reset: socfpga: add reset handling for old kernels

Then I get:

   U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52 +0200) ### ERROR ### Please RESET the board ###

Quoted 6 lines
Quoted 1 line

Any idea how to fix that?

No, sorry, I don't have an idea right now. Are you sure you're not missing any of the "u-boot,dm-pre-reloc" tags?

And you're absolutely sure this very commit produces this error?

Well, I somehow fooled myself. Sorry for the noise. The problem was the missing "u-boot,dm-pre-reloc" for the "rst" odr "sdr" node and "CONFIG_SPL_TEXT_BASE=0xFFFF0000" in the defconfig. Now U-Boot starts but the kernel does not...

Wolfgang

#15 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Wolfgang Grandegger <[email protected]> schrieb am Mi., 8. Mai 2019, 12:23:

Quoted 77 lines

Hello,

Am 07.05.19 um 21:25 schrieb Simon Goldschmidt:

Quoted 38 lines · Wolfgang Grandegger
Quoted 35 lines

Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:

Quoted 33 lines
Quoted 31 lines · Wolfgang Grandegger

Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:

Quoted 27 lines

Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:

Quoted 25 lines

Re-add support for Aries Embedded MCV SoM, which is CycloneV based and the associated MCVEVK baseboard. The board can boot from eMMC. Ethernet and USB is supported.

The Aries Embedded boards have been removed with commit 03b54997d568 ("board/aries: Remove"). I will now take care of them.

CC Marek Vasut <[email protected]>
CC Simon Goldschmidt <[email protected]>
---
   .travis.yml                                      |   2 +-
   arch/arm/dts/Makefile                            |   1 +
   arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
   arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
   arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
   arch/arm/mach-socfpga/Kconfig                    |   7 +
   board/aries/mcvevk/MAINTAINERS                   |   6 +
   board/aries/mcvevk/Makefile                      |   7 +
   board/aries/mcvevk/qts/iocsr_config.h            | 659
+++++++++++++++++++++++
   board/aries/mcvevk/qts/pinmux_config.h           | 218 ++++++++
   board/aries/mcvevk/qts/pll_config.h              |  84 +++
   board/aries/mcvevk/qts/sdram_config.h            | 343

++++++++++++

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

These files are always a mystery. Would you be able to provide (long-lived) link to a simplistic quartus project so that everyone

can

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

regenerate these?

I'll try to provide such a quartus project for the socrates board,

and

Quoted 13 lines
Quoted 13 lines
Quoted 10 lines
Quoted 6 lines
Quoted 2 lines

I'd be very happy if the original Intel dev boards could do so as well!

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

I will check with the author!

Quoted 8 lines
Quoted 8 lines

BTW: My patch works fine on top of v2019.04 but the boot hangs without console output with the latest HEAD. The problems start with commit:

ede6e7b reset: socfpga: add reset handling for old kernels

Then I get:

   U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52

+0200)

Quoted 7 lines
Quoted 3 lines

### ERROR ### Please RESET the board ###

Any idea how to fix that?

No, sorry, I don't have an idea right now. Are you sure you're not missing any of the "u-boot,dm-pre-reloc" tags?

Quoted 7 lines
Quoted 1 line

And you're absolutely sure this very commit produces this error?

Well, I somehow fooled myself. Sorry for the noise. The problem was the missing "u-boot,dm-pre-reloc" for the "rst" odr "sdr" node and "CONFIG_SPL_TEXT_BASE=0xFFFF0000" in the defconfig. Now U-Boot starts but the kernel does not...

Good to know U-Boot works. What's the output of the kernel? Have you added the env variable the above mentioned commit checks? Without it, all peripherals are out into reset and have to be re-enabled by Linux drivers...

But this variable should be added by socfpga_common.h

Regards,
Simon

Quoted 1 line
#16 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 08.05.19 um 13:07 schrieb Simon Goldschmidt:

Quoted 97 lines

Wolfgang Grandegger <wg at aries-embedded.de <mailto:[email protected]>> schrieb am Mi., 8. Mai 2019, 12:23:

Hello,

Am 07.05.19 um 21:25 schrieb Simon Goldschmidt:
>
>
> On 07.05.19 21:14, Wolfgang Grandegger wrote:
>>
>> Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:
>>> On Tue, May 7, 2019 at 9:41 AM Wolfgang Grandegger
>>> <wg at aries-embedded.de <mailto:[email protected]>> wrote:
>>>>
>>>>
>>>>
>>>> Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:
>>>>> Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:
>>>>>> Re-add support for Aries Embedded MCV SoM, which is CycloneV based
>>>>>> and the associated MCVEVK baseboard. The board can boot from eMMC.
>>>>>> Ethernet and USB is supported.
>>>>>>
>>>>>> The Aries Embedded boards have been removed with commit 03b54997d568
>>>>>> ("board/aries: Remove"). I will now take care of them. >>>>>>
>>>>>> Signed-off-by: Wolfgang Grandegger <[email protected] <mailto:[email protected]>>
>>>>>> CC: Marek Vasut <marex at denx.de <mailto:[email protected]>> >>>>>> CC: Simon Goldschmidt <[email protected] <mailto:[email protected]>>
>>>>>> ---
>>>>>>    .travis.yml                                      |   2 +- >>>>>>    arch/arm/dts/Makefile                            |   1 + >>>>>>    arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 + >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++ >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++ >>>>>>    arch/arm/mach-socfpga/Kconfig                    |   7 + >>>>>>    board/aries/mcvevk/MAINTAINERS                   |   6 + >>>>>>    board/aries/mcvevk/Makefile                      |   7 + >>>>>>    board/aries/mcvevk/qts/iocsr_config.h            | 659 >>>>>> +++++++++++++++++++++++
>>>>>>    board/aries/mcvevk/qts/pinmux_config.h           | 218
++++++++
>>>>>>    board/aries/mcvevk/qts/pll_config.h              |  84 +++ >>>>>>    board/aries/mcvevk/qts/sdram_config.h            | 343 >>>>>> ++++++++++++
>>>>>
>>>>> These files are always a mystery. Would you be able to provide >>>>> (long-lived) link to a simplistic quartus project so that everyone can
>>>>> regenerate these?
>>>>>
>>>>> I'll try to provide such a quartus project for the socrates board, and
>>>>> I'd be very happy if the original Intel dev boards could do so as >>>>> well!
>>>>
>>>> There is a Quartus example project for that module/board here:
>>>>
>>>>    https://github.com/ARIES-Embedded/mcv
>>>
>>> Cool. And is this a permanent link that we could add to some kind >>> of documentation for this board in the U-Boot sources? That would >>> ensure U-Boot maintainers can find it in the future... >>
>> I will check with the author!
>>
>> BTW: My patch works fine on top of v2019.04 but the boot hangs without
>> console output with the latest HEAD. The problems start with commit:
>>
>>    ede6e7b reset: socfpga: add reset handling for old kernels >>
>> Then I get:
>>
>>    U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52 +0200)
>>    ### ERROR ### Please RESET the board ###
>>
>> Any idea how to fix that?
>
> No, sorry, I don't have an idea right now. Are you sure you're not > missing any of the "u-boot,dm-pre-reloc" tags?
>
> And you're absolutely sure this very commit produces this error?

Well, I somehow fooled myself. Sorry for the noise. The problem was the missing "u-boot,dm-pre-reloc" for the "rst" odr "sdr" node and "CONFIG_SPL_TEXT_BASE=0xFFFF0000" in the defconfig. Now U-Boot starts but the kernel does not...

Quoted 4 lines

Good to know U-Boot works. What's the output of the kernel? Have you added the env variable the above mentioned commit checks? Without it, all peripherals are out into reset and have to be re-enabled by Linux drivers...

OK, have set that variable now.

=> boot
4519072 bytes read in 147 ms (29.3 MiB/s)
26106 bytes read in 2 ms (12.4 MiB/s)
## Flattened Device Tree blob at 00f00000

     Booting using the fdt blob at 0xf00000
     Loading Device Tree to 3bf4b000, end 3bf545f9 ... OK

Starting kernel ...

Deasserting all peripheral resets

... nothing ...

Quoted 1 line

But this variable should be added by socfpga_common.h

But only if "CONFIG_EXTRA_ENV_SETTINGS" is used from that file, which is not the case for a few boards.

Wolfgang

#17 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

Am 08.05.19 um 13:34 schrieb Wolfgang Grandegger:

Quoted 116 lines

Am 08.05.19 um 13:07 schrieb Simon Goldschmidt:

Quoted 97 lines

Wolfgang Grandegger <wg at aries-embedded.de <mailto:[email protected]>> schrieb am Mi., 8. Mai 2019, 12:23:

Hello,

Am 07.05.19 um 21:25 schrieb Simon Goldschmidt:
>
>
> On 07.05.19 21:14, Wolfgang Grandegger wrote:
>>
>> Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:
>>> On Tue, May 7, 2019 at 9:41 AM Wolfgang Grandegger
>>> <wg at aries-embedded.de <mailto:[email protected]>> wrote:
>>>>
>>>>
>>>>
>>>> Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:
>>>>> Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:
>>>>>> Re-add support for Aries Embedded MCV SoM, which is CycloneV based
>>>>>> and the associated MCVEVK baseboard. The board can boot from eMMC.
>>>>>> Ethernet and USB is supported.
>>>>>>
>>>>>> The Aries Embedded boards have been removed with commit 03b54997d568
>>>>>> ("board/aries: Remove"). I will now take care of them. >>>>>>
>>>>>> Signed-off-by: Wolfgang Grandegger <[email protected] <mailto:[email protected]>>
>>>>>> CC: Marek Vasut <marex at denx.de <mailto:[email protected]>> >>>>>> CC: Simon Goldschmidt <[email protected] <mailto:[email protected]>>
>>>>>> ---
>>>>>>    .travis.yml                                      |   2 +- >>>>>>    arch/arm/dts/Makefile                            |   1 + >>>>>>    arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 + >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++ >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++ >>>>>>    arch/arm/mach-socfpga/Kconfig                    |   7 + >>>>>>    board/aries/mcvevk/MAINTAINERS                   |   6 + >>>>>>    board/aries/mcvevk/Makefile                      |   7 + >>>>>>    board/aries/mcvevk/qts/iocsr_config.h            | 659 >>>>>> +++++++++++++++++++++++
>>>>>>    board/aries/mcvevk/qts/pinmux_config.h           | 218
++++++++
>>>>>>    board/aries/mcvevk/qts/pll_config.h              |  84 +++ >>>>>>    board/aries/mcvevk/qts/sdram_config.h            | 343 >>>>>> ++++++++++++
>>>>>
>>>>> These files are always a mystery. Would you be able to provide >>>>> (long-lived) link to a simplistic quartus project so that everyone can
>>>>> regenerate these?
>>>>>
>>>>> I'll try to provide such a quartus project for the socrates board, and
>>>>> I'd be very happy if the original Intel dev boards could do so as >>>>> well!
>>>>
>>>> There is a Quartus example project for that module/board here:
>>>>
>>>>    https://github.com/ARIES-Embedded/mcv
>>>
>>> Cool. And is this a permanent link that we could add to some kind >>> of documentation for this board in the U-Boot sources? That would >>> ensure U-Boot maintainers can find it in the future... >>
>> I will check with the author!
>>
>> BTW: My patch works fine on top of v2019.04 but the boot hangs without
>> console output with the latest HEAD. The problems start with commit:
>>
>>    ede6e7b reset: socfpga: add reset handling for old kernels >>
>> Then I get:
>>
>>    U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 - 21:03:52 +0200)
>>    ### ERROR ### Please RESET the board ###
>>
>> Any idea how to fix that?
>
> No, sorry, I don't have an idea right now. Are you sure you're not > missing any of the "u-boot,dm-pre-reloc" tags?
>
> And you're absolutely sure this very commit produces this error?

Well, I somehow fooled myself. Sorry for the noise. The problem was the missing "u-boot,dm-pre-reloc" for the "rst" odr "sdr" node and "CONFIG_SPL_TEXT_BASE=0xFFFF0000" in the defconfig. Now U-Boot starts but the kernel does not...

Quoted 4 lines

Good to know U-Boot works. What's the output of the kernel? Have you added the env variable the above mentioned commit checks? Without it, all peripherals are out into reset and have to be re-enabled by Linux drivers...

OK, have set that variable now.

=> boot
4519072 bytes read in 147 ms (29.3 MiB/s)
26106 bytes read in 2 ms (12.4 MiB/s)
## Flattened Device Tree blob at 00f00000

     Booting using the fdt blob at 0xf00000
     Loading Device Tree to 3bf4b000, end 3bf545f9 ... OK

Starting kernel ...

Quoted 8 lines

Deasserting all peripheral resets

... nothing ...

Quoted 1 line

But this variable should be added by socfpga_common.h

But only if "CONFIG_EXTRA_ENV_SETTINGS" is used from that file, which is not the case for a few boards.

Linux now boots with "setenv bootm_size 0xa000000" ! That's obviously missing in my env seetup as well.

Wolfgang

#18 lore raw

PATCH 1/1 arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

In reply to Wolfgang Grandegger

Wolfgang Grandegger <[email protected]> schrieb am Mi., 8. Mai 2019, 13:34:

Quoted 114 lines

Am 08.05.19 um 13:07 schrieb Simon Goldschmidt:

Quoted 52 lines

Wolfgang Grandegger <wg at aries-embedded.de <mailto:[email protected]>> schrieb am Mi., 8. Mai 2019, 12:23:

    Hello,

    Am 07.05.19 um 21:25 schrieb Simon Goldschmidt:
    >
    >
    > On 07.05.19 21:14, Wolfgang Grandegger wrote:
    >>
    >> Am 07.05.19 um 13:37 schrieb Simon Goldschmidt:
    >>> On Tue, May 7, 2019 at 9:41 AM Wolfgang Grandegger
    >>> <wg at aries-embedded.de <mailto:[email protected]>> wrote:
    >>>>
    >>>>
    >>>>
    >>>> Am 06.05.19 um 22:16 schrieb Simon Goldschmidt:
    >>>>> Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger:
    >>>>>> Re-add support for Aries Embedded MCV SoM, which is CycloneV
    based
    >>>>>> and the associated MCVEVK baseboard. The board can boot from
    eMMC.
    >>>>>> Ethernet and USB is supported.
    >>>>>>
    >>>>>> The Aries Embedded boards have been removed with commit
    03b54997d568
    >>>>>> ("board/aries: Remove"). I will now take care of them.
    >>>>>>
    >>>>>> Signed-off-by: Wolfgang Grandegger <[email protected]
    <mailto:[email protected]>>
    >>>>>> CC: Marek Vasut <marex at denx.de <mailto:[email protected]>>
    >>>>>> CC: Simon Goldschmidt <[email protected]
    <mailto:[email protected]>>
    >>>>>> ---
    >>>>>>    .travis.yml                                      |   2 +-
    >>>>>>    arch/arm/dts/Makefile                            |   1 +
    >>>>>>    arch/arm/dts/socfpga_cyclone5_mcv.dtsi           |  22 +
    >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk-u-boot.dtsi |  38 ++
    >>>>>>    arch/arm/dts/socfpga_cyclone5_mcvevk.dts         |  81 +++
    >>>>>>    arch/arm/mach-socfpga/Kconfig                    |   7 +
    >>>>>>    board/aries/mcvevk/MAINTAINERS                   |   6 +
    >>>>>>    board/aries/mcvevk/Makefile                      |   7 +
    >>>>>>    board/aries/mcvevk/qts/iocsr_config.h            | 659
    >>>>>> +++++++++++++++++++++++
    >>>>>>    board/aries/mcvevk/qts/pinmux_config.h           | 218
    ++++++++
    >>>>>>    board/aries/mcvevk/qts/pll_config.h              |  84 +++
    >>>>>>    board/aries/mcvevk/qts/sdram_config.h            | 343
    >>>>>> ++++++++++++
    >>>>>
Quoted 8 lines
    >>>>> These files are always a mystery. Would you be able to provide
    >>>>> (long-lived) link to a simplistic quartus project so that
    everyone can
    >>>>> regenerate these?
    >>>>>
    >>>>> I'll try to provide such a quartus project for the socrates
    board, and
    >>>>> I'd be very happy if the original Intel dev boards could do so

as

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
Quoted 1 line

well!

There is a Quartus example project for that module/board here:

https://github.com/ARIES-Embedded/mcv

Cool. And is this a permanent link that we could add to some kind of documentation for this board in the U-Boot sources? That would ensure U-Boot maintainers can find it in the future...

Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

I will check with the author!

BTW: My patch works fine on top of v2019.04 but the boot hangs

without
>> console output with the latest HEAD. The problems start with

commit:

Quoted 9 lines
Quoted 6 lines
Quoted 6 lines

ede6e7b reset: socfpga: add reset handling for old kernels

Then I get:

   U-Boot SPL 2019.04-00508-g03b5c7e-dirty (May 07 2019 -

21:03:52 +0200)
>> ### ERROR ### Please RESET the board ###
>>

Quoted 8 lines

>> Any idea how to fix that?
>
> No, sorry, I don't have an idea right now. Are you sure you're not > missing any of the "u-boot,dm-pre-reloc" tags?
>
> And you're absolutely sure this very commit produces this error?

Well, I somehow fooled myself. Sorry for the noise. The problem was

the

Quoted 9 lines

missing "u-boot,dm-pre-reloc" for the "rst" odr "sdr" node and "CONFIG_SPL_TEXT_BASE=0xFFFF0000" in the defconfig. Now U-Boot starts but the kernel does not...

Good to know U-Boot works. What's the output of the kernel? Have you added the env variable the above mentioned commit checks? Without it, all peripherals are out into reset and have to be re-enabled by Linux drivers...

OK, have set that variable now.

=> boot
4519072 bytes read in 147 ms (29.3 MiB/s)
26106 bytes read in 2 ms (12.4 MiB/s)
## Flattened Device Tree blob at 00f00000

Quoted 9 lines
     Booting using the fdt blob at 0xf00000
     Loading Device Tree to 3bf4b000, end 3bf545f9 ... OK

Starting kernel ...

Deasserting all peripheral resets

... nothing ...

Hmm, seems like you need to git bisect that...

Quoted 5 lines
Quoted 1 line

But this variable should be added by socfpga_common.h

But only if "CONFIG_EXTRA_ENV_SETTINGS" is used from that file, which is not the case for a few boards.

Oh, it's not? I haven't noticed that. I'll have to check that and send a follow-up to ensure all mainline boards are fixed that way.

Regards,
Simon

Quoted 1 line