arm64: dts: enable fspi in imx8mm dts
authorAdam Ford <aford173@gmail.com>
Fri, 6 Mar 2020 10:19:57 +0000 (04:19 -0600)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 09:12:32 +0000 (17:12 +0800)
Pull in downstream patch from NXP repository to enable fspi device.

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm.dtsi

index 970a86c724bacb204318116be6b2a18c1cfabb0b..2e5e7c4457dbc247830c0a3506262356b583d035 100644 (file)
                        compatible = "simple-bus";
                        #address-cells = <1>;
                        #size-cells = <1>;
-                       ranges = <0x30800000 0x30800000 0x400000>;
+                       ranges = <0x30800000 0x30800000 0x400000>,
+                                <0x8000000 0x8000000 0x10000000>;
 
                        ecspi1: spi@30820000 {
                                compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
                                status = "disabled";
                        };
 
+                       flexspi: spi@30bb0000 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               compatible = "nxp,imx8mm-fspi";
+                               reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
+                               reg-names = "fspi_base", "fspi_mmap";
+                               interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
+                                        <&clk IMX8MM_CLK_QSPI_ROOT>;
+                               clock-names = "fspi", "fspi_en";
+                               status = "disabled";
+                       };
+
                        sdma1: dma-controller@30bd0000 {
                                compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
                                reg = <0x30bd0000 0x10000>;