From patchwork Fri Oct 23 19:31:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "bhupesh.sharma@freescale.com" X-Patchwork-Id: 7478211 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 551DC9F36A for ; Fri, 23 Oct 2015 19:58:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61E7E209E3 for ; Fri, 23 Oct 2015 19:58:22 +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 5D322209DE for ; Fri, 23 Oct 2015 19:58:21 +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 1ZpiSC-0000UM-Oe; Fri, 23 Oct 2015 19:56:44 +0000 Received: from mail-bn1on0132.outbound.protection.outlook.com ([157.56.110.132] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZpiPK-0005ie-JC for linux-arm-kernel@lists.infradead.org; Fri, 23 Oct 2015 19:53:49 +0000 Received: from DM2PR03CA0045.namprd03.prod.outlook.com (10.141.96.44) by DM2PR0301MB0736.namprd03.prod.outlook.com (10.160.97.144) with Microsoft SMTP Server (TLS) id 15.1.306.13; Fri, 23 Oct 2015 19:53:24 +0000 Received: from BN1BFFO11FD022.protection.gbl (2a01:111:f400:7c10::1:106) by DM2PR03CA0045.outlook.office365.com (2a01:111:e400:2428::44) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Fri, 23 Oct 2015 19:53:24 +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; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; 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 BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Fri, 23 Oct 2015 19:53:24 +0000 Received: from localhost.localdomain ([10.214.249.245]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9NJpab4005311; Fri, 23 Oct 2015 12:53:18 -0700 From: Bhupesh Sharma To: , , , , , Subject: [PATCH v4 05/12] doc/bindings: Update Layerscape PCIe devicetree bindings for LS2080A Date: Sat, 24 Oct 2015 01:01:54 +0530 Message-ID: <1445628721-10483-6-git-send-email-bhupesh.sharma@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1445628721-10483-1-git-send-email-bhupesh.sharma@freescale.com> References: <1445628721-10483-1-git-send-email-bhupesh.sharma@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:3JuB7m+eNB4XP7BmcDNbIUb0dHsgEHXD7XJBhpEG4W5D12TunuDyDN3QIfBOhBjNcilIVEWWGnXFwPZQbdai4K/lcaPn8qWQ6rL2uXzB6ONoQh6O7wwqjWm/OdvZlu+AILIOwTZOwLfx+1KcN5sm1ec8yHZkqrIBH/6HifyWLXr2FQf9g6QwYjn2eqqvpDQ7KD8IErw0jYIkkD7XNKYkhjHr/ZcnmARnpT/rPkDIQSO1OJ9OBV47voKqgTZuOe5sFWtSsE6O+pjQuMT4ngXAHPKFIOO6kKPBJj9GFGNZqlReU4vHdngzwsXLQKZTSCa5/Q83xR5bt1UcDvvxBPSaEDLnnchaVt4Bi2d/nmgMV48eJ0sFo7AGZHD20y+0GH92K7RtiPL6RAa5rkLD3vTcxA== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(106466001)(189998001)(87936001)(19580405001)(92566002)(85426001)(47776003)(50226001)(36756003)(49486002)(2201001)(107886002)(48376002)(5007970100001)(19580395003)(5001960100002)(229853001)(105606002)(86362001)(104016004)(5008740100001)(97736004)(11100500001)(33646002)(50466002)(5001770100001)(77096005)(76176999)(6806005)(2950100001)(50986999)(5003940100001)(81156007)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0736; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0736; 2:ZJ9r0Z2LGTXkuNYDIe5ZthNyFkLNqgu0e0Y8HNRr70Kc1z3ILzDYKbUNGbq3Qh2uTMJ3Qyg14ilYquN5zs+26mUjOMqlOip1RQc5ELJzggXTbaAlYMHgnf5HPUcD8pfkZkK/LdPtvKOur5z8Az3v9U9valrWETI3xa7E1ZFEbNI=; 3:LuvH8EpMASHuCBuvJjbG6ki652LIgaTzb76+PbkytIjA0XbaUGvkzIVXmQmDDDzHLyfm8VX9wSlwIUdFARLQDsaIBqz2yoZ5FHf6NL4IBEJzlY89/RAURdrivUwvKSao4jdCdz7UDkBYOPAk0wQZtszFsXJGum7EJ1oGgItksm4XON/JWCm48bLjFKnGmsKONp0L2ZM3FgDLBZXjv0+CdqHZEq2Q4vNcyFGzsSG2TCY=; 25:lMFRJaEC7NSI2CLzR2BdqRTbXnhH0l3brNMo7DqQgXWqn9d2aWENRnGnGR+H1/E/IyGjFiyPIDwHTyWEBqqGpWnkIg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Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(102215026); SRVR:DM2PR0301MB0736; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0736; X-Forefront-PRVS: 0738AF4208 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0736; 23:nqaHEFDaOSs5716Ytj2mH3AbrRdkys+VdQiEfy1?= =?us-ascii?Q?Q2lLC1NO86YIgui4Z0poS/9RJHeqySM/FDExAGVnXgv3uuUzvFG0gVuVymlE?= =?us-ascii?Q?YoSgkIizVDmmNtPJr1e7u8U+C6IIGf5XGbwe2uWrJPkdsBCBue66dGdP8QnL?= =?us-ascii?Q?YOLz12bPWcuq5br4f39L5nahmnXLVx2CjZLD93XdEbzOLLfoao5kdWd/lAMo?= =?us-ascii?Q?bj+Ue00/CFqKnPbV7dyxuBcVB+uYRTp50aVJbxNMWMdQJOEO2Iy6uG7y22HV?= =?us-ascii?Q?flB8ykrWmdCgy6CDPMg78CfoXwNd4e2q/8EWMKVlA8cMFqB263kGMHBn9yvB?= =?us-ascii?Q?dkZczN+y685OdoMiyB/pt0JuwV5pPa58zVgIX8WK/htLdbIXEkMKQ9J6KXsR?= =?us-ascii?Q?UN/UcOWzcfV2O0r8gWnDmZ14Nyv/nwbkdQq2e5A156eWoBeZZwLM9Sti6c9Y?= =?us-ascii?Q?PwbkKQv4iHvEl9sOGMJ8vERKg4oJE/IqMZUXUk+dLxzCvVUS4D/jARtK7uLp?= =?us-ascii?Q?7hA3p8ukhiP10RSR7D0lLat0bQbHjGzA4xmWuKsP/tmQflrNa1w3dhLHosqj?= =?us-ascii?Q?2I9WY+AkmmjGLCVf6eNLfF1I0Wp723umMYnw8p3UkY9Hs5skRNE3WpOw3MW7?= =?us-ascii?Q?dhPaXoA71SWh6sLavCbAfjGKAP+JJ0zaddv6vbaQBdOlXrid36utEuuNSjzC?= =?us-ascii?Q?CFzZ13k7uyZ7wLzR6Mm6zJczdQrXQjKeZZ0LEkwVeAT/aoP+vm2G6UqmVP0P?= =?us-ascii?Q?I1LRw70vTUyNEm4fjFCc36C7JCRiTQOtSE7P+9aOkndxw/5b/1aTI2NhpEip?= =?us-ascii?Q?JVR64csvnhcGztNHZ4PV4JXN40U+PRrz5c9n8pQbjOqYo3Y4Nc+QLJXfbiMK?= =?us-ascii?Q?ViDkn6lF5ywTNl0/gvQmT+Bo67sIyiY8K8dNuoL/EthhqMU+EevyBGj3l5+e?= =?us-ascii?Q?hPUtAKFaaHpwRadRsuvyPufliYXb6Xl5aNV6lAu/vPpKjcJonY459frpjRPQ?= =?us-ascii?Q?suKFmDTTCvnqWWRaUWvElvt2EPhQHSDwyUbSM6Py2f+CQ2Jt1+rEMl3DZgZZ?= =?us-ascii?Q?z0XVFBdLSuTqPjHOVLOYW7DEO5I+46BJaX4AHCDYuubRbpE8//HCgdSrG6+p?= =?us-ascii?Q?PRbhEogDeRjE=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0736; 5:3CvgVETBMI7qPe7VGVthQKWFLPP3U+5R6Z7JgiU+qo6pkxpRbDUcgx3mNLrbvhTf1Yv9ARgl0hHzDUDKI2zRV9eBnKWCOwJAkgT778kyRqygP7vB1RlJU1suzqLqJYu8Ir0CuLCCXKx2S+W3LK2FYg==; 24:wgvEHHCmEh+0/qXfv51cxzPTAQ5RARuXvl36kO19u1crgw+OECWwBmGSn3adABnDUaQa2VOW8TbEid9tnH+11L5b3VFxU8pAoR8ERvxRokM=; 20:vwJKUNtdn+g5FfsLLsm+WbPryu7k6s58h/YBvsgArofu+KXAXiz2WzbMqs3qGRPeWyeeQV1anukskFkQZ4hB7w== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2015 19:53:24.0711 (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: DM2PR0301MB0736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151023_125347_199302_86BBE2BF X-CRM114-Status: GOOD ( 18.36 ) 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: LeoLi@freescale.com, bhupesh.sharma@freescale.com, Catalin.Marinas@arm.com, will.deacon@arm.com, stuart.yoder@freescale.com, Minghuan Lian , scottwood@freescale.com, bhupesh.linux@gmail.com 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=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 Update the definition of the Layerscape PCI compatible string to add support for LS2080A, as the controller on LS2080A is different from LS1021A SoC. While at it, move the clock related properties in the Designware PCIe controller bindings to 'optional' set of properties. Signed-off-by: Minghuan Lian Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/pci/designware-pcie.txt | 10 +++++----- .../devicetree/bindings/pci/layerscape-pci.txt | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt index 0036ab3..576218a 100644 --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt @@ -14,11 +14,6 @@ Required properties: - interrupt-map-mask and interrupt-map: standard PCI properties to define the mapping of the PCIe interface to interrupt numbers. -- clocks: Must contain an entry for each entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names: Must include the following entries: - - "pcie" - - "pcie_bus" Optional properties: - num-lanes: number of lanes to use (this property should be specified unless @@ -27,3 +22,8 @@ Optional properties: - bus-range: PCI bus numbers covered (it is recommended for new devicetrees to specify this property, to keep backwards compatibility a range of 0x00-0xff is assumed if not present) +- clocks: Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - "pcie" + - "pcie_bus" diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt index 6286f04..ac7e07e 100644 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt @@ -1,10 +1,20 @@ Freescale Layerscape PCIe controller -This PCIe host controller is based on the Synopsis Designware PCIe IP +This PCIe host controller is based on the Synopsys Designware PCIe IP and thus inherits all the common properties defined in designware-pcie.txt. +This controller derives its clocks from the Reset Configuration Word (RCW) +which is used to describe the PLL settings at the time of chip-reset. + +Also as per the available Reference Manuals, there is no specific 'version' +register available in the Freescale PCIe controller register set, +which can allow determining the underlying Designware PCIe controller version +information. + Required properties: -- compatible: should contain the platform identifier such as "fsl,ls1021a-pcie" +- compatible: should contain the platform identifier such as: + "fsl,ls1021a-pcie", "snps,dw-pcie" + "fsl,ls2080a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property.