Skip to contentSkip to conversation

arm64: dts: socfpga: agilex5: add qspi flash node

PATCH Superseded [email protected] 3 participants 3 messages Jan 8, 2025 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: socfpga: agilex5: add qspi flash node

From: Niravkumar L Rabara <[email protected]>

Add Micron qspi nor flash node for Intel SoCFPGA Agilex5.

---
 .../boot/dts/intel/socfpga_agilex5_socdk.dts  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts +33 -0
index c533e5a3a610..6760c088f174 100644
@@ -37,3 +37,36 @@ &usb0 {
 &watchdog0 {
 	status = "okay";
 };
+
+&qspi {
+	status = "okay";
+	flash@0 {
+		compatible = "micron,mt25qu02g", "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <100000000>;
+		m25p,fast-read;
+		cdns,page-size = <256>;
+		cdns,block-size = <16>;
+		cdns,read-delay = <2>;
+		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 = "u-boot";
+				reg = <0x0 0x04200000>;
+			};
+
+			root: partition@4200000 {
+				label = "root";
+				reg = <0x04200000 0x0be00000>;
+			};
+		};
+	};
+};
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · On 08/01/2025 12:28, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Add Micron qspi nor flash node for Intel SoCFPGA Agilex5.

---
 .../boot/dts/intel/socfpga_agilex5_socdk.dts  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts +0 -0
index c533e5a3a610..6760c088f174 100644

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts &usb0 { · line 41

Quoted 5 lines
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts +2 -0
@@ -37,3 +37,36 @@ &usb0 {
 &watchdog0 {
 	status = "okay";
 };
+
+&qspi {

Why breaking the order?

Please *again* read DTS coding style.

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts &usb0 { · line 54

Quoted 13 lines
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts +13 -0
+	status = "okay";
+	flash@0 {
+		compatible = "micron,mt25qu02g", "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <100000000>;
+		m25p,fast-read;
+		cdns,page-size = <256>;
+		cdns,block-size = <16>;
+		cdns,read-delay = <2>;
+		cdns,tshsl-ns = <50>;
+		cdns,tsd2d-ns = <50>;
+		cdns,tchsh-ns = <4>;
+		cdns,tslch-ns = <4>;

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

Several patches you sent recently lack above: following DTS coding style and not tested. Repeating the same comment over and over is very discouraging.

Best regards,
Krzysztof

#2 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, 08 Jan 2025 19:28:34 +0800, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Add Micron qspi nor flash node for Intel SoCFPGA Agilex5.

---
 .../boot/dts/intel/socfpga_agilex5_socdk.dts  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

New warnings running 'make CHECK_DTBS=y intel/socfpga_agilex5_socdk.dtb' for [email protected]:

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dtb: flash@0: Unevaluated properties are not allowed ('cdns,block-size', 'cdns,page-size' were unexpected)
from schema $id: http://devicetree.org/schemas/mtd/jedec,spi-nor.yaml#