From patchwork Mon Oct 26 07:31:21 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: 7485761 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 05CA69F36A for ; Mon, 26 Oct 2015 07:34:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10AB220656 for ; Mon, 26 Oct 2015 07:34:03 +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 0605120652 for ; Mon, 26 Oct 2015 07:34:02 +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 1ZqcGK-00033i-AO; Mon, 26 Oct 2015 07:32:12 +0000 Received: from mail-bl2on0103.outbound.protection.outlook.com ([65.55.169.103] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZqcGG-00031Q-0d for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2015 07:32:09 +0000 Received: from BN3PR0301CA0026.namprd03.prod.outlook.com (10.160.180.164) by DM2PR0301MB1309.namprd03.prod.outlook.com (10.160.222.154) with Microsoft SMTP Server (TLS) id 15.1.300.14; Mon, 26 Oct 2015 07:31:45 +0000 Received: from BL2FFO11FD016.protection.gbl (2a01:111:f400:7c09::171) by BN3PR0301CA0026.outlook.office365.com (2a01:111:e400:4000::36) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Mon, 26 Oct 2015 07:31:45 +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 BL2FFO11FD016.mail.protection.outlook.com (10.173.160.224) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Mon, 26 Oct 2015 07:31:44 +0000 Received: from b45370.ap.freescale.net ([10.232.40.248]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9Q7VRkB030313; Mon, 26 Oct 2015 00:31:41 -0700 From: Bhupesh Sharma To: , Subject: [PATCH 1/1] doc/bindings: Update Layerscape PCIe devicetree bindings for LS2080A Date: Mon, 26 Oct 2015 13:01:21 +0530 Message-ID: <1445844681-11488-1-git-send-email-bhupesh.sharma@freescale.com> X-Mailer: git-send-email 1.7.9.5 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD016; 1:3Qn5dR0PNpL77izdFDdRfItlnA0WiC7573HRYzPaG3l1MIkP57ez+qLxLavXfRye8FBCWE5pmn1Gtk1LM07tRrJ5/Z+LOy/nzSPQ/qk+MzU20edzdwmvII+llc4ujYhnkp9B0ouXpNbki5fuoha9Nb4S0ms0vV6L1fUWnfagpAh0omTi2GgO+aBc8iopNNP+iFCgsLw5tGuXjsV4PKKCKdSfvRCcZKEw5z0/8Y5uievdlhX0FRNK93ERNo9JxeFWsobMiet6Lgbgk40M8KFv4OS1Akuoq1EbE+oQiHiK9BzZyGHDGBhOrJKjl/Zm+S3dDGqj0duz+DenWXSzX9vDcrQvL/1i8i1AFUhZcv43T0qufOr0w88r0cGd6l9/Kdfvacry69ncFxWP7sWgZPKWDg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(189998001)(50986999)(19580405001)(77096005)(7110500001)(87936001)(92566002)(107886002)(19580395003)(15975445007)(85426001)(86362001)(36756003)(5003940100001)(5001960100002)(47776003)(50466002)(48376002)(105606002)(50226001)(104016004)(106466001)(2420400006)(5001920100001)(81156007)(97736004)(5001770100001)(229853001)(4001430100002)(10710500006)(6806005)(5008740100001)(5007970100001)(33646002)(11100500001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB1309; 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; DM2PR0301MB1309; 2:24Yr3L5l2N5oOm4oJ42vT+cl7OfmRfeh6iXi751bf4hsHRMM5517ReKefsrfQhBC9uDW7JJb7KWGsN6h3pl02tseklpaq/rbFFjchggHF5paQUP+B5oVXblN9+LrmLLp0c7GQjBoS/mW+FwRBq+LQUIibIY6K1hAMZ2EC6MyYf8=; 3:wQeHd/fEfYTnbt6X2UtBQXFcrjiNkMsAuN9bSYRrVISsA/cqKDr3HS5MgJLcGG+ldkY88ckzh3kWbLaRbRoXlYC5CCFXqh8jNIjjZYauZ70YBavw5kDG2mUB12qAQwyMBoxfuih29SDSdw+iImxX+I74aE0U4ArIgWN7zBpN2+s+OWnLnumNJHK133YAPAU7Mrh8ixY2s4VQoYkr0cD5AfWjn+CRkQ2cRXZytJtKiTk=; 25:EZdc2vbl2wWIPx+DmnXbOqY8RLznffzkrDruj32W9uw8Bl4HYYd8xmdxFeWQ+dm1+d3zwSytg9hhyhXTsKdQaNTB5Vt/iep96OZXAbXlhzxPGbRYmtUTQWuwkyhWI0EX6z/+f1NdbKefyJXhWhRciC+sut1u8tKDVVDF8AyyeV86wAJyZ/4Y3784+N9CEPWOgwlYBiysg51Pj52vYr/1/xZHaZInvXze38jWoaoCUY/v8FInMbj6Q3k1gyVO4XAeznR8wDQlLCPNb5hQZX5Xdg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1309; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1309; 20:yfJ8BtBngnJ1UNFimd6C8+87LfRUZWNS0zBIrBeTUvbzjBNpa3HkuqZKScd2s4I8dKKv3nI+GXsBDvvA8cZkdc7FJpY1RAWcUp1rLRAVFzUhn+9CD8dPXVlzMg3bNqeOpC26McAlVHr1Ce0F4nZy4lil9XpMc6Uc33jeFDLU9JtGi1r4TUgkR6lO3CPS3r60AaABJgEgKKK44Btr/+ay/IYTsrz4j9ONOuwGFwHV0NonqOGDinSxasIqnDxNaCaVBhd63XCZ52V1Eh9VBTw74GV6Irj+PNcacBsbk1JNe1eoVgyCS1VguIp7lijD6N/TG5NO2DtbNXn5gw6X+/lXMZw5UhQ0dDyyElqGhF4uwR8=; 4:RodX6gHtbNAGDpNl765cpcNmxlNsOexhEMNpmR/OIl2RrZuL6ukJtzq8PRnZAIPNM6XY2fL0sii3jJ+YPnxU0Gtr+5CGZ2jsFhXkUSmydvuUW/+Ne0jqmgoV6NJ+0Hf4QAirJRJGCH+PZlmvZQvPWnna258HpmESDWtNaAD7sbcWLzAkxarnVR0DCvpch8Hr/U89MJVTEc/98jE4jzAMYkgPZvXBAIG2giPAZpwTLIQb4xVjVxcTh+8vJhW2PqowcRzN8J6lLU43XMZf0guNTVT1Ds+i8roeiwlsnbBgmCQkNb374D+XDElwWRXXQIkSNpK5CRr90bMM77Em9JIgidxwNyek8fh7qEBMkKZEmZxfll1IXbI37+2CoENteC7T X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(102215026); SRVR:DM2PR0301MB1309; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1309; X-Forefront-PRVS: 0741C77572 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1309; 23:eZvUAAsxRN2aHmQP9o2Bqvq5yWiMBuOolw06WNE?= =?us-ascii?Q?c/hpGHrLHED8vl1qWpKnSWfJOrA+4d+3bgE5Z34JbLBuBRt4nMKSf+P7nRf2?= =?us-ascii?Q?08FMJXj9DQUXgC38PXIuuVV/AzEqUPiqcEc085g2DcL0x8iSEbrn67s+hFJT?= =?us-ascii?Q?wXm54LeXBqjZY+ytxUsgJAm+bSbcNHjt1Vwg1V/V9g/Qgo3c7OH9KDPKAOYQ?= =?us-ascii?Q?jzZRjPaTUegkiQAhV/zeQKVD/5+cnPGhbIpM6YAb9PQmrTJkz0MYGZuTNstp?= =?us-ascii?Q?Bi5MoxpYUq+K+j17j+g1beBv7Kff351ndEBX+Wyv9TVMT91vm+Vu6tIJsxGx?= =?us-ascii?Q?fcSP5sZSjhyuaH2sjrzcKrQJtEBvyAd5C1DecX540PmSQspj2jto58pE2sOi?= =?us-ascii?Q?yMWeOSiHemgs8+6X6/HX2bpoYFmm3R9aj0KExiChD9/zDPldaGCk6ISWGCUT?= =?us-ascii?Q?z+4Sokk21TxUc3pKulH+3VIfpUXj6hDZ19QyUXHidBPy+775p1szrAdaGYEU?= =?us-ascii?Q?8h6atbmfhEm7t+F6Be2P4eTX5Dyq1PU7qzRKP5WOzxtLVpbOUJKfBL7b77lD?= =?us-ascii?Q?qLIst2DkqfOu1mqCKSMyJ1allyroLQ3qEm2Yz/3rTdv3qNSg2OdbVXIJcN4F?= =?us-ascii?Q?NLLqLzasc0zEJH39Q5UPBC1z6adW0HphgE6dapzrrbs76c5nhWR9RinrS9tR?= =?us-ascii?Q?HFin/3Sjexy+kY+SRZ2B0yhP84b62tBJ79w3G2RPjNuo3o8gFZySLu+6COiS?= =?us-ascii?Q?xq9UAoohF0a4Ho6U0e3wgj2us5iAhtJz0M7NzjHEJPJhLt36mgCnjNqzXMxd?= =?us-ascii?Q?UZ0k1DATSjRFD1fZwI2/jTJC8CzIouMe/9fBp73bt5tt4YX3RgFiSTP1da7q?= =?us-ascii?Q?Z5Q5THbcSaIMJhdzEVzdFXlfjkkYCzNI734jnfEOgJlVGnDqEwxNqbQyTFlP?= =?us-ascii?Q?/K/jNoquFiYM9BCy5rlap9dZAYLlXrNC53YTC8tilao908YfWrqOKe0s4jFv?= =?us-ascii?Q?9olsaoiDXupm4ByRE1EbkFSFXtYVzqaoE70QIJTSa84I9ZZzKRmuzE/XUrTy?= =?us-ascii?Q?aw9JrMFZrHX+ZspAMctc+IC8ycz+qqKqkYn2gmvQ/pB9pn5/Y0WfEgercwQJ?= =?us-ascii?Q?8WJnDSNqoV0me4ktp4W5J8Neiy4f9Tpb+NUSbruE+8kSB1eKwB5uIbw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1309; 5:83enUc3bV86FmOVoHm08A6KQluygzX3+XlZT1q8jpmNxP65LuV5+d8jZYbH5eM3vVdNXMOqW6w5qjoFsfbwV9DE10Oa028aNUDE1ifHkrNG/R2cLvbzsKT2FyWrVcumBW7Ge4poXsMXD+XUpty7SAg==; 24:6D/H0i2+VbBCt2RXABCiYM8zplDmyiMyu4SsgMwtg1OeG/JImKlHD9/VaRX1vcJa5tDsjujMp4Joapur1dqQdIRstdZKNgpdEp6Q7AplzIc=; 20:HurPQelarf2JyAlJN4W7KE5YdajZ68S0si2KvVBCOzkml5JXVL4dP5ik9f+pqI2ovw44DRf51jGGIagpkoHh6A== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2015 07:31:44.8280 (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: DM2PR0301MB1309 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151026_003208_326963_8DEA34DE X-CRM114-Status: GOOD ( 22.19 ) 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: bhupesh.sharma@freescale.com, Minghuan Lian , bhupesh.linux@gmail.com, linux-arm-kernel@lists.infradead.org, arnd@arndb.de 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 Acked-by: Arnd Bergmann --- Hi Bjorn, As discussed with Arnd (http://www.spinics.net/lists/linux-clk/msg04092.html), this patch depends on a patch that is in your PCI tree but not yet in mainline. So, sending this to you, so that you can apply the patch on top of the other one. .../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.