Skip to contentSkip to conversation

Add support for Arria10 devkit

PATCH New [email protected] 1 participant 5 messages Apr 20, 2015

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

v2 cover Add support for Arria10 devkit

From: Dinh Nguyen <[email protected]>

Hi,

This patchset enables and tidy up support for the Arria10 devkit. Along with this patchset and the patchset for enabling clocks on the Arria10, the devkit can boot Linux.

V2:
- Patch "ARM: socfpga: dts: enable UART1 for the debug uart" adds the removal of unused aliases in the dts file.

- Split out the "Documentation: DT bindings: add doc for Altera's SoCFPGA platform" patch.

- Split out the 2 patches for early printk uart.

Thanks,

Dinh Nguyen (4):
ARM: socfpga: add cpu1-start-addr for Arria 10
ARM: socfpga: disable the sdmmc, and uart nodes in the base arria10
ARM: socfpga: dts: enable UART1 for the debug uart
ARM: socfpga: rename socdk board file to socdk_sdmmc

 arch/arm/boot/dts/Makefile                        |  2 +-
 arch/arm/boot/dts/socfpga_arria10.dtsi            | 16 ++------
 arch/arm/boot/dts/socfpga_arria10_socdk.dts       | 48 -----------------------
 arch/arm/boot/dts/socfpga_arria10_socdk.dtsi      | 46 ++++++++++++++++++++++
 arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts | 26 ++++++++++++
 5 files changed, 77 insertions(+), 61 deletions(-)
 delete mode 100755 arch/arm/boot/dts/socfpga_arria10_socdk.dts
 create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk.dtsi
 create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts
Signature · 1 line
2.2.1
#1 lore raw

PATCH v2 1/4 ARM: socfpga: add cpu1-start-addr for Arria 10

From: Dinh Nguyen <[email protected]>

---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -0
index 8a05c47..69d616a 100644
@@ -284,6 +284,7 @@
 		sysmgr: sysmgr at ffd06000 {
 			compatible = "altr,sys-mgr", "syscon";
 			reg = <0xffd06000 0x300>;
+			cpu1-start-addr = <0xffd06230>;
 		};
 
 		/* Local timer */
Signature · 1 line
2.2.1
#2 lore raw

PATCH v2 2/4 ARM: socfpga: disable the sdmmc, and uart nodes in the base arria10

In reply to [email protected]

From: Dinh Nguyen <[email protected]>

Add status = "disabled" in the base DTSI for Arria10. The SDMMC and uart nodes should be enabled in the appropriate board file.

---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +3 -0
index 69d616a..d843609 100644
@@ -268,6 +268,7 @@
 			reg = <0xff808000 0x1000>;
 			interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
 			fifo-depth = <0x400>;
+			status = "disabled";
 		};
 
 		ocram: sram at ffe00000 {
@@ -324,6 +325,7 @@
 			interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
 			reg-shift = <2>;
 			reg-io-width = <4>;
+			status = "disabled";
 		};
 
 		uart1: serial1 at ffc02100 {
@@ -332,6 +334,7 @@
 			interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
 			reg-shift = <2>;
 			reg-io-width = <4>;
+			status = "disabled";
 		};
 
 		usbphy0: usbphy at 0 {
Signature · 1 line
2.2.1
#3 lore raw

PATCH v2 3/4 ARM: socfpga: dts: enable UART1 for the debug uart

In reply to [email protected]

From: Dinh Nguyen <[email protected]>

Arria10 devkit is using UART1 for the debug uart port. Remove unused aliases.

---
v2: Add removal of unused aliases

---
 arch/arm/boot/dts/socfpga_arria10.dtsi      | 12 ------------
 arch/arm/boot/dts/socfpga_arria10_socdk.dts |  8 ++++----
 2 files changed, 4 insertions(+), 16 deletions(-)
arch/arm/boot/dts/socfpga_arria10.dtsi +0 -12
index d843609..6c3ad92 100644
@@ -21,18 +21,6 @@
 	#address-cells = <1>;
 	#size-cells = <1>;
 
-	aliases {
-		ethernet0 = &gmac0;
-		ethernet1 = &gmac1;
-		ethernet2 = &gmac2;
-		serial0 = &uart0;
-		serial1 = &uart1;
-		timer0 = &timer0;
-		timer1 = &timer1;
-		timer2 = &timer2;
-		timer3 = &timer3;
-	};
-
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
arch/arm/boot/dts/socfpga_arria10_socdk.dts +4 -4
index 3015ce8..811a61c 100755
@@ -40,9 +40,9 @@
 				};
 			};
 		};
-
-		serial0 at ffc02000 {
-			status = "okay";
-		};
 	};
 };
+
+&uart1 {
+	status = "okay";
+};
Signature · 1 line
2.2.1
#4 lore raw

PATCH v2 4/4 ARM: socfpga: rename socdk board file to socdk_sdmmc

In reply to [email protected]

From: Dinh Nguyen <[email protected]>

Rename the socfpga_arria10_socdk board file to socfpga_arria10_socdk_sdmmc as Arria 10 devkit cannot support SDMMC and QSPI at the same time. Thus we will need to have 2 separate board files, one for SDMMC and one for QSPI. We also add a new base board dtsi file, socfpga_arria10_socdk.dtsi so that we use common peripherals for each flavor of the devkits.

Add the sdmmc node to the socfpga_arria10_socdk_sdmmc.dts board file.

---
 arch/arm/boot/dts/Makefile                        |  2 +-
 arch/arm/boot/dts/socfpga_arria10_socdk.dts       | 48 -----------------------
 arch/arm/boot/dts/socfpga_arria10_socdk.dtsi      | 46 ++++++++++++++++++++++
 arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts | 26 ++++++++++++
 4 files changed, 73 insertions(+), 49 deletions(-)
 delete mode 100755 arch/arm/boot/dts/socfpga_arria10_socdk.dts
 create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk.dtsi
 create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts
arch/arm/boot/dts/Makefile +1 -1
index a1c776b..e50441a 100644
@@ -485,7 +485,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \
 	r8a7794-alt.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) += \
 	socfpga_arria5_socdk.dtb \
-	socfpga_arria10_socdk.dtb \
+	socfpga_arria10_socdk_sdmmc.dtb \
 	socfpga_cyclone5_socdk.dtb \
 	socfpga_cyclone5_sockit.dtb \
 	socfpga_cyclone5_socrates.dtb \
arch/arm/boot/dts/socfpga_arria10_socdk.dts deleted +0 -48

48 lines not on this page · raw message

arch/arm/boot/dts/socfpga_arria10_socdk.dtsi new file +46 -0

46 lines not on this page · raw message

arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts new file +26 -0
new file mode 100644
index 0000000..dbbb751
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2014-2015 Altera Corporation <www.altera.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/dts-v1/;
+#include "socfpga_arria10_socdk.dtsi"
+
+&mmc {
+	status = "okay";
+	num-slots = <1>;
+	broken-cd;
+	bus-width = <4>;
+};
Signature · 1 line
2.2.1