arm64: dts: lx2160a: add FlexSPI node property
authorYogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Tue, 15 Jan 2019 12:00:26 +0000 (12:00 +0000)
committerShawn Guo <shawnguo@kernel.org>
Fri, 1 Feb 2019 02:54:24 +0000 (10:54 +0800)
Add fspi node property for LX2160A SoC for FlexSPI driver.
Property added for the FlexSPI controller and for the connected
slave device for the LX2160ARDB target.
This is having two SPI-NOR flash device, mt35xu512aba, connected
at CS0 and CS1.

Signed-off-by: Yogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

index 6481e5f20e69b44984257a7e4ac98f3c1f8d517c..70658946fbbeaedcc7fdab9937dce900bc72d084 100644 (file)
        status = "okay";
 };
 
+&fspi {
+       status = "okay";
+
+       mt35xu512aba0: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spansion,m25p80";
+               m25p,fast-read;
+               spi-max-frequency = <50000000>;
+               reg = <0>;
+       };
+
+       mt35xu512aba1: flash@1 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spansion,m25p80";
+               m25p,fast-read;
+               spi-max-frequency = <50000000>;
+               reg = <1>;
+       };
+};
+
 &i2c0 {
        status = "okay";
 
index 3f6521c47f51ce6af69b5c10e728426146fdac5b..fe87204850b5ac7d46d2b21fb2763f43c869632a 100644 (file)
                        status = "disabled";
                };
 
+               fspi: spi@20c0000 {
+                       compatible = "nxp,lx2160a-fspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x20c0000 0x0 0x10000>,
+                             <0x0 0x20000000 0x0 0x10000000>;
+                       reg-names = "fspi_base", "fspi_mmap";
+                       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen 4 3>, <&clockgen 4 3>;
+                       clock-names = "fspi_en", "fspi";
+                       status = "disabled";
+               };
+
                esdhc0: esdhc@2140000 {
                        compatible = "fsl,esdhc";
                        reg = <0x0 0x2140000 0x0 0x10000>;