]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: clearfog: update SPI flash DT description
authorBaruch Siach <baruch@tkos.co.il>
Mon, 13 Nov 2017 05:04:31 +0000 (07:04 +0200)
committerStefan Roese <sr@denx.de>
Thu, 16 Nov 2017 10:45:20 +0000 (11:45 +0100)
All current ClearFog SOMs have the SPI flash populated. Enable SPI flash in
the device tree.

Add an alias to the SPI bus so that the 'sf' command can probe the flash on
bus 1.

Add the "spi-flash" compatible string to make the standard SPI flash driver
probe the device.

Reviewed-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-388-clearfog.dts

index b2dfd5643521ac8eb213f60e631db0b3f19d8b2f..bc52bc0167d34586799790d8ecb7279fb2fe1cef 100644 (file)
@@ -61,6 +61,7 @@
                ethernet1 = &eth0;
                ethernet2 = &eth1;
                ethernet3 = &eth2;
+               spi1 = &spi1;
        };
 
        chosen {
                                status = "okay";
                        };
 
-                       spi@10680 {
+                       spi1: spi@10680 {
                                /*
-                                * 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)
+                                * CS0: W25Q32
                                 * CS1:
                                 * CS2: mikrobus
                                 */
                                spi-flash@0 {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
-                                       compatible = "w25q32", "jedec,spi-nor";
+                                       compatible = "w25q32", "jedec,spi-nor", "spi-flash";
                                        reg = <0>; /* Chip select 0 */
                                        spi-max-frequency = <3000000>;
-                                       status = "disabled";
                                };
                        };