Skip to contentSkip to conversation

arm: mvebu: armada-xp-theadorable.dts: Add "spi-flash" compatible property

PATCH New Stefan Roese 1 participant 2 messages Oct 23, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm: mvebu: armada-xp-theadorable.dts: Add "spi-flash" compatible property

Add the "spi-flash" compatible string so that the generic sf_probe driver can probe the SPI flash on the theadorable Armada-XP board.

---
 arch/arm/dts/armada-xp-theadorable.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/armada-xp-theadorable.dts +1 -1
index 7087ccfc2f..065e443417 100644
@@ -134,7 +134,7 @@
 					u-boot,dm-pre-reloc;
 					#address-cells = <1>;
 					#size-cells = <1>;
-					compatible = "n25q128a13", "jedec,spi-nor";
+					compatible = "n25q128a13", "jedec,spi-nor", "spi-flash";
 					reg = <0>; /* Chip select 0 */
 					spi-max-frequency = <27777777>;
 				};
Signature · 1 line
2.19.1
#1 lore raw

PATCH 2/2 arm: mvebu: armada-xp-theadorable.dts: Change CS# for 2nd FPGA

The new board version has the 2nd FPGA connected via CS# 0 instead of 2 on SPI bus 1. Change this setup in the DT accordingly. Please note that this change does still work on the old board version because the CS signal is not used on this board.

---
 arch/arm/dts/armada-xp-theadorable.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/dts/armada-xp-theadorable.dts +2 -2
index 065e443417..965c38426c 100644
@@ -151,11 +151,11 @@
 			spi1: spi at 10680 {
 				status = "okay";
 
-				fpga at 2 {
+				fpga at 0 {
 					#address-cells = <1>;
 					#size-cells = <1>;
 					compatible = "spi-generic-device";
-					reg = <2>; /* Chip select 2 */
+					reg = <0>; /* Chip select 0 */
 					spi-max-frequency = <27777777>;
 				};
 			};
Signature · 1 line
2.19.1