dm: dts: ls1021a-twr: Enable DSPI2 on LS1021ATWR
authorYuan Yao <yao.yuan@freescale.com>
Wed, 30 Sep 2015 07:35:15 +0000 (13:05 +0530)
committerJagan Teki <jteki@openedev.com>
Sun, 11 Oct 2015 11:13:06 +0000 (16:43 +0530)
Erratum A-008022 has been fixed on LS1021A Rev2.0.
So we can use DSPI2 now, this patch enable DSPI2
in dts for LS1021ATWR.

Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
arch/arm/dts/ls1021a-twr.dts

index 0e61c07..6ccd332 100644 (file)
@@ -17,6 +17,7 @@
                enet0_sgmii_phy = &sgmii_phy2;
                enet1_sgmii_phy = &sgmii_phy0;
                spi0 = &qspi;
+               spi1 = &dspi1;
        };
 };
 
        };
 };
 
+&dspi1 {
+       bus-num = <0>;
+       status = "okay";
+
+       dspiflash: at26df081a@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spi-flash";
+               spi-max-frequency = <16000000>;
+               spi-cpol;
+               spi-cpha;
+               reg = <0>;
+       };
+};
+
 &i2c0 {
        status = "okay";
 };