arm64: dts: ls1012a: Add QSPI node properties
authorKuldeep Singh <kuldeep.singh@nxp.com>
Mon, 30 Mar 2020 11:16:30 +0000 (16:46 +0530)
committerShawn Guo <shawnguo@kernel.org>
Sat, 25 Apr 2020 01:16:06 +0000 (09:16 +0800)
Add support for QSPI on NXP layerscape LS1012A-RDB, LS1012A-QDS,
LS1012A-FRDM and LS1012A-FRWY boards.

LS1012A-RDB has 2 Spansion "s25fs512s" flashes of size 64M each and only
one can be accessed at a time.
LS1012A-QDS/FRDM has 1 spansion "s25fs512s" flash of size 64M.
LS1012A-FRWY has one winbond "w25q16dw" flash of size 2M.

Use generic compatibles as "jedec,spi-nor" for automatic detection of
flash. Configure RX and TX buswidth values as 2 as only two I/O lines are
available for data transfer.

Add ls1012a(si) node alongwith flash nodes.

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

index f90c040..6770266 100644 (file)
        };
 };
 
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               m25p,fast-read;
+               reg = <0>;
+               spi-rx-bus-width = <2>;
+               spi-tx-bus-width = <2>;
+       };
+};
+
 &sai2 {
        status = "okay";
 };
index 8749634..6290e2f 100644 (file)
 &i2c0 {
        status = "okay";
 };
+
+&qspi {
+       status = "okay";
+
+       w25q16dw0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               m25p,fast-read;
+               spi-max-frequency = <50000000>;
+               reg = <0>;
+               spi-rx-bus-width = <2>;
+               spi-tx-bus-width = <2>;
+       };
+};
index 2fb1cb1..449475a 100644 (file)
        };
 };
 
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               m25p,fast-read;
+               reg = <0>;
+               spi-rx-bus-width = <2>;
+               spi-tx-bus-width = <2>;
+       };
+};
+
 &sai2 {
        status = "okay";
 };
index 5edb1e1..d45c176 100644 (file)
        status = "okay";
 };
 
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+               m25p,fast-read;
+               reg = <0>;
+               spi-rx-bus-width = <2>;
+               spi-tx-bus-width = <2>;
+       };
+};
+
 &sata {
        status = "okay";
 };
index 3379193..006e544 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               qspi: spi@1550000 {
+                       compatible = "fsl,ls1021a-qspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x1550000 0x0 0x10000>,
+                               <0x0 0x40000000 0x0 0x10000000>;
+                       reg-names = "QuadSPI", "QuadSPI-memory";
+                       interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "qspi_en", "qspi";
+                       clocks = <&clockgen 4 0>, <&clockgen 4 0>;
+                       status = "disabled";
+               };
+
                esdhc0: esdhc@1560000 {
                        compatible = "fsl,ls1012a-esdhc", "fsl,esdhc";
                        reg = <0x0 0x1560000 0x0 0x10000>;