From patchwork Mon Jul 20 19:02:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6830471 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A991A9F358 for ; Mon, 20 Jul 2015 20:14:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8373205EB for ; Mon, 20 Jul 2015 20:14:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 081352055D for ; Mon, 20 Jul 2015 20:14:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHHQJ-0006Me-7M; Mon, 20 Jul 2015 20:12:27 +0000 Received: from mail-by2on0107.outbound.protection.outlook.com ([207.46.100.107] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHHQ6-0005zv-8i for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2015 20:12:15 +0000 Received: from DM2PR03CA0025.namprd03.prod.outlook.com (10.141.96.24) by BY2PR0301MB1637.namprd03.prod.outlook.com (10.163.28.139) with Microsoft SMTP Server (TLS) id 15.1.219.17; Mon, 20 Jul 2015 20:11:51 +0000 Received: from BN1BFFO11FD051.protection.gbl (2a01:111:f400:7c10::1:129) by DM2PR03CA0025.outlook.office365.com (2a01:111:e400:2428::24) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Mon, 20 Jul 2015 20:11:51 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD051.mail.protection.outlook.com (10.58.145.6) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Mon, 20 Jul 2015 20:11:51 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t6KKBkOS011328; Mon, 20 Jul 2015 13:11:48 -0700 From: To: , , Subject: [PATCH 2/2] ARM: dts: imx6ul: add qspi support Date: Tue, 21 Jul 2015 03:02:21 +0800 Message-ID: <1437418941-19051-2-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437418941-19051-1-git-send-email-Frank.Li@freescale.com> References: <1437418941-19051-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD051; 1:20roU7FIfvJG30rObIl8ud02I3a5Vd690Tt7/a0CGXSrmNpgviYm6l0g9xWXBjWIEVNS0r+GRQ2fzcwu5tLMzKPZ+wQJ6ijaoVlWsZkoaJk6tdhPKpGMBOwpzxbSPTqqIdVscJhU3OdevAeVc1Mg7cdy6UXMBifoynLcr3T/pYeC5qcTS7tVb0cqKhrpL4f4KM03KbnP/LcRqtNlAOMH3KbXp/eZelAIIpKM0xSXK2pAWU1iHYcxWXVGDUgIIOzczkRjQP6T2GKHId8nXDrDpSAYv7krY2DGtpa4G/EyNvu4/sny3QSOWfTYlNrWruXpbbUujTrzJ3yM45IeTGAoG8SoTqC7wsnJU62mqOdGgzIRmRohnlxKlchJPca+SgMDwyWqvOlyUEqcDFe8Y0pBd0xyBhIYyYKzUcrFnvKPTO+aAoir5l6x1WytdSUFIDZp X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(76176999)(19580405001)(47776003)(5001960100002)(86362001)(6806004)(107886002)(2201001)(19580395003)(46102003)(104016003)(106466001)(105606002)(86152002)(87936001)(229853001)(85426001)(50466002)(50226001)(50986999)(5001920100001)(189998001)(5001770100001)(48376002)(77096005)(5003940100001)(77156002)(2950100001)(62966003)(36756003)(92566002)(32563001)(4001430100001)(473944003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB1637; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1637; 2:xON+GbJUqznOuiHoInCKxXxnaB23qXVKtOeMwCzhikXsYv9i2adEbKysjDn2Lkxg; 3:Qdpt9xSoW+cNuumo4LokYibzL7LFjO+3jfwj3dXE0bvtk04Dhd9G1l4DIayIcKmlhytOtRP1vZ8GxEaIKHmO+tjxRDor8ua3g9sfICMTlNKVeyr2Mj8d5neBHbDxf+H9cifSG/QMipalM7IS/1lfQ47yuM0xCERs6pd/57FQnZLk1fGJgsw1vDDlRkyCItgEj6Rjo4X114o157RLHZ108Onrk4XQBNIvcw6jhml4A6s=; 25:CYKGIoxy/7aTQ3JhQdomhyZS7+pcopgvQSuhbPzuayihWvZmBaxDt2Tq+V4Vx5fnEV+WdssLo2D9BuvsPs5mGlPPBp1n12ZR1fuWxia9iA6CinLe5HJwlb/58A6pPOjIEDHX6QRcEPAwBkhCB3feP9kHofxk5ONY/L5A/yDl/Po8EnVLnI19dJ5Oyb1RjDxuPQkcCbzCjabXIpdNu1lwVerARJ3Db4lh9rFZ3FgieTlHHBbBJ2Eamh514QzfmKDd; 20:ANUQLPxD7HtcSl2XyZOQcommX+RInGuSPHMy3JrcRWBO304arkBXpV5AQ7pm7aQpxaNpjibJN+Jm6ahjyUcJjTqloi28tIHvJU+w2M47eYyKGIj/jPdGNoJ16SOhZ/M8BYccxlwysOa4fezGpv16k+ALqir+7LUBeACwQ3JuFbuEyxX0rrFY131CjHjc2iJ05CZNGjnCd0/l9kUgc/Ux2ecqUOYEBGZvb4mtRZvrKL3WLiTGBxMcBBGXWl6JUI8HQwKspiJ4Yskbx499Inu7TZ1zjWwEeSfGE5ZFa/djs7I9E7hWMCQoZsvgQaN2aFh+i/o46XOJGM4SLSX2cmW5+aUCj0qsOqqpxWKURii9GrQ= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1637; BY2PR0301MB1637: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2PR0301MB1637; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB1637; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1637; 4:LFr2tJwYWysQejPbH1JwVy6aOnvv8/W8+unUwmwplGi47wLXwqAXPqXTjtdqd7LZ+b1Zv4ZG5/IDoRvVyi032Jwj/Jb4BkMzXrnONnjOMVkMJXozXS4Es+AjZojJd6RN37FrmZuICCiLDAP+iuq0L9wesCTCG5y5Xu4ofwaAvNEOLe1fHBmDmaz2Ob0gBy1onaa891tyNNtyag7/YtBjK6jyZZD0fCpzWnyBCOjMzxFNEjFS7rhu1n9fjxpihHKQ3uKEcqd7N7uFugkp64W/BtOwgM3lEsutRsBZJqR2yL8= X-Forefront-PRVS: 0643BDA83C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1637; 23:FIOOVBQbxKVxuuElNm1lgnPkv1az900+zs8gm39?= =?us-ascii?Q?7rne9seWcTpWft/VzRzKtenbf3rGStJajKk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?Q?xOPMrCnkMBuU6Dbhpb1Vd3s8n2TJeHFiZ78GLKUGEoOGa5bmiSUSKRvTbKAj?= =?us-ascii?Q?cLMYSNIuVlhqoAD/CRWqFyyrSKd9VmD4oFhvaZJNPx8Hn5PiVCGR5fLI5yPM?= =?us-ascii?Q?RHad0zU0=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1637; 5:hkd1D7a9yaG021tITGk1YgCYGW8vVr+ZAy8eOsILF9lCi/18/OGABL/US2nXJVIFOIoqx5I/6SCV9DDaHTAqF+i6BrDud33clZ8TEGBdO8uz71d6LHWrVOKpBEdcgkl85MBpdOl0ks/Wlf+sUO+3Vg==; 24:jHUSdnUwvwayfgpv//ETPjn31hs79kHIK0oFOoQwtuGNJhLoxgm2Z260cZ3dIINTPuYiwujWFUn1BRMByh1xwibto0ILvjWwLuBrf4uGUeQ=; 20:G3vux0lZTmnt6WxPlxz69DRlDowEpdTDfxTAEwb3ZGaL/QCtlkZc2hS3pE8vOcoAWOerXAI0p6Z05jELxfdXUw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2015 20:11:51.1545 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150720_131214_324985_9BD8076A X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Frank Li enable qspi support Signed-off-by: Frank Li --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 26 ++++++++++++++++++++++++++ arch/arm/boot/dts/imx6ul.dtsi | 13 +++++++++++++ 2 files changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index 3d676ef..b314024 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts @@ -44,6 +44,21 @@ soc-supply = <®_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>; + spi-nor,ddr-quad-read-dummy = <6>; + reg = <0>; + }; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -206,6 +221,17 @@ >; }; + 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 diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index 61507ef..3e36f97 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -592,6 +592,19 @@ 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 = ; + 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";