From patchwork Tue Sep 19 09:26:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 9958571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE9136038F for ; Tue, 19 Sep 2017 09:54:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC5A328979 for ; Tue, 19 Sep 2017 09:54:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE0BD28998; Tue, 19 Sep 2017 09:54:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34DB528979 for ; Tue, 19 Sep 2017 09:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jdDEaKu0cbl/BCnxWy/kf6rQ7rAzi60bWF4BUHjZjwA=; b=kE8LD69YR3vDdt /f6Gf/0RMSpGbtXrK5kEbpkRHd51NsIdztWGx/+zvC62MO+eGeokMZbtSIG7LDGHfwikmvp7OqvuV dHVQbR73NTxxtoS2w4bzioAeUHdzksg56E6vndtrkMX0xZb7uMQngKMNLq3hoCKeN7Aw6depOCEyn 22vEA+kQnXjefLTCSOqXentR/QRoQzmvzA3k/6Vvo1MHuP2qSMPOJrn8ZVomyflh76INglrODvvp3 QkRvcMq5COK/V1BeBbuwmLc0xTjKLx9Q/9BxDeRTgCOO1hweJTE6RWc6n2/crh/FBO+zxOtqbh2/g n2a6XL4S7RZbQ6FGkVYw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1duFEx-0000z0-K6; Tue, 19 Sep 2017 09:54:51 +0000 Received: from mail-co1nam03on0046.outbound.protection.outlook.com ([104.47.40.46] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duF5Q-0002kh-0U for linux-arm-kernel@lists.infradead.org; Tue, 19 Sep 2017 09:45:08 +0000 Received: from BN6PR03CA0058.namprd03.prod.outlook.com (10.173.137.20) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 09:44:38 +0000 Received: from BN1BFFO11FD039.protection.gbl (2a01:111:f400:7c10::1:138) by BN6PR03CA0058.outlook.office365.com (2603:10b6:404:4c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.9 via Frontend Transport; Tue, 19 Sep 2017 09:44:37 +0000 Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BN1BFFO11FD039.mail.protection.outlook.com (10.58.144.102) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.35.14 via Frontend Transport; Tue, 19 Sep 2017 09:44:37 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8J9iINQ014190; Tue, 19 Sep 2017 02:44:32 -0700 From: Zhiqiang Hou To: , , , , , , , , , , , , Subject: [PATCH 3/5] PCI: layerscape: Add support for ls1012a Date: Tue, 19 Sep 2017 17:26:56 +0800 Message-ID: <20170919092658.22482-4-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170919092658.22482-1-Zhiqiang.Hou@nxp.com> References: <20170919092658.22482-1-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502878779311106; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(376002)(346002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(2950100002)(6666003)(86362001)(6636002)(77096006)(1076002)(72206003)(2906002)(5660300001)(498600001)(47776003)(575784001)(2201001)(110136005)(50986999)(36756003)(316002)(16586007)(104016004)(76176999)(50226002)(356003)(105606002)(305945005)(8676002)(106466001)(81166006)(81156014)(48376002)(50466002)(97736004)(8936002)(53936002)(7416002)(4326008)(68736007)(5003940100001)(8656003)(189998001)(921003)(1121003)(2101003)(83996005); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD039; 1:9I0Fi5qPOgAtX8bn7l+coAVOAmukCAZGDqEq+atO2tvN18mNRw8hai2veD4+cwfnj1eQXUiUKw1nXvPyOw80nYz/GBp4i3lKke5QAwjg4YLAKKNM381ZBZQ4tgis+fId MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 366617f8-e8a5-4a33-0402-08d4ff430b0c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:BlpfJH4H7N0jpuQBjlumIiXMVyZq5nFiCj3ORDSkhGsKwEqbSVcm6U2RVNewyYiZF/UVX7mQf3rUcg82V3+b2nhlrE2Zc921tHc1wXPn9tI3WFVqXcJR/kszD/pByMcUo7wUsBE2vHlWpZBIRoTjpLITv3OcFB6H9OXIQRvVrIXYlSBNbrwPQDxVbohmUv7U0bHjIvX9MErwa2rga8fyPILdLqb04KnEJyL7Bhuc0yCeLdIfpYCWV8scVg4yW872PGtRDFge663oiHiFL122pRavVp8RPiduRsDbDn6qjStGLbG2d9CxDpqO/dj7tMhwe0HoActhp/KjI1vSmcF1FGYYl+5LQoS+22bJjqq2d7M=; 25:2mqSU7nDeb7mX9Ozh/lKf+sC8DECrxAO+U/oLWA5rOlTk987B6jj8cdgux3ltOlNMc7/zq575O6JftwpzcPYwQ3SFXA/QTjSWgPyYg+u9E4lWn50OSt/vD+1+ivRg51vccPR9eS4YFJQWNN36Arl9LXPvqEduZgw3O5eq+A96cicWgIndrcKy+vwX2l6UJxt074Rf0ehgrGp77aHUrTBRmXkdF9jY5wD1RfXdd6Gky9ztK4WISm1S6aDEC9wfgPtKwy90IYujEqyWfy0ZPjyMdqwxYj8fAzPCLzYL2mjcBrDfUYTpB/ftwPW6DeIFFAweXsSLeILqM7ufefvCeFhWQ== X-MS-TrafficTypeDiagnostic: CO2PR03MB2357: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 31:5mIRRZzfkAEwLuIeODzSeaSLPkyYgZApgAA+qQ44PIRDhW0Jcm/Rfs56p3oQyh4b4e/dSwuTFxArj3M7m/ykOOufCTV1eLkItAK+yoEpSO72RgrfZCjZXAzpEu5vFl/WAjWY8WYl7Z7JcDj5ke3QTa27esJIBc9X1g6U6U4NfHYhSIBSgFPXJLUccSTm7DJ//jOfcx/UV+TgY7UylEQQ/OItYnWPnW3VlG59sThiu2A=; 4:cxMr2FAXYX2rGnyJw1dQ6pN02ePKFqDdRTL1v36/xx2VuqKPVzKvveUXWouzd6cvIVveoNxQ4WdLk12NNVbN2tKGf96VFT44Q7eSfdqd+eD3HRigcCgTUiInoCKuRQmiqe2aTJf7WC007ZpcYEjGHqgVtCOHuxKpOH2Eh+nuiHlf/SqiHhgNK4nztR4WmV+lHxTxJzC5deNouCEu2D2gMv58INOx/gDs9D3UwYfa1tQKRFEqIT9jRgNH6s5DpCFd9uEkzFX92pkh/M3/76LAve3ot62Fk6X3EZb1GqMd1yI= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 04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bJ2+fagQ5EJQSYhqxY41jdxysMzobl+waINACAc1H+t+lX7bXIYK6bgHLgoQ==; 24:x7feYALZUO3oZpgkYBcB3uvFhp+pLDE2kt0kZYSllbu3+hYNywYF9A0YMHgYu/Yvt8vu25vI3SpvQqAivMSzh4J9tnMPGRyhZ580cmFmhuE=; 7:wEI6rL9BB1m6WwabO/AKESm0cdpKZAwPKpDZ7PJBo3p2kbGNBTYYdjTTe/b5+jo2H1Iqlf+IDj4EPqcIFFZoa74/MydvrDIqqe3Egay621HWkcGtoK+0KWpjqdqyLHlJZzL3+UTbZsroYcHtYlj1+K0uzZnV0cHS/U7SMYdoX6vcVflHoy4DlcApPJHXbYQ062dVQp104k5gBXLNlYZgrvjrlrirFDNOiUNmhAgXNyE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 09:44:37.7127 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2357 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170919_024500_713371_7714AF9D X-CRM114-Status: GOOD ( 12.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hou Zhiqiang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + drivers/pci/dwc/pci-layerscape.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt index c0484da0f20d..66df1e81e0b8 100644 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt @@ -18,6 +18,7 @@ Required properties: "fsl,ls2088a-pcie" "fsl,ls1088a-pcie" "fsl,ls1046a-pcie" + "fsl,ls1012a-pcie" - reg: base addresses and lengths of the PCIe controller register blocks. - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property. diff --git a/drivers/pci/dwc/pci-layerscape.c b/drivers/pci/dwc/pci-layerscape.c index 87fa486bee2c..3b01e309a55e 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -253,6 +253,7 @@ static struct ls_pcie_drvdata ls2088_drvdata = { }; static const struct of_device_id ls_pcie_of_match[] = { + { .compatible = "fsl,ls1012a-pcie", .data = &ls1046_drvdata }, { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, { .compatible = "fsl,ls1046a-pcie", .data = &ls1046_drvdata },