Add-CoreCourse-socfpga-Board
Subsystems (3)
v2 cover Add-CoreCourse-socfpga-Board
Introduce CoreCourse board to mainstream.
Altera SoCFPGA GEN5 boards:
AC501 - small formfactor
AC550 - complex development board
Brian Sune (2):
Add CoreCourse socfpga Board - AC501
Add CoreCourse socfpga Board - AC550
arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_cyclone5_ac501soc.dts | 86 +++ arch/arm/dts/socfpga_cyclone5_ac550soc.dts | 132 ++++ .../dts/socfpga_cyclone_ac501soc-u-boot.dtsi | 44 ++ .../dts/socfpga_cyclone_ac550soc-u-boot.dtsi | 44 ++ arch/arm/mach-socfpga/Kconfig | 14 + board/corecourse/ac501soc/MAINTAINERS | 6 + board/corecourse/ac501soc/qts/iocsr_config.h | 664 ++++++++++++++++++ board/corecourse/ac501soc/qts/pinmux_config.h | 222 ++++++ board/corecourse/ac501soc/qts/pll_config.h | 86 +++ board/corecourse/ac501soc/qts/sdram_config.h | 349 +++++++++ board/corecourse/ac550soc/MAINTAINERS | 6 + board/corecourse/ac550soc/qts/iocsr_config.h | 664 ++++++++++++++++++ board/corecourse/ac550soc/qts/pinmux_config.h | 222 ++++++ board/corecourse/ac550soc/qts/pll_config.h | 86 +++ board/corecourse/ac550soc/qts/sdram_config.h | 349 +++++++++ configs/socfpga_ac501soc_defconfig | 85 +++ configs/socfpga_ac550soc_defconfig | 85 +++ include/configs/socfpga_ac501soc.h | 16 + include/configs/socfpga_ac550soc.h | 16 + 20 files changed, 3178 insertions(+) create mode 100644 arch/arm/dts/socfpga_cyclone5_ac501soc.dts create mode 100644 arch/arm/dts/socfpga_cyclone5_ac550soc.dts create mode 100644 arch/arm/dts/socfpga_cyclone_ac501soc-u-boot.dtsi create mode 100644 arch/arm/dts/socfpga_cyclone_ac550soc-u-boot.dtsi create mode 100644 board/corecourse/ac501soc/MAINTAINERS create mode 100644 board/corecourse/ac501soc/qts/iocsr_config.h create mode 100644 board/corecourse/ac501soc/qts/pinmux_config.h create mode 100644 board/corecourse/ac501soc/qts/pll_config.h create mode 100644 board/corecourse/ac501soc/qts/sdram_config.h create mode 100644 board/corecourse/ac550soc/MAINTAINERS create mode 100644 board/corecourse/ac550soc/qts/iocsr_config.h create mode 100644 board/corecourse/ac550soc/qts/pinmux_config.h create mode 100644 board/corecourse/ac550soc/qts/pll_config.h create mode 100644 board/corecourse/ac550soc/qts/sdram_config.h create mode 100644 configs/socfpga_ac501soc_defconfig create mode 100644 configs/socfpga_ac550soc_defconfig create mode 100644 include/configs/socfpga_ac501soc.h create mode 100644 include/configs/socfpga_ac550soc.h
Signature · 1 line
2.34.1
PATCH v2 1/2 Add CoreCourse socfpga Board - AC501
CoreCourse Altera GEN5 Cyclone V board
do support different size and formfactor.
Now introducing AC501 C5 to mainstream u-boot
This is a UBGA-484 based board with basic
feature. More info on [1]
[1] https://corecourse.cn/forum.php?mod=viewthread&tid=27704&highlight=AC501
--- arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_cyclone5_ac501soc.dts | 86 +++ .../dts/socfpga_cyclone_ac501soc-u-boot.dtsi | 44 ++ arch/arm/mach-socfpga/Kconfig | 14 + board/corecourse/ac501soc/MAINTAINERS | 6 + board/corecourse/ac501soc/qts/iocsr_config.h | 664 ++++++++++++++++++ board/corecourse/ac501soc/qts/pinmux_config.h | 222 ++++++ board/corecourse/ac501soc/qts/pll_config.h | 86 +++ board/corecourse/ac501soc/qts/sdram_config.h | 349 +++++++++ configs/socfpga_ac501soc_defconfig | 85 +++ include/configs/socfpga_ac501soc.h | 16 + 11 files changed, 1574 insertions(+) create mode 100644 arch/arm/dts/socfpga_cyclone5_ac501soc.dts create mode 100644 arch/arm/dts/socfpga_cyclone_ac501soc-u-boot.dtsi create mode 100644 board/corecourse/ac501soc/MAINTAINERS create mode 100644 board/corecourse/ac501soc/qts/iocsr_config.h create mode 100644 board/corecourse/ac501soc/qts/pinmux_config.h create mode 100644 board/corecourse/ac501soc/qts/pll_config.h create mode 100644 board/corecourse/ac501soc/qts/sdram_config.h create mode 100644 configs/socfpga_ac501soc_defconfig create mode 100644 include/configs/socfpga_ac501soc.h
arch/arm/dts/Makefile +2 -0
@@ -468,6 +468,8 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_cyclone5_socrates.dtb \ socfpga_cyclone5_sr1500.dtb \ socfpga_cyclone5_vining_fpga.dtb \ + socfpga_cyclone5_ac501soc.dtb \ + socfpga_cyclone5_ac550soc.dtb \ socfpga_n5x_socdk.dtb \ socfpga_stratix10_socdk.dtb
arch/arm/dts/socfpga_cyclone5_ac501soc.dts new file +86 -0
86 lines not on this page · raw message
arch/arm/dts/socfpga_cyclone_ac501soc-u-boot.dtsi new file +44 -0
44 lines not on this page · raw message
arch/arm/mach-socfpga/Kconfig +14 -0
@@ -239,6 +239,14 @@ config TARGET_SOCFPGA_TERASIC_SOCKIT bool "Terasic SoCkit (Cyclone V)" select TARGET_SOCFPGA_CYCLONE5 +config TARGET_SOCFPGA_CORECOURSE_AC501SOC + bool "CoreCourse AC501SoC (Cyclone V)" + select TARGET_SOCFPGA_CYCLONE5 + +config TARGET_SOCFPGA_CORECOURSE_AC550SOC + bool "CoreCourse AC550SoC (Cyclone V)" + select TARGET_SOCFPGA_CYCLONE5 + endchoice config SYS_BOARD
@@ -263,6 +271,8 @@ config SYS_BOARD default "sr1500" if TARGET_SOCFPGA_SR1500 default "stratix10-socdk" if TARGET_SOCFPGA_STRATIX10_SOCDK default "vining_fpga" if TARGET_SOCFPGA_SOFTING_VINING_FPGA + default "ac501soc" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "ac550soc" if TARGET_SOCFPGA_CORECOURSE_AC550SOC config SYS_VENDOR default "intel" if TARGET_SOCFPGA_AGILEX7M_SOCDK
@@ -284,6 +294,8 @@ config SYS_VENDOR default "terasic" if TARGET_SOCFPGA_TERASIC_DE10_NANO default "terasic" if TARGET_SOCFPGA_TERASIC_DE10_STANDARD default "terasic" if TARGET_SOCFPGA_TERASIC_SOCKIT + default "corecourse" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "corecourse" if TARGET_SOCFPGA_CORECOURSE_AC550SOC config SYS_SOC default "socfpga"
@@ -310,5 +322,7 @@ config SYS_CONFIG_NAME default "socfpga_sr1500" if TARGET_SOCFPGA_SR1500 default "socfpga_stratix10_socdk" if TARGET_SOCFPGA_STRATIX10_SOCDK default "socfpga_vining_fpga" if TARGET_SOCFPGA_SOFTING_VINING_FPGA + default "socfpga_ac501soc" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "socfpga_ac550soc" if TARGET_SOCFPGA_CORECOURSE_AC550SOC endif
board/corecourse/ac501soc/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +SOCFPGA BOARD +M: Brian Sune <[email protected]> +S: Maintained +F: board/corecource/ac501soc/ +F: include/configs/socfpga_ac501soc.h +F: configs/socfpga_ac501soc_defconfig
board/corecourse/ac501soc/qts/iocsr_config.h new file +664 -0
664 lines not on this page · raw message
board/corecourse/ac501soc/qts/pinmux_config.h new file +222 -0
222 lines not on this page · raw message
board/corecourse/ac501soc/qts/pll_config.h new file +86 -0
86 lines not on this page · raw message
board/corecourse/ac501soc/qts/sdram_config.h new file +349 -0
349 lines not on this page · raw message
configs/socfpga_ac501soc_defconfig new file +85 -0
85 lines not on this page · raw message
include/configs/socfpga_ac501soc.h new file +16 -0
@@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2025 Brian Sune <[email protected]> +*/ +#ifndef __CONFIG_CORESOURCE_AC501SOC_H__ +#define __CONFIG_CORESOURCE_AC501SOC_H__ + +#include <asm/arch/base_addr_ac5.h> + +/* Memory configurations */ +#define PHYS_SDRAM_1_SIZE 0x40000000/* 1GiB */ + +/* The rest of the configuration is shared */ +#include <configs/socfpga_common.h> + +#endif /* __CONFIG_CORESOURCE_AC501SOC_H__ */
Signature · 1 line
2.34.1
Dinh Nguyen
maintainerRe: [PATCH v2 1/2] Add CoreCourse socfpga Board - AC501
Hi Brian,
Quoted 37 lines · Brian Sune
CoreCourse Altera GEN5 Cyclone V board
do support different size and formfactor.
Now introducing AC501 C5 to mainstream u-boot
This is a UBGA-484 based board with basic
feature. More info on [1][1] https://corecourse.cn/forum.php?mod=viewthread&tid=27704&highlight=AC501
Signed-off-by Brian Sune <[email protected]>--- arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_cyclone5_ac501soc.dts | 86 +++ .../dts/socfpga_cyclone_ac501soc-u-boot.dtsi | 44 ++ arch/arm/mach-socfpga/Kconfig | 14 + board/corecourse/ac501soc/MAINTAINERS | 6 + board/corecourse/ac501soc/qts/iocsr_config.h | 664 ++++++++++++++++++ board/corecourse/ac501soc/qts/pinmux_config.h | 222 ++++++ board/corecourse/ac501soc/qts/pll_config.h | 86 +++ board/corecourse/ac501soc/qts/sdram_config.h | 349 +++++++++ configs/socfpga_ac501soc_defconfig | 85 +++ include/configs/socfpga_ac501soc.h | 16 + 11 files changed, 1574 insertions(+)create mode 100644
arch/arm/dts/socfpga_cyclone5_ac501soc.dtscreate mode 100644arch/arm/dts/socfpga_cyclone_ac501soc-u-boot.dtsicreate mode 100644 board/corecourse/ac501soc/MAINTAINERS create mode 100644board/corecourse/ac501soc/qts/iocsr_config.hcreate mode 100644board/corecourse/ac501soc/qts/pinmux_config.hcreate mode 100644board/corecourse/ac501soc/qts/pll_config.hcreate mode 100644board/corecourse/ac501soc/qts/sdram_config.hcreate mode 100644 configs/socfpga_ac501soc_defconfig create mode 100644include/configs/socfpga_ac501soc.harch/arm/dts/Makefile +0
-0
arch/arm/dts/Makefile dtb-$(CONFIG_ARCH_SOCFPGA) += \ · line 472
Quoted 5 lines
arch/arm/dts/Makefile +2
-0@@ -468,6 +468,8 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_cyclone5_socrates.dtb \ socfpga_cyclone5_sr1500.dtb \ socfpga_cyclone5_vining_fpga.dtb \ + socfpga_cyclone5_ac501soc.dtb \ + socfpga_cyclone5_ac550soc.dtb \
You should include the build for the ac550 board in the AC550 patch.
Quoted 13 lines
arch/arm/dts/Makefile +0
-0socfpga_n5x_socdk.dtb \ socfpga_stratix10_socdk.dtbarch/arm/dts/socfpga_cyclone5_ac501soc.dts new file +4
-0@@ -0,0 +1,86 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2025, Brian Sune + *
<snip>
Quoted 42 lines
arch/arm/dts/socfpga_cyclone5_ac501soc.dts new file +4
-0+ +&portc { + bank-name = "portc"; +};arch/arm/mach-socfpga/Kconfig +12
-0@@ -239,6 +239,14 @@ config TARGET_SOCFPGA_TERASIC_SOCKIT bool "Terasic SoCkit (Cyclone V)" select TARGET_SOCFPGA_CYCLONE5 +config TARGET_SOCFPGA_CORECOURSE_AC501SOC + bool "CoreCourse AC501SoC (Cyclone V)" + select TARGET_SOCFPGA_CYCLONE5 + +config TARGET_SOCFPGA_CORECOURSE_AC550SOC + bool "CoreCourse AC550SoC (Cyclone V)" + select TARGET_SOCFPGA_CYCLONE5 + endchoice config SYS_BOARD@@ -263,6 +271,8 @@ config SYS_BOARD default "sr1500" if TARGET_SOCFPGA_SR1500 default "stratix10-socdk" if TARGET_SOCFPGA_STRATIX10_SOCDK default "vining_fpga" if TARGET_SOCFPGA_SOFTING_VINING_FPGA + default "ac501soc" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "ac550soc" if TARGET_SOCFPGA_CORECOURSE_AC550SOC config SYS_VENDOR default "intel" if TARGET_SOCFPGA_AGILEX7M_SOCDK@@ -284,6 +294,8 @@ config SYS_VENDOR default "terasic" if TARGET_SOCFPGA_TERASIC_DE10_NANO default "terasic" if TARGET_SOCFPGA_TERASIC_DE10_STANDARD default "terasic" if TARGET_SOCFPGA_TERASIC_SOCKIT + default "corecourse" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "corecourse" if TARGET_SOCFPGA_CORECOURSE_AC550SOC config SYS_SOC default "socfpga"
arch/arm/mach-socfpga/Kconfig config SYS_CONFIG_NAME · line 327
Quoted 6 lines
arch/arm/mach-socfpga/Kconfig +2
-0@@ -310,5 +322,7 @@ config SYS_CONFIG_NAME default "socfpga_sr1500" if TARGET_SOCFPGA_SR1500 default "socfpga_stratix10_socdk" if TARGET_SOCFPGA_STRATIX10_SOCDK default "socfpga_vining_fpga" if TARGET_SOCFPGA_SOFTING_VINING_FPGA + default "socfpga_ac501soc" if TARGET_SOCFPGA_CORECOURSE_AC501SOC + default "socfpga_ac550soc" if TARGET_SOCFPGA_CORECOURSE_AC550SOC
Same comment...
Dinh
Re: [PATCH v2 1/2] Add CoreCourse socfpga Board - AC501
In reply to Brian SuneHi T.F.,
Any issue on the new board patches?
Please review and push to the mainstream if possible.
Thanks,
Brian
Quoted 11 lines · Brian Sune
CoreCourse Altera GEN5 Cyclone V board do support different size and formfactor. Now introducing AC501 C5 to mainstream u-boot This is a UBGA-484 based board with basic feature. More info on [1]
[1] https://corecourse.cn/forum.php?mod=viewthread&tid=27704&highlight=AC501
Signed-off-by Brian Sune <[email protected]>---
same~
Re: [PATCH v2 1/2] Add CoreCourse socfpga Board - AC501
Hi Brian,
Quoted 6 lines · Sune Brian
[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
Hi T.F.,
Any issue on the new board patches?
Please review and push to the mainstream if possible.
Thanks for the reminder.
I’ve just returned from a long holiday and am currently working through a fairly large backlog, so reviews are taking a bit longer than usual. I haven’t had a chance to look at the patches yet.
That said, I do intend to get back on track and will try my best to review these as soon as I clear the higher-priority items. I’ll follow up once I’ve had a chance to go through the series.
Thanks for your patience.
Best regards,
Tien Fong
PATCH v2 2/2 Add CoreCourse socfpga Board - AC550
In reply to Brian SuneCoreCourse Altera GEN5 Cyclone V board
do support different size and formfactor.
Now introducing AC550 C5 to mainstream u-boot
This is a more complex and unified board with
feature. More info on [1]
[1] https://corecourse.cn/forum.php?mod=viewthread&tid=29788&extra=page%3D1
--- arch/arm/dts/socfpga_cyclone5_ac550soc.dts | 132 ++++ .../dts/socfpga_cyclone_ac550soc-u-boot.dtsi | 44 ++ board/corecourse/ac550soc/MAINTAINERS | 6 + board/corecourse/ac550soc/qts/iocsr_config.h | 664 ++++++++++++++++++ board/corecourse/ac550soc/qts/pinmux_config.h | 222 ++++++ board/corecourse/ac550soc/qts/pll_config.h | 86 +++ board/corecourse/ac550soc/qts/sdram_config.h | 349 +++++++++ configs/socfpga_ac550soc_defconfig | 85 +++ include/configs/socfpga_ac550soc.h | 16 + 9 files changed, 1604 insertions(+) create mode 100644 arch/arm/dts/socfpga_cyclone5_ac550soc.dts create mode 100644 arch/arm/dts/socfpga_cyclone_ac550soc-u-boot.dtsi create mode 100644 board/corecourse/ac550soc/MAINTAINERS create mode 100644 board/corecourse/ac550soc/qts/iocsr_config.h create mode 100644 board/corecourse/ac550soc/qts/pinmux_config.h create mode 100644 board/corecourse/ac550soc/qts/pll_config.h create mode 100644 board/corecourse/ac550soc/qts/sdram_config.h create mode 100644 configs/socfpga_ac550soc_defconfig create mode 100644 include/configs/socfpga_ac550soc.h
arch/arm/dts/socfpga_cyclone5_ac550soc.dts new file +132 -0
@@ -0,0 +1,132 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2025, Brian Sune + * + * based on socfpga_cyclone5_socdk.dts + */ + +#include "socfpga_cyclone5.dtsi" +#include "socfpga-common-u-boot.dtsi" + +/ { + model = "CoreCourse AC550SoC,AC802-CVA6"; + compatible = "altr,socfpga-cyclone5", "altr,socfpga"; + + chosen { + bootargs = "console=ttyS0,115200"; + stdout-path = "serial0:115200n8"; + }; + + aliases { + ethernet0 = &gmac1; + udc0 = &usb1; + }; + + memory@0 { + name = "memory"; + device_type = "memory"; + reg = <0x0 0x40000000>; /* 1GB */ + }; + + leds { + compatible = "gpio-leds"; + hps0 { + label = "hps_led0"; + gpios = <&portb 6 1>; + }; + + hps1 { + label = "hps_led1"; + gpios = <&porta 9 1>; + }; + }; + + buttons { + compatible = "gpio-keys"; + hps0 { + label = "HPS GPIO0"; + gpios = <&porta 0 0>; + }; + }; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <100000>; +}; + +&i2c3 { + status = "okay"; + clock-frequency = <100000>; + + i2c-sda-falling-time-ns = <5000>; + i2c-scl-falling-time-ns = <5000>; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + pagesize = <32>; + }; + + rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + #clock-cells = <0>; + }; +}; + +&gmac1 { + status = "okay"; + phy-mode = "rgmii"; + + rxd0-skew-ps = <420>; + rxd1-skew-ps = <420>; + rxd2-skew-ps = <420>; + rxd3-skew-ps = <420>; + txen-skew-ps = <0>; + txc-skew-ps = <1860>; + rxdv-skew-ps = <420>; + rxc-skew-ps = <1680>; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&porta { + bank-name = "porta"; +}; + +&portb { + bank-name = "portb"; +}; + +&portc { + bank-name = "portc"; +}; + +&mmc0 { + status = "okay"; + bootph-all; +}; + +&usb1 { + status = "okay"; +}; + +&uart0 { + clock-frequency = <100000000>; + bootph-all; +}; + +&watchdog0 { + status = "disabled"; +};
arch/arm/dts/socfpga_cyclone_ac550soc-u-boot.dtsi new file +44 -0
44 lines not on this page · raw message
board/corecourse/ac550soc/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +SOCFPGA BOARD +M: Brian Sune <[email protected]> +S: Maintained +F: board/corecource/ac550soc/ +F: include/configs/socfpga_ac550soc.h +F: configs/socfpga_ac550soc_defconfig
board/corecourse/ac550soc/qts/iocsr_config.h new file +664 -0
664 lines not on this page · raw message
board/corecourse/ac550soc/qts/pinmux_config.h new file +222 -0
222 lines not on this page · raw message
board/corecourse/ac550soc/qts/pll_config.h new file +86 -0
86 lines not on this page · raw message
board/corecourse/ac550soc/qts/sdram_config.h new file +349 -0
349 lines not on this page · raw message
configs/socfpga_ac550soc_defconfig new file +85 -0
85 lines not on this page · raw message
include/configs/socfpga_ac550soc.h new file +16 -0
@@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2025 Brian Sune <[email protected]> +*/ +#ifndef __CONFIG_CORESOURCE_AC550SOC_H__ +#define __CONFIG_CORESOURCE_AC550SOC_H__ + +#include <asm/arch/base_addr_ac5.h> + +/* Memory configurations */ +#define PHYS_SDRAM_1_SIZE 0x40000000/* 1GiB */ + +/* The rest of the configuration is shared */ +#include <configs/socfpga_common.h> + +#endif /* __CONFIG_CORESOURCE_AC550SOC_H__ */
Signature · 1 line
2.34.1