ARM: dts: imx6ul: add qspi support
authorFrank Li <Frank.Li@freescale.com>
Mon, 20 Jul 2015 19:33:53 +0000 (03:33 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 11 Aug 2015 15:15:21 +0000 (23:15 +0800)
enable qspi support

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-14x14-evk.dts
arch/arm/boot/dts/imx6ul.dtsi

index 3d676ef8e84f9d237dedeb4fc532c687500779e5..ee2243b5ad77b6f595ae6b4f2cfceb8c12bea299 100644 (file)
        soc-supply = <&reg_soc>;
 };
 
+&qspi {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_qspi>;
+       status = "okay";
+
+       flash0: n25q256a@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "micron,n25q256a";
+               spi-max-frequency = <29000000>;
+               reg = <0>;
+       };
+};
+
 &uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;
                >;
        };
 
+       pinctrl_qspi: qspigrp {
+               fsl,pins = <
+                       MX6UL_PAD_NAND_WP_B__QSPI_A_SCLK        0x70a1
+                       MX6UL_PAD_NAND_READY_B__QSPI_A_DATA00   0x70a1
+                       MX6UL_PAD_NAND_CE0_B__QSPI_A_DATA01     0x70a1
+                       MX6UL_PAD_NAND_CE1_B__QSPI_A_DATA02     0x70a1
+                       MX6UL_PAD_NAND_CLE__QSPI_A_DATA03       0x70a1
+                       MX6UL_PAD_NAND_DQS__QSPI_A_SS0_B        0x70a1
+               >;
+       };
+
        pinctrl_pwm1: pwm1grp {
                fsl,pins = <
                        MX6UL_PAD_GPIO1_IO08__PWM1_OUT   0x110b0
index b39ae0ecf901c80c38b7562f0a785acdf9638275..138309ab504f16f0b7b6fd66aa9508391867d5a7 100644 (file)
                                status = "disabled";
                        };
 
+                       qspi: qspi@021e0000 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               compatible = "fsl,imx6ul-qspi", "fsl,imx6sx-qspi";
+                               reg = <0x021e0000 0x4000>, <0x60000000 0x10000000>;
+                               reg-names = "QuadSPI", "QuadSPI-memory";
+                               interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clks IMX6UL_CLK_QSPI>,
+                                        <&clks IMX6UL_CLK_QSPI>;
+                               clock-names = "qspi_en", "qspi";
+                               status = "disabled";
+                       };
+
                        uart2: serial@021e8000 {
                                compatible = "fsl,imx6ul-uart",
                                             "fsl,imx6q-uart";