]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: armada388-clearfog: move SPI flash into microsom
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 2 Jan 2017 14:58:41 +0000 (14:58 +0000)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 4 Jan 2017 10:38:07 +0000 (11:38 +0100)
The optional SPI flash is fitted to the microsom, not the clearfog
board, so it should be specified in the microsom DTS include file.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-388-clearfog.dts
arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi

index 4744a31fdce63540693ff597a8860415e6f63f0a..00618d8f44847fccde699e60e3d7e31cc4a19811 100644 (file)
 
 &spi1 {
        /*
-        * We don't seem to have the W25Q32 on the
-        * A1 Rev 2.0 boards, so disable SPI.
-        * CS0: W25Q32 (doesn't appear to be present)
+        * Add SPI CS pins for clearfog:
+        * CS0: W25Q32 (not populated on uSOM)
         * CS1:
         * CS2: mikrobus
         */
                     &mikro_spi_pins>;
        pinctrl-names = "default";
        status = "okay";
-
-       spi-flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "w25q32", "jedec,spi-nor";
-               reg = <0>; /* Chip select 0 */
-               spi-max-frequency = <3000000>;
-               status = "disabled";
-       };
 };
index 02f18ab5b69ca4aa26833bc70394e1905309bd2b..c67e6173e87937d7481c796b47c2503badb0b90c 100644 (file)
 
        };
 };
+
+&spi1 {
+       /* The microsom has an optional W25Q32 on board, connected to CS0 */
+       pinctrl-0 = <&spi1_pins>;
+
+       w25q32: spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "w25q32", "jedec,spi-nor";
+               reg = <0>; /* Chip select 0 */
+               spi-max-frequency = <3000000>;
+               status = "disabled";
+       };
+};