diff options
author | Han Xu <han.xu@nxp.com> | 2016-12-14 11:38:49 -0600 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:26 +0800 |
commit | d9b72ab2cf20fddfafafa6e21c3a90bf53fc0434 (patch) | |
tree | ba19da49bb21615e95709b7c702a3538ff44680f | |
parent | 41fabb1fcc62c16584e41d03393706dffdd48858 (diff) |
MLK-13612-1: ARM: dts: enable QSPI for i.MX7ULP1
Add one more dts for QSPI on i.MX7ULP1 for mfgtool purpose.
Signed-off-by: Han Xu <han.xu@nxp.com>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx7ulp-evk-qspi.dts | 41 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx7ulp.dtsi | 3 |
3 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 5a1c5d98a16a..bee38af41294 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -635,6 +635,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \ imx7ulp-evk.dtb \ imx7ulp-evk-emmc.dtb \ imx7ulp-evk-lpuart.dtb \ + imx7ulp-evk-qspi.dtb \ imx7ulp-evk-wm8960.dtb dtb-$(CONFIG_SOC_LS1021A) += \ ls1021a-qds.dtb \ diff --git a/arch/arm/boot/dts/imx7ulp-evk-qspi.dts b/arch/arm/boot/dts/imx7ulp-evk-qspi.dts new file mode 100644 index 000000000000..93dbb07ab1a9 --- /dev/null +++ b/arch/arm/boot/dts/imx7ulp-evk-qspi.dts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "imx7ulp-evk.dts" + +&qspi1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi1_1>; + status = "okay"; + + flash0: mx25r6435f@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + compatible = "macronix,mx25r6435f"; + spi-max-frequency = <29000000>; + }; +}; + +&iomuxc1 { + imx7ulp-evk { + pinctrl_qspi1_1: qspi1grp_1 { + fsl,pins = < + IMX7ULP_PAD_PTB7_LLWU0_P11__QSPIA_SS1_B 0x43 /* SS1 */ + IMX7ULP_PAD_PTB8__QSPIA_SS0_B 0x43 /* SS0 */ + IMX7ULP_PAD_PTB15__QSPIA_SCLK 0x43 /* SCLK */ + IMX7ULP_PAD_PTB9_LLWU0_P12__QSPIA_DQS 0x43 /* DQS */ + IMX7ULP_PAD_PTB16_LLWU0_P14__QSPIA_DATA3 0x43 /* D3 */ + IMX7ULP_PAD_PTB17__QSPIA_DATA2 0x43 /* D2 */ + IMX7ULP_PAD_PTB18__QSPIA_DATA1 0x43 /* D1 */ + IMX7ULP_PAD_PTB19_LLWU0_P15__QSPIA_DATA0 0x43 /* D0 */ + >; + }; + }; +}; + diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 67a22167a403..71b8beefd474 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -532,6 +532,9 @@ reg = <0x410A5000 0x10000>, <0xC0000000 0x10000000>; reg-names = "QuadSPI", "QuadSPI-memory"; interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks IMX7ULP_CLK_DUMMY>, + <&clks IMX7ULP_CLK_DUMMY>; + clock-names = "qspi_en", "qspi"; status = "disabled"; }; |