From patchwork Tue Nov 26 06:04:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 3236691 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A5992C045B for ; Tue, 26 Nov 2013 06:04:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92CEC2035C for ; Tue, 26 Nov 2013 06:04:53 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E8AC2034F for ; Tue, 26 Nov 2013 06:04:52 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlBlQ-0001ev-7t; Tue, 26 Nov 2013 06:04:48 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlBlN-0000zR-RZ; Tue, 26 Nov 2013 06:04:45 +0000 Received: from mail-db8lp0185.outbound.messaging.microsoft.com ([213.199.154.185] helo=db8outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlBlK-0000z6-D3 for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2013 06:04:43 +0000 Received: from mail125-db8-R.bigfish.com (10.174.8.248) by DB8EHSOBE042.bigfish.com (10.174.4.105) with Microsoft SMTP Server id 14.1.225.22; Tue, 26 Nov 2013 06:04:20 +0000 Received: from mail125-db8 (localhost [127.0.0.1]) by mail125-db8-R.bigfish.com (Postfix) with ESMTP id 774B93409C2; Tue, 26 Nov 2013 06:04:20 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: VS-4(zz98dI9371Ifb6I542I1432Izz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097hz2dh109h2a8h839h8e2h8e3hd25hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h2184h21a6h2216h22d0hbe9i1155h) Received: from mail125-db8 (localhost.localdomain [127.0.0.1]) by mail125-db8 (MessageSwitch) id 1385445858853426_22576; Tue, 26 Nov 2013 06:04:18 +0000 (UTC) Received: from DB8EHSMHS028.bigfish.com (unknown [10.174.8.227]) by mail125-db8.bigfish.com (Postfix) with ESMTP id BFE51160061; Tue, 26 Nov 2013 06:04:18 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB8EHSMHS028.bigfish.com (10.174.4.38) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 26 Nov 2013 06:04:17 +0000 Received: from 039-SN2MPN1-011.039d.mgd.msft.net ([169.254.1.106]) by 039-SN1MMR1-004.039d.mgd.msft.net ([::1]) with mapi id 14.03.0158.002; Tue, 26 Nov 2013 06:04:17 +0000 From: Richard Zhu To: Shawn Guo , Harro Haan Subject: RE: [PATCH v6 3/3] PCI: imx6: Add support for i.MX6 PCIe controller Thread-Topic: [PATCH v6 3/3] PCI: imx6: Add support for i.MX6 PCIe controller Thread-Index: AQHOsrgPwmz8duXJ30CX8RjjgYmYTZn6IYmAgAALYKCAABTBgIAAAkWwgACF0gCAHGuiAIAAMGqAgBwXXACAA7dmYIAAJtAAgAABE/CAABcucA== Date: Tue, 26 Nov 2013 06:04:16 +0000 Message-ID: <0E83723C55F66F43A6041464FE31119D45B9CC@039-SN2MPN1-011.039d.mgd.msft.net> References: <1379319655-20210-4-git-send-email-xobs@kosagi.com> <0E83723C55F66F43A6041464FE31119D40FC99@039-SN2MPN1-011.039d.mgd.msft.net> <0E83723C55F66F43A6041464FE31119D40FD55@039-SN2MPN1-011.039d.mgd.msft.net> <52792C5E.6030008@writeme.com> <0E83723C55F66F43A6041464FE31119D45B7C1@039-SN2MPN1-011.039d.mgd.msft.net> <20131126043139.GH30476@S2101-09.ap.freescale.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.192.242.157] MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131126_010442_652032_F8821DDE X-CRM114-Status: GOOD ( 19.27 ) X-Spam-Score: -1.9 (-) Cc: Sinan Akman , =?iso-8859-2?Q?Marek_Va=B9ut?= , Pratyush Anand , Tim Harvey , Jingoo Han , Troy Kisky , Bjorn Helgaas , Sean Cross , Sascha Hauer , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=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 Hi Shawn & Harro: > -----Original Message----- > From: Zhu Richard-R65037 > Sent: Tuesday, November 26, 2013 12:36 PM > To: 'Shawn Guo' > Cc: Harro Haan; linux-arm-kernel@lists.infradead.org; Sinan Akman; Marek Vašut; > Pratyush Anand; Tim Harvey; Jingoo Han; Troy Kisky; Sean Cross; Sascha Hauer; > Bjorn Helgaas > Subject: RE: [PATCH v6 3/3] PCI: imx6: Add support for i.MX6 PCIe controller > > Hi Shawn: > > > > -----Original Message----- > > From: Shawn Guo [mailto:shawn.guo@linaro.org] > > Sent: Tuesday, November 26, 2013 12:32 PM > > To: Zhu Richard-R65037 > > Cc: Harro Haan; linux-arm-kernel@lists.infradead.org; Sinan Akman; > > Marek Vašut; Pratyush Anand; Tim Harvey; Jingoo Han; Troy Kisky; Sean > > Cross; Sascha Hauer; Bjorn Helgaas > > Subject: Re: [PATCH v6 3/3] PCI: imx6: Add support for i.MX6 PCIe > > controller > > > > Richard, > > > > On Tue, Nov 26, 2013 at 02:20:15AM +0000, Richard Zhu wrote: <...> > > > > Since v3.13-rc1 is out there with pci-imx6 driver merged, can you > > please give it a test to see what's missing there at platform level to > > get PCIe support on imx6q-sabresd? That will be easy for Harro to follow. > > > > Shawn > [Richard] Ok, no problem, I'm preparing the test, would post the status later. > [Richard] Based on the tag " pci-v3.13-fixes-1" on pci git-repos, imx6 pcie had been tested on imx6 sabresd board. The pcie works after enable pcie support in imx6qdl-sabresd.dtsi file. Patch: Author: Richard Zhu Date: Tue Nov 26 13:29:24 2013 +0800 pcie: imx6: enable pcie on imx6qdl sabresd board Add pcie device tree node into imx6qdl dts file, enable pcie on imx6qdl sabresd board Signed-off-by: Richard Zhu LOGs when e1000e nic is used: uname -a Linux freescale 3.12.0+ #49 SMP Tue Nov 26 13:26:03 CST 2013 armv7l GNU/Linux root@freescale ~$ lspci -v 00:00.0 PCI bridge: Unknown device 16c3:abcd (rev 01) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Memory at 01000000 (32-bit, non-prefetchable) [size=1M] Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 00001000-00001fff Memory behind bridge: 01100000-011fffff Prefetchable memory behind bridge: 01200000-012fffff [virtual] Expansion ROM at 01300000 [disabled] [size=64K] Capabilities: [40] Power Management version 3 Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable- Capabilities: [70] Express Root Port (Slot-) IRQ 0 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel 01:00.0 Ethernet controller: Intel Corporation Unknown device 10d3 Subsystem: Intel Corporation Unknown device a01f Flags: bus master, fast devsel, latency 0, IRQ 155 Memory at 01180000 (32-bit, non-prefetchable) [size=128K] Memory at 01100000 (32-bit, non-prefetchable) [size=512K] I/O ports at 1000 [disabled] [size=32] Memory at 011a0000 (32-bit, non-prefetchable) [size=16K] [virtual] Expansion ROM at 01200000 [disabled] [size=256K] Capabilities: [c8] Power Management version 2 Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Capabilities: [e0] Express Endpoint IRQ 0 Capabilities: [a0] MSI-X: Enable- Mask- TabSize=5 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 8b-18-3a-ff-ff-21-1b-00 > > <...> > > Best Regards > Richard Zhu [Richard] Best Regards Richard Zhu diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index e75e11b..b821f87 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -212,6 +212,12 @@ }; }; +&pcie { + power-on-gpio = <&gpio3 19 0>; + reset-gpio = <&gpio7 12 0>; + status = "okay"; +}; + &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm0_1>;