From patchwork Mon Jul 20 19:33:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6830541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1C8C8C05AC for ; Mon, 20 Jul 2015 20:45:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B2EC20601 for ; Mon, 20 Jul 2015 20:45:55 +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 643A7205F3 for ; Mon, 20 Jul 2015 20:45:54 +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 1ZHHuq-0005wW-WC; Mon, 20 Jul 2015 20:44:01 +0000 Received: from mail-bl2on0138.outbound.protection.outlook.com ([65.55.169.138] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHHue-0005op-Om for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2015 20:43:49 +0000 Received: from BN3PR0301CA0020.namprd03.prod.outlook.com (10.160.180.158) by SN1PR0301MB1648.namprd03.prod.outlook.com (10.162.130.142) with Microsoft SMTP Server (TLS) id 15.1.219.17; Mon, 20 Jul 2015 20:43:26 +0000 Received: from BL2FFO11FD043.protection.gbl (2a01:111:f400:7c09::119) by BN3PR0301CA0020.outlook.office365.com (2a01:111:e400:4000::30) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Mon, 20 Jul 2015 20:43:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD043.mail.protection.outlook.com (10.173.161.139) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Mon, 20 Jul 2015 20:43:25 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t6KKhJMW000632; Mon, 20 Jul 2015 13:43:23 -0700 From: To: , , Subject: [PATCH V2 2/2] ARM: dts: imx6ul: add qspi support Date: Tue, 21 Jul 2015 03:33:53 +0800 Message-ID: <1437420833-22911-2-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437420833-22911-1-git-send-email-Frank.Li@freescale.com> References: <1437420833-22911-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD043; 1:Zpb4NuethP+1nucRO/zGwR62rcSJXDGQ65Mpb3bHn69ea/+btYx2Zl7CFdpCUT6XNsx58DsY+aeahhP4kd5XCsMFRsgt7xIAxkmEEOt8JXE+YMJczCVaSA3m+hVlgfWZtCNSeo/ef+3pi8ebCVxNZljV1i5IO+hrx1qVJdivYg62HApUnVg53SSws4rH90gXDP5HrlaPVSJhbUgKy7Aeo1WnHtpqCHGR5r5sKJNNN3k3VPkhbjiGsdc+g2Lds5ek46JE+ArT9n/RXfmVSLOW/8icv/Nw2eD281HBLKDtUzVQwV8OOlnhJ0LtmVQUPRfuhG8F4lMWErvlKkfSeX3KLf4rcmFT7qLY9uH0h8bqFRpobL6WOgk3b9F1e/G21hBb/ZzbvSG9AADEzx4FSpjQ1Uywc7FWN1Qiph2s2uukJDPyzKejd2I7lkmymjmtzkUI X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(47776003)(50466002)(106466001)(50986999)(92566002)(36756003)(2950100001)(76176999)(48376002)(5001770100001)(77096005)(229853001)(5003940100001)(85426001)(77156002)(62966003)(6806004)(5001960100002)(50226001)(189998001)(104016003)(105606002)(87936001)(86152002)(19580395003)(19580405001)(86362001)(2201001)(46102003)(107886002)(32563001)(4001430100001)(473944003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB1648; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 2:k3WAt1MaXoe9t2ZGhsbQa69EGiUBlgh1upCJgq1b/FFdI/OiF3Qf4az6PwLKwvw4; 3:nQLZxNHxSE/CKW6yqp/TPGiZ6FMdKx4fQTtgMJoeLMT981+ViLJ6Tfh2GKTb04RM7x8G2JbXI86aeml0y61MS5j9JJljUvsvL048w5WXcSVG3q9zR6udwBxDijBiLXzqHEQmqgqb3tEPPS4LeJPiU9PB6LYyPL/ckeJOmCqUQBIwlhfA63nsb93ddudS9vady6qy4exaMzfZ6xuCh5cTIN8yOqlXWoMJlZabW+QZ38A=; 25:Ls+gJhQ/Bm1W1SLIB6jgI4dHzE7cRvn5/LKGbd9SjbtowHlJ8GthOC0DJ9mUfKHP/UGR/kVjXDNgxwkDjDYzaqyPTMDsKVq7oD5sW806vNpNjU9jBH54GlNhmP901Tl4ldw8lkMnJ/VJ8NdckkgDTRpy2+bs6BJyFfABV0yindB8tE2dfUOcjLKpNjgGNGF7p0CKDUC4jlCuMlqESH/zaOUsccWlxf1XDVzpfPdfRyX4b4ug8wvQ5Me5qxfCQGS9; 20:pLZq3wThEZaBQSPXSj9we8eA00siKX69LFKw0KrnwKVUkaWOlpzt7m9io5tsZAf+cDji0CJrbw5bWa5sIKhRu15eIIAVqcx9GrJtfNibuFwYa7oRujK/kRUGQ1AkQCDCFLu3Qeyi9zhNvp40fFMpQLF3Bi86qMcRZhTGgDs6QXpx+1WN8vSQoB+7BDaDYVoUwnfA1wGOYic+aOizuRDbulzUgZBZ4W4OWxXzHefyyBDHhEUuMxw5ZnZdjZ9cXDi78A7LrR0xLo/du4UEYqx0RP755YEoyPviC2hxavsBmIiUnRuIVjhElu6GC8ObOPThmmOsTnj48VHysuUSTst9IcEExYLSdn4HzrpRXI4Q0VU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1648; SN1PR0301MB1648: 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:SN1PR0301MB1648; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1648; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 4:XvrSqZ5Tb1VtNp3s5TQMwiUe4BpOHVZ8awzrJzeIeq03AtSrTwD4jZRngiIEmYNMVp5SFyN0GJ6vR6hDbg6uHXsvs4cK3291snUV+FPZJoqyVxAhUEoBTULhGlksHyv0A0AI8p1bOLShZMGrPMKgGp4XBnneUZZYPwlHZfEvY+33A7rLiuc2uuYSfh37THVxKBDeqCiRtWSpXCEd6y3S8wOy0FiUprymopAsb5KOnAnN+3wUbGeeCYok8k/mrJYBp6IG17Y99usKkBzK4qX5PPd8pb+MSjHNz7iAxcpFf2c= X-Forefront-PRVS: 0643BDA83C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1648; 23:yEwCQar5yVJqa6B9ABtXAwOfD6D15jgsO1m75G7?= =?us-ascii?Q?hyiQ/Qg0G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p9ghIbI?= =?us-ascii?Q?7mkTA1YTDHBcsyztF9pWzfKvcaK8L83Dl7ceU3sJDyACm+oxJ2gxSIfmWlqf?= =?us-ascii?Q?bCq4uKDeueBD5Ucz/cnwdpYRm?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 5:OVQ3fGzS1U9Cab/UnSSlt957PAwRm0YvQXI/ld3dCs3S+WIvS7cJs1zbbyeXtg4FTENFsUx95toAYSmr3/td8quMQvkECIcj4wG0I8ym1JHw76Ejp6e9Gm4CT+PVbA2ZBzYfVjQRQ9VrWuNveSGJVA==; 24:K8um4n8oJD+fqpj7YJuorHlSdVbovIaaXYoDldz6xhx1YEZdQIUdHftjSs7H4Gzreh3/Z0PBhvLzJ33qHENQiXHElk8zWYOG7kmTMgyJKHA=; 20:e+ArYSdayhbHFmHjZF3drlyYiWa15OMzJmn7yNbL2hqr9uwKwaEUkqOCycTBciQ82SIi3TaPad/ayPkL4E4Usw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2015 20:43:25.8325 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1648 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150720_134348_990604_D693BC61 X-CRM114-Status: GOOD ( 17.04 ) 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 --- Change from v1 to v2: - update compatible string because local change missed in v1 arch/arm/boot/dts/imx6ul-14x14-evk.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/imx6ul.dtsi | 13 +++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index 3d676ef..ee2243b 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts @@ -44,6 +44,20 @@ 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>; + reg = <0>; + }; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -206,6 +220,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..8d3925e 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";