From patchwork Mon Sep 22 09:01:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 4946941 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 52A6C9F313 for ; Mon, 22 Sep 2014 10:02:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0E3142021A for ; Mon, 22 Sep 2014 10:02:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 118232016C for ; Mon, 22 Sep 2014 10:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753531AbaIVKCg (ORCPT ); Mon, 22 Sep 2014 06:02:36 -0400 Received: from mail-bn1on0130.outbound.protection.outlook.com ([157.56.110.130]:33566 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750961AbaIVKCf (ORCPT ); Mon, 22 Sep 2014 06:02:35 -0400 Received: from BY1PR0301MB0856.namprd03.prod.outlook.com (25.160.193.15) by BY1PR0301MB1223.namprd03.prod.outlook.com (25.161.203.19) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Mon, 22 Sep 2014 09:29:22 +0000 Received: from BY2PR03CA046.namprd03.prod.outlook.com (10.141.249.19) by BY1PR0301MB0856.namprd03.prod.outlook.com (25.160.193.15) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Mon, 22 Sep 2014 09:29:20 +0000 Received: from BY2FFO11FD018.protection.gbl (2a01:111:f400:7c0c::183) by BY2PR03CA046.outlook.office365.com (2a01:111:e400:2c5d::19) with Microsoft SMTP Server (TLS) id 15.0.1034.13 via Frontend Transport; Mon, 22 Sep 2014 09:29:20 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD018.mail.protection.outlook.com (10.1.14.106) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Mon, 22 Sep 2014 09:29:20 +0000 Received: from shlinux1.ap.freescale.net (shlinux1.ap.freescale.net [10.192.225.216]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s8M9TGjh002073; Mon, 22 Sep 2014 02:29:19 -0700 Received: by shlinux1.ap.freescale.net (Postfix, from userid 1003) id EED091AE1FC; Mon, 22 Sep 2014 17:01:38 +0800 (CST) From: Richard Zhu To: CC: , , , Richard Zhu Subject: [PATCH RFC 1/2] PCI: imx6: enable pcie on imx6qdl sabresd and sabreauto Date: Mon, 22 Sep 2014 17:01:37 +0800 Message-ID: <1411376498-14653-2-git-send-email-r65037@freescale.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1411376498-14653-1-git-send-email-r65037@freescale.com> References: <1411376498-14653-1-git-send-email-r65037@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(428002)(199003)(189002)(52956003)(20776003)(16796002)(76482002)(229853001)(50226001)(64706001)(102836001)(2351001)(95666004)(81156004)(50986999)(4396001)(97736003)(87936001)(46386002)(106466001)(107046002)(101416001)(47776003)(21056001)(31966008)(76176999)(77096002)(88136002)(45336002)(6806004)(105586002)(89996001)(48376002)(19580405001)(79102003)(83322001)(92566001)(74662003)(93916002)(92726001)(74502003)(42186005)(85306004)(44976005)(103686003)(85852003)(81342003)(81542003)(19580395003)(26826002)(104166001)(50466002)(36756003)(62966002)(99396002)(90102001)(77156001)(33646002)(83072002)(68736004)(77982003)(69596002)(120916001)(110136001)(80022003)(87286001)(84676001)(46102003)(32563001)(217873001)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB0856; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0856; X-Forefront-PRVS: 034215E98F Received-SPF: None (protection.outlook.com: shlinux1.ap.freescale.net does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is 192.88.158.2) smtp.mailfrom=r65037@shlinux1.ap.freescale.net; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1223; X-OriginatorOrg: freescale.com Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 - enable pcie support on imx6qdl sabresd and asbreauto boards. - sabresd board has the pcie power on and reset gpios, but sabreauto doesn't have these two gpios. Signed-off-by: Richard Zhu --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 4 ++++ arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 009abd6..d6040a5 100644 --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi @@ -410,6 +410,10 @@ }; }; +&pcie { + status = "okay"; +}; + &pwm3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm3>; diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index ec43dde..c2d3224 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -396,6 +396,7 @@ pinctrl_pcie: pciegrp { fsl,pins = < + MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x80000000 >; }; @@ -502,6 +503,7 @@ &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pcie>; + power-on-gpio = <&gpio3 19 0>; reset-gpio = <&gpio7 12 0>; status = "okay"; };