]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: mvebu: Modify the A8K SPI and I2C config in DTS
authorKonstantin Porotchkin <kostap@marvell.com>
Thu, 8 Dec 2016 10:22:27 +0000 (12:22 +0200)
committerStefan Roese <sr@denx.de>
Mon, 12 Dec 2016 08:04:52 +0000 (09:04 +0100)
Align the Armada-8040-db and Armada-7040-db SPI and I2C
DTS settings with latest DB settings:
- 8040-db: disable i2c0 and spi0 on AP (MPPs are reserved for SDIO)
- 8040-db: disable cps_i2c0 on CP1
- 8040-db: enable spi1 on CP1 (the new location of the boot flash)
  The spi1 on CP1 is aliased as spi0 since this is the way
  the driver enumerates it.

Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Neta Zur Hershkovits <neta@marvell.com>
Cc: Omri Itach <omrii@marvell.com>
Cc: Igal Liberman <igall@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-7040-db.dts
arch/arm/dts/armada-8040-db.dts

index b8fe5a9cb93dcf9e4e49505800f182d7fb8b58df..1e4d676f6773cc840d967b4730674539b31159a0 100644 (file)
        };
 };
 
-&i2c0 {
-       status = "okay";
-       clock-frequency = <100000>;
-};
-
-&spi0 {
-       status = "okay";
-
-       spi-flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <10000000>;
-
-               partitions {
-                       compatible = "fixed-partitions";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
-                       partition@0 {
-                               label = "U-Boot";
-                               reg = <0 0x200000>;
-                       };
-                       partition@400000 {
-                               label = "Filesystem";
-                               reg = <0x200000 0xce0000>;
-                       };
-               };
-       };
-};
-
 &uart0 {
        status = "okay";
 };
index 7fb674b8b77fe94b2e0a223bd274e4d45ccd2309..86666a128c1ef1786c89d7fdc891c1fbf2afa81d 100644 (file)
@@ -57,7 +57,7 @@
 
        aliases {
                i2c0 = &cpm_i2c0;
-               spi0 = &spi0;
+               spi0 = &cps_spi1;
        };
 
        memory@00000000 {
        };
 };
 
-&i2c0 {
-       status = "okay";
-       clock-frequency = <100000>;
-};
-
-&spi0 {
-       status = "okay";
-
-       spi-flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <10000000>;
-
-               partitions {
-                       compatible = "fixed-partitions";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
-                       partition@0 {
-                               label = "U-Boot";
-                               reg = <0 0x200000>;
-                       };
-                       partition@400000 {
-                               label = "Filesystem";
-                               reg = <0x200000 0xce0000>;
-                       };
-               };
-       };
-};
-
 /* Accessible over the mini-USB CON9 connector on the main board */
 &uart0 {
        status = "okay";
        status = "okay";
 };
 
-&cps_i2c0 {
+&cps_spi1 {
        status = "okay";
-       clock-frequency = <100000>;
+
+       spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "U-Boot";
+                               reg = <0 0x200000>;
+                       };
+                       partition@400000 {
+                               label = "Filesystem";
+                               reg = <0x200000 0xce0000>;
+                       };
+               };
+       };
 };
 
 /* CON4 on CP1 expansion */