Skip to contentSkip to conversation

arch: arm: dts: n5x : Switch to using upstream Linux DT config

PATCH Lok, Chen Huei 1 participant 1 message Apr 28 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Tien Fong,

Quoted 10 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+
+&flash0 {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	compatible = "jedec,spi-nor";

upstream DTS has this compatible defined, so the overrides is redundant.

I will drop the redundant "compatible" override for &flash0 in v2.

Quoted 44 lines
Quoted 30 lines
arch/arm/dts/socfpga_n5x_socdk-u-boot.dtsi +5 -5
index bc2fb91dfb5..f013ed49cd3 100644
@@ -8,12 +8,11 @@
  #include "socfpga_n5x-u-boot.dtsi"
 
  /{
-	aliases {
-		spi0 = &qspi;
-		i2c0 = &i2c1;
+	chosen {
+		u-boot,spl-boot-order = &mmc;
  	};
 
-	memory {
+	memory@0 {
  		/*
  		 * Memory type: DDR4 (non-interleaving mode)
  		 * 16GB
@@ -38,10 +37,21 @@
  };
 
  &flash0 {
-	compatible = "jedec,spi-nor";
+	reg = <0>;
  	spi-tx-bus-width = <4>;
  	spi-rx-bus-width = <4>;
+	spi-max-frequency = <100000000>;
  	bootph-all;

arch/arm/dts/socfpga_n5x_socdk-u-boot.dtsi line 54

Quoted 10 lines
arch/arm/dts/socfpga_n5x_socdk-u-boot.dtsi +10 -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>;
+	/delete-property/ cdns,read-delay;

This is contradictory. Setting a property and then deleting it in the same board overlay is nonsensical.

Quoted 3 lines

The intent is unclear, if read-delay should not be set, don't add it; if it should be set, don't delete it.

Agreed. I will remove the unnecessary addition of "cdns,read-delay = <1>;" and keep the node consistent in v2.

Best regards,

Lok