Skip to contentSkip to conversation

arm64: dts: agilex: add QSPI support for Intel Agilex

PATCH In review Ooi, Joyce 3 participants 3 messages Oct 16, 2019 – Oct 22, 2019 Device tree bindings

lore
Share & tools
lore

Ooi, Joyce

author
#0 lore raw

PATCH v2 1/1 arm64: dts: agilex: add QSPI support for Intel Agilex

This patch adds QSPI flash interface in device tree for Intel Agilex

---
v2: update the qspi_rootfs partition size

---
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +35 -0
index 7814a9e..8de8118 100644
@@ -73,3 +73,38 @@
 &watchdog0 {
 	status = "okay";
 };
+
+&qspi {
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "mt25qu02g";
+		reg = <0>;
+		spi-max-frequency = <50000000>;
+
+		m25p,fast-read;
+		cdns,page-size = <256>;
+		cdns,block-size = <16>;
+		cdns,read-delay = <1>;
+		cdns,tshsl-ns = <50>;
+		cdns,tsd2d-ns = <50>;
+		cdns,tchsh-ns = <4>;
+		cdns,tslch-ns = <4>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			qspi_boot: partition@0 {
+				label = "Boot and fpga data";
+				reg = <0x0 0x034B0000>;
+			};
+
+			qspi_rootfs: partition@34B0000 {
+				label = "Root Filesystem - JFFS2";
+				reg = <0x034B0000 0x0CB50000>;
+			};
+		};
+	};
+};
Signature · 1 line
1.9.1
#1 lore raw
Quoted 17 lines · Joyce

This patch adds QSPI flash interface in device tree for Intel Agilex

---
v2: update the qspi_rootfs partition size
---
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 35
++++++++++++++++++++++

 1 file changed, 35 insertions(+)
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +0 -0
index 7814a9e..8de8118 100644
@@ -73,3 +73,38 @@
  &watchdog0 {

arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts line 83

Quoted 10 lines
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +8 -0
  	status = "okay";
  };
+
+&qspi {
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "mt25qu02g";
+		reg = <0>;
+		spi-max-frequency = <50000000>;

QSPI can support up to 100MHz.

Quoted 27 lines
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +27 -0
+
+		m25p,fast-read;
+		cdns,page-size = <256>;
+		cdns,block-size = <16>;
+		cdns,read-delay = <1>;
+		cdns,tshsl-ns = <50>;
+		cdns,tsd2d-ns = <50>;
+		cdns,tchsh-ns = <4>;
+		cdns,tslch-ns = <4>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			qspi_boot: partition@0 {
+				label = "Boot and fpga data";
+				reg = <0x0 0x034B0000>;
+			};
+
+			qspi_rootfs: partition@34B0000 {
+				label = "Root Filesystem - JFFS2";
+				reg = <0x034B0000 0x0CB50000>;
+			};
+		};
+	};
+};
#2 lore raw
Quoted 21 lines · Ley Foon Tan
Quoted 20 lines · Joyce

This patch adds QSPI flash interface in device tree for Intel Agilex

---
v2: update the qspi_rootfs partition size
---
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 35
++++++++++++++++++++++

 1 file changed, 35 insertions(+)
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +1 -0
index 7814a9e..8de8118 100644
@@ -73,3 +73,38 @@
  &watchdog0 {
  	status = "okay";
  };
+
Quoted 8 lines

arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts line 83

Quoted 7 lines
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +7 -0
+&qspi {
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "mt25qu02g";
+		reg = <0>;
+		spi-max-frequency = <50000000>;

QSPI can support up to 100MHz.

I've updated the patch accordingly.

Dinh