Skip to contentSkip to conversation

ARM: stratix10: initial small patchset

PATCH New Dinh Nguyen 2 participants 6 messages Mar 9, 2018 – Mar 17, 2018

Subsystems (5)
lore
Share & tools
lore

Dinh Nguyen

author maintainer
#0 lore raw

cover ARM: stratix10: initial small patchset

Hi,

This is a very small initial patchset for the SoCFPGA Stratix10 platform. This patchset adds a few core address defines that are not obtainable from DT, pulls in from Linux the base DTS files, and the reset manager bindings. The DTB is able to compile with this patchset.

Instead of dropping a larger patchset with for SPL and U-Boot, I figure we start out small first, and allow for a couple of medium size patchset later for further support.

Thanks,
Dinh

Chin Liang See (1):
arm: socfpga: stratix10: Add base address map for Statix10 SoC

Dinh Nguyen (2):
ARM64: stratix10: add reset manager includes
ARM: dts: stratix10: Add base dtsi and devkit dts

 arch/arm/dts/Makefile                              |   1 +
 arch/arm/dts/socfpga_stratix10.dtsi                | 381 +++++++++++++++++++++
 arch/arm/dts/socfpga_stratix10_socdk.dts           |  92 +++++
 arch/arm/mach-socfpga/include/mach/base_addr_s10.h |  33 ++
 include/dt-bindings/reset/altr,rst-mgr-s10.h       |  97 ++++++
 5 files changed, 604 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_stratix10.dtsi
 create mode 100644 arch/arm/dts/socfpga_stratix10_socdk.dts
 create mode 100644 arch/arm/mach-socfpga/include/mach/base_addr_s10.h
 create mode 100644 include/dt-bindings/reset/altr,rst-mgr-s10.h
Signature · 1 line
2.7.4
author maintainer
#1 lore raw

PATCH 1/3 arm: socfpga: stratix10: Add base address map for Statix10 SoC

From: Chin Liang See <[email protected]>

Add the base address map for Statix10 SoC

---
v2: removed addresses that can be part of the fdt

---
 arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 arch/arm/mach-socfpga/include/mach/base_addr_s10.h
arch/arm/mach-socfpga/include/mach/base_addr_s10.h new file +33 -0
new file mode 100644
index 0000000..7052804
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2016-2017 Intel Corporation <www.intel.com>
+ *
+ * SPDX-License-Identifier:	GPL-2.0
+ */
+
+#ifndef _SOCFPGA_S10_BASE_HARDWARE_H_
+#define _SOCFPGA_S10_BASE_HARDWARE_H_
+
+#define SOCFPGA_SDR_SCHEDULER_ADDRESS		0xf8000400
+#define SOCFPGA_HMC_MMR_IO48_ADDRESS		0xf8010000
+#define SOCFPGA_SDR_ADDRESS			0xf8011000
+#define SOCFPGA_SMMU_ADDRESS			0xfa000000
+#define SOCFPGA_MAILBOX_ADDRESS			0xffa30000
+#define SOCFPGA_UART0_ADDRESS			0xffc02000
+#define SOCFPGA_UART1_ADDRESS			0xffc02100
+#define SOCFPGA_SPTIMER0_ADDRESS		0xffc03000
+#define SOCFPGA_SPTIMER1_ADDRESS		0xffc03100
+#define SOCFPGA_SYSTIMER0_ADDRESS		0xffd00000
+#define SOCFPGA_SYSTIMER1_ADDRESS		0xffd00100
+#define SOCFPGA_GTIMER_SEC_ADDRESS		0xffd01000
+#define SOCFPGA_GTIMER_NSEC_ADDRESS		0xffd02000
+#define SOCFPGA_CLKMGR_ADDRESS			0xffd10000
+#define SOCFPGA_RSTMGR_ADDRESS			0xffd11000
+#define SOCFPGA_SYSMGR_ADDRESS			0xffd12000
+#define SOCFPGA_PINMUX_DEDICATED_IO_ADDRESS	0xffd13000
+#define SOCFPGA_DMANONSECURE_ADDRESS		0xffda0000
+#define SOCFPGA_DMASECURE_ADDRESS		0xffda1000
+#define SOCFPGA_OCRAM_ADDRESS			0xffe00000
+#define GICD_BASE				0xfffc1000
+#define GICC_BASE				0xfffc2000
+
+#endif /* _SOCFPGA_S10_BASE_HARDWARE_H_ */
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/3 arm: socfpga: stratix10: Add base address map for Statix10 SoC

Quoted 3 lines · Dinh Nguyen

From: Chin Liang See <[email protected]>

Add the base address map for Statix10 SoC

Stratix ...

Quoted 49 lines

---
v2: removed addresses that can be part of the fdt

---
 arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 arch/arm/mach-socfpga/include/mach/base_addr_s10.h
arch/arm/mach-socfpga/include/mach/base_addr_s10.h new file +33 -0
new file mode 100644
index 0000000..7052804
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2016-2017 Intel Corporation <www.intel.com>
+ *
+ * SPDX-License-Identifier:	GPL-2.0
+ */
+
+#ifndef _SOCFPGA_S10_BASE_HARDWARE_H_
+#define _SOCFPGA_S10_BASE_HARDWARE_H_
+
+#define SOCFPGA_SDR_SCHEDULER_ADDRESS		0xf8000400
+#define SOCFPGA_HMC_MMR_IO48_ADDRESS		0xf8010000
+#define SOCFPGA_SDR_ADDRESS			0xf8011000
+#define SOCFPGA_SMMU_ADDRESS			0xfa000000
+#define SOCFPGA_MAILBOX_ADDRESS			0xffa30000
+#define SOCFPGA_UART0_ADDRESS			0xffc02000
+#define SOCFPGA_UART1_ADDRESS			0xffc02100
+#define SOCFPGA_SPTIMER0_ADDRESS		0xffc03000
+#define SOCFPGA_SPTIMER1_ADDRESS		0xffc03100
+#define SOCFPGA_SYSTIMER0_ADDRESS		0xffd00000
+#define SOCFPGA_SYSTIMER1_ADDRESS		0xffd00100
+#define SOCFPGA_GTIMER_SEC_ADDRESS		0xffd01000
+#define SOCFPGA_GTIMER_NSEC_ADDRESS		0xffd02000
+#define SOCFPGA_CLKMGR_ADDRESS			0xffd10000
+#define SOCFPGA_RSTMGR_ADDRESS			0xffd11000
+#define SOCFPGA_SYSMGR_ADDRESS			0xffd12000
+#define SOCFPGA_PINMUX_DEDICATED_IO_ADDRESS	0xffd13000
+#define SOCFPGA_DMANONSECURE_ADDRESS		0xffda0000
+#define SOCFPGA_DMASECURE_ADDRESS		0xffda1000
+#define SOCFPGA_OCRAM_ADDRESS			0xffe00000
+#define GICD_BASE				0xfffc1000
+#define GICC_BASE				0xfffc2000
+
+#endif /* _SOCFPGA_S10_BASE_HARDWARE_H_ */
Signature · 2 lines
Best regards,
Marek Vasut
author maintainer
#3 lore raw

PATCH 2/3 ARM64: stratix10: add reset manager includes

In reply to Dinh Nguyen

Pulled from linux v4.16-rc4.

---
 include/dt-bindings/reset/altr,rst-mgr-s10.h | 97 ++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
 create mode 100644 include/dt-bindings/reset/altr,rst-mgr-s10.h
include/dt-bindings/reset/altr,rst-mgr-s10.h new file +97 -0
new file mode 100644
index 0000000..e3cae08
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2016-2018 Intel Corporation. All rights reserved
+ * Copyright (C) 2016 Altera Corporation. All rights reserved
+ *
+ * SPDX-License-Identifier:	GPL-2.0
+ * derived from Steffen Trumtrar's "altr,rst-mgr-a10.h"
+ */
+
+#ifndef _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
+#define _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
+
+/* MPUMODRST */
+#define CPU0_RESET		0
+#define CPU1_RESET		1
+#define CPU2_RESET		2
+#define CPU3_RESET		3
+
+/* PER0MODRST */
+#define EMAC0_RESET		32
+#define EMAC1_RESET		33
+#define EMAC2_RESET		34
+#define USB0_RESET		35
+#define USB1_RESET		36
+#define NAND_RESET		37
+/* 38 is empty */
+#define SDMMC_RESET		39
+#define EMAC0_OCP_RESET		40
+#define EMAC1_OCP_RESET		41
+#define EMAC2_OCP_RESET		42
+#define USB0_OCP_RESET		43
+#define USB1_OCP_RESET		44
+#define NAND_OCP_RESET		45
+/* 46 is empty */
+#define SDMMC_OCP_RESET		47
+#define DMA_RESET		48
+#define SPIM0_RESET		49
+#define SPIM1_RESET		50
+#define SPIS0_RESET		51
+#define SPIS1_RESET		52
+#define DMA_OCP_RESET		53
+#define EMAC_PTP_RESET		54
+/* 55 is empty*/
+#define DMAIF0_RESET		56
+#define DMAIF1_RESET		57
+#define DMAIF2_RESET		58
+#define DMAIF3_RESET		59
+#define DMAIF4_RESET		60
+#define DMAIF5_RESET		61
+#define DMAIF6_RESET		62
+#define DMAIF7_RESET		63
+
+/* PER1MODRST */
+#define WATCHDOG0_RESET		64
+#define WATCHDOG1_RESET		65
+#define WATCHDOG2_RESET		66
+#define WATCHDOG3_RESET		67
+#define L4SYSTIMER0_RESET	68
+#define L4SYSTIMER1_RESET	69
+#define SPTIMER0_RESET		70
+#define SPTIMER1_RESET		71
+#define I2C0_RESET		72
+#define I2C1_RESET		73
+#define I2C2_RESET		74
+#define I2C3_RESET		75
+#define I2C4_RESET		76
+/* 77-79 is empty */
+#define UART0_RESET		80
+#define UART1_RESET		81
+/* 82-87 is empty */
+#define GPIO0_RESET		88
+#define GPIO1_RESET		89
+
+/* BRGMODRST */
+#define SOC2FPGA_RESET		96
+#define LWHPS2FPGA_RESET	97
+#define FPGA2SOC_RESET		98
+#define F2SSDRAM0_RESET		99
+#define F2SSDRAM1_RESET		100
+#define F2SSDRAM2_RESET		101
+#define DDRSCH_RESET		102
+
+/* COLDMODRST */
+#define CPUPO0_RESET		160
+#define CPUPO1_RESET		161
+#define CPUPO2_RESET		162
+#define CPUPO3_RESET		163
+/* 164-167 is empty */
+#define L2_RESET		168
+
+/* DBGMODRST */
+#define DBG_RESET		224
+#define CSDAP_RESET		225
+
+/* TAPMODRST */
+#define TAP_RESET		256
+
+#endif
Signature · 1 line
2.7.4
author maintainer
#4 lore raw

PATCH 3/3 ARM: dts: stratix10: Add base dtsi and devkit dts

In reply to Dinh Nguyen

From the Linux v4.16-rc4, add the base dtsi and devkit dts files for the Stratix10 SoCFPGA platform.

---
 arch/arm/dts/Makefile                    |   1 +
 arch/arm/dts/socfpga_stratix10.dtsi      | 381 +++++++++++++++++++++++++++++++
 arch/arm/dts/socfpga_stratix10_socdk.dts |  92 ++++++++
 3 files changed, 474 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_stratix10.dtsi
 create mode 100644 arch/arm/dts/socfpga_stratix10_socdk.dts
arch/arm/dts/Makefile +1 -0
index 20a4c37..5170487 100644
@@ -184,6 +184,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_cyclone5_sockit.dtb			\
 	socfpga_cyclone5_socrates.dtb			\
 	socfpga_cyclone5_sr1500.dtb			\
+	socfpga_stratix10_socdk.dtb			\
 	socfpga_cyclone5_vining_fpga.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb	\
arch/arm/dts/socfpga_stratix10.dtsi new file +381 -0

381 lines not on this page · raw message

arch/arm/dts/socfpga_stratix10_socdk.dts new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
2.7.4
#5 lore raw

cover ARM: stratix10: initial small patchset

In reply to Dinh Nguyen
Quoted 21 lines · Dinh Nguyen

Hi,

This is a very small initial patchset for the SoCFPGA Stratix10 platform. This patchset adds a few core address defines that are not obtainable from DT, pulls in from Linux the base DTS files, and the reset manager bindings. The DTB is able to compile with this patchset.

Instead of dropping a larger patchset with for SPL and U-Boot, I figure we start out small first, and allow for a couple of medium size patchset later for further support.

Thanks,
Dinh

Chin Liang See (1):
arm: socfpga: stratix10: Add base address map for Statix10 SoC

Dinh Nguyen (2):
ARM64: stratix10: add reset manager includes
ARM: dts: stratix10: Add base dtsi and devkit dts

Quoted 11 lines
 arch/arm/dts/Makefile                              |   1 +
 arch/arm/dts/socfpga_stratix10.dtsi                | 381 +++++++++++++++++++++
 arch/arm/dts/socfpga_stratix10_socdk.dts           |  92 +++++
 arch/arm/mach-socfpga/include/mach/base_addr_s10.h |  33 ++
 include/dt-bindings/reset/altr,rst-mgr-s10.h       |  97 ++++++
 5 files changed, 604 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_stratix10.dtsi
 create mode 100644 arch/arm/dts/socfpga_stratix10_socdk.dts
 create mode 100644 arch/arm/mach-socfpga/include/mach/base_addr_s10.h
 create mode 100644 include/dt-bindings/reset/altr,rst-mgr-s10.h

I hope this will not become a pile of dead code ... Applied all, thanks

Signature · 2 lines
Best regards,
Marek Vasut