From: Joel Johnson Date: Fri, 27 Mar 2020 17:31:37 +0000 (-0600) Subject: mvebu: backport ClearFog SPI enablement X-Git-Tag: v19.07.3~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8e0b015e82324dbb7ea701a1008babbf97fffe0;p=oweals%2Fopenwrt.git mvebu: backport ClearFog SPI enablement Backport Device Tree change first added in kernel 4.19 to enable the SPI device on ClearFog devices by default. This is tested and working in snapshot builds with kernel 5.4+, include the change in future 19.07 patch releases. Signed-off-by: Joel Johnson --- diff --git a/target/linux/mvebu/patches-4.14/529-armada388-clearfog-enable-spi-flash.patch b/target/linux/mvebu/patches-4.14/529-armada388-clearfog-enable-spi-flash.patch new file mode 100644 index 0000000000..7ec5b01947 --- /dev/null +++ b/target/linux/mvebu/patches-4.14/529-armada388-clearfog-enable-spi-flash.patch @@ -0,0 +1,50 @@ +From bb683d7ad9d53442586cfdd0a79a6d6c1fec344e Mon Sep 17 00:00:00 2001 +From: Baruch Siach +Date: Thu, 28 Jun 2018 10:13:35 +0300 +Subject: [PATCH] ARM: dts: armada388-clearfog: enable spi flash + +The SolidRun Armada 388 SOM has the SPI flash populated by default +unless the customer explicitly asks otherwise. Enable support by +default. + +Signed-off-by: Baruch Siach +Acked-by: Russell King +Signed-off-by: Gregory CLEMENT +--- + arch/arm/boot/dts/armada-388-clearfog.dts | 2 +- + arch/arm/boot/dts/armada-388-clearfog.dtsi | 2 +- + arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi | 1 - + 3 files changed, 2 insertions(+), 3 deletions(-) + +--- a/arch/arm/boot/dts/armada-388-clearfog.dts ++++ b/arch/arm/boot/dts/armada-388-clearfog.dts +@@ -284,7 +284,7 @@ + &spi1 { + /* + * Add SPI CS pins for clearfog: +- * CS0: W25Q32 (not populated on uSOM) ++ * CS0: W25Q32 + * CS1: + * CS2: mikrobus + */ +--- a/arch/arm/boot/dts/armada-388-clearfog.dtsi ++++ b/arch/arm/boot/dts/armada-388-clearfog.dtsi +@@ -265,7 +265,7 @@ + &spi1 { + /* + * Add SPI CS pins for clearfog: +- * CS0: W25Q32 (not populated on uSOM) ++ * CS0: W25Q32 + * CS1: PIC microcontroller (Pro models) + * CS2: mikrobus + */ +--- a/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi ++++ b/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi +@@ -135,7 +135,6 @@ + compatible = "w25q32", "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <3000000>; +- status = "disabled"; + }; + }; +