arm64: dts: ls1088a: Add QSPI support for NXP LS1088
authorAshish Kumar <Ashish.Kumar@nxp.com>
Wed, 4 Dec 2019 10:58:18 +0000 (16:28 +0530)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Dec 2019 03:13:44 +0000 (11:13 +0800)
Add QSPI node in dtsi(ls1088a), and dts(ls1088ardb, ls1088aqds) boards.

Both ls1088ardb and ls1088aqds has two 64MB flash from SPANSION(s25fs512s).
QUAD I/O is tested in case of read and single I/O is tested in case of
write.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi

index 120e62d..41d8b15 100644 (file)
        status = "okay";
 };
 
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <1>;
+               reg = <0>;
+       };
+
+       s25fs512s1: flash@1 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <1>;
+               reg = <1>;
+       };
+};
+
 &sata {
        status = "okay";
 };
index 90b1989..4d77b34 100644 (file)
        status = "okay";
 };
 
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <1>;
+               reg = <0>;
+       };
+
+       s25fs512s1: flash@1 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <1>;
+               reg = <1>;
+       };
+};
+
 &sata {
        status = "okay";
 };
index c676d07..5945662 100644 (file)
                        status = "disabled";
                };
 
+               qspi: spi@20c0000 {
+                       compatible = "fsl,ls2080a-qspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x20c0000 0x0 0x10000>,
+                             <0x0 0x20000000 0x0 0x10000000>;
+                       reg-names = "QuadSPI", "QuadSPI-memory";
+                       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "qspi_en", "qspi";
+                       clocks = <&clockgen 4 3>, <&clockgen 4 3>;
+                       status = "disabled";
+               };
+
                esdhc: esdhc@2140000 {
                        compatible = "fsl,ls1088a-esdhc", "fsl,esdhc";
                        reg = <0x0 0x2140000 0x0 0x10000>;