From patchwork Wed May 20 12:29:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madalin Bucur X-Patchwork-Id: 474402 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3676514027F for ; Wed, 20 May 2015 22:32:07 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 1DA881A0B01 for ; Wed, 20 May 2015 22:32:07 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0129.outbound.protection.outlook.com [65.55.169.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id ABEAE1A060E for ; Wed, 20 May 2015 22:30:59 +1000 (AEST) Received: from BN3PR0301MB1268.namprd03.prod.outlook.com (10.161.209.148) by BN3PR0301MB1300.namprd03.prod.outlook.com (10.161.210.155) with Microsoft SMTP Server (TLS) id 15.1.154.19; Wed, 20 May 2015 12:30:53 +0000 Received: from BLUPR0301CA0001.namprd03.prod.outlook.com (10.162.113.139) by BN3PR0301MB1268.namprd03.prod.outlook.com (10.161.209.148) with Microsoft SMTP Server (TLS) id 15.1.166.22; Wed, 20 May 2015 12:30:51 +0000 Received: from BN1BFFO11FD046.protection.gbl (2a01:111:f400:7c10::1:178) by BLUPR0301CA0001.outlook.office365.com (2a01:111:e400:5259::11) with Microsoft SMTP Server (TLS) id 15.1.166.22 via Frontend Transport; Wed, 20 May 2015 12:30:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD046.mail.protection.outlook.com (10.58.145.1) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Wed, 20 May 2015 12:30:44 +0000 Received: from localhost.localdomain (fsr-fed1764-003.ea.freescale.net [10.171.73.45]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t4KCUgP4022283; Wed, 20 May 2015 05:30:42 -0700 From: Madalin Bucur To: , Subject: [PATCH, v2] powerpc/mpc85xx: Add DPAA Ethernet QMan support to the device tree(s) Date: Wed, 20 May 2015 15:29:35 +0300 Message-ID: <1432124975-6096-1-git-send-email-madalin.bucur@freescale.com> X-Mailer: git-send-email 1.5.6.5 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD046; 1:xfpVAhM+Ze1zMazlqU8ma3xhvceeoy+t3cFZ16sVmUalhdkK0dX95SmfuSnrul/YEbkaVhQvqdrHiT76gNC865HNjJGruupaSkDG4YF13gVsPmFo2T7J5DhyNxy4JCrgfssZd8lnxA6kWUzfpqdAPB2b/mgxxpCCRGnYiPSVunAH7npbhwSbfctErpAkJZ4EnZPJgwCyrjL/3hq7jRe4srE0JyebpCmmDK3M39fyUzOlQDgDzzGnqpdcLzdgRZW6sH/fW8TsVDlRZrCCbC0AXmzZeeU7dl2G8uOF//GB4+7U9i0G/xr4LqnBHxYSOXdySWp53Nu6z8U3lMjmG4ct2g== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(87936001)(49486002)(47776003)(106466001)(104016003)(33646002)(50226001)(81156007)(46102003)(4001540100001)(97736004)(64706001)(62966003)(48376002)(77156002)(50466002)(86362001)(77096005)(6806004)(68736005)(50986999)(43066003)(229853001)(105606002)(5001960100002)(53806999)(85426001)(189998001)(5001860100001)(5001830100001)(19580395003)(36756003)(19580405001)(69596002)(107886002)(450100001)(5001770100001)(2004002)(4001430100001)(4001450100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1268; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1268; 2:bHPDUF7FmybY4Kyl/gU30hG4/T0387mvmpnmPkb7z+dp8BRf1Ap6o6E44gNOOvE1; 2:Q2bZ2JZANJsBZIpueP//28htZHkVIP5W5wIFz7zfnxQmchO5YgXws0dIZU02a+PpgwOyRDVp1tt0J/kwhWP5FZjyXWVUGZg2V3u0DWZhPFv1Nys5f26orGU43kC+lFfHK3bU+YrsOIydbJGGc5qU3DwN72xxML3C/MeCSLawttqLVB1I9v9lmRofo9tEoy5klFUt7Qg1NbJs8V5QPZJh+JmpyioTcVjGbyGSNQNLGL0=; 6:46HZKBfysKAGviAmlKgwurA43RxU3Yuc24bbRViIFrpo4L0V8SJUBF1jPcjjY0hVbISBXGqkprlq1Pl2WCxaoKq66EzKPXCJTYVno3Oh2bnuO7UqdHstkx4qm2z/3ynFjedh9MWJjdc7+bBZui5Y3A3P45ReamKUD0CLEAOlvE9BcPWv2DoytUMpB8ia6rIxfGM5UB8isxtMFMzvTTirWxKpd/TB7OPaE9RUn2kQYACH6RSQha85c9J8n/8hq2kK8i/1/xumut9AkyXk5Wj4CPgA2emtac07i/FLmP8fEeR5RyJczXuOo/ZTClMZqvyPSXgFohJtdBNOLdKyk15qYg==; 3:JRtIwhwWPOLwdbPB17gKY1a9USYs7L5RIHwQZGuF+kQ6RBoCol785tHsikf6lCdAfqoNEfTBBku15Jyc/dT7xgS8M/Bd0GlLrT4INt8AUhiVmWUViF4DN/gAC1FwKrvAuxhcGCTXml5M+EZTn/p6ixgBNTnD6WxIV7Zg+EDRsLudf7RVz9yRwkME+VXNklx41iM+sznR0wWLMIi1qoAlEFqimiPxGTU9UPqONi+D8JugqZpHtPPIHbO+o809fpDrkqy4z15bBxPI7JpE84sdAiMBTWl9nsM3lIZzfIQCzog= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1268; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1300; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN3PR0301MB1268; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1268; X-Forefront-PRVS: 0582641F53 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1268; 9:bqj7Dj+2MciqmeyRWcrDoO1NIdjAfUsv/QRms27v?= =?us-ascii?Q?LnLDNEVVuLawxUh0RWTpWNj3Z940gwmQZR1cZyHcUUPlUFUO++8JHZdr4RtX?= =?us-ascii?Q?Monsf854CkoP+S+lqfvzpN2mdj7matsj8xeg78NQGb+9YBfg3GIGw72s0Bfz?= =?us-ascii?Q?0NzV9jsUEdWFR7v46RCfAU8sjLX7MJjVfhcrezxRIumH0em2bPSnyEDghkee?= =?us-ascii?Q?CM+1T8Js/mAqDdLPKz9HrBt6U8XCfalvITfu3FWcv8rDuhTbuc9GIowPj+9x?= =?us-ascii?Q?R0eT3OUzBY1QCbNT46+SEpoVT3NlZrNiUniAUP+EQ0YSs0Q6S525wCmMT7oO?= =?us-ascii?Q?/ua6b4g22d96JiWf5GbvzU7Af0KJLIIptlV0OVck9pU9OErYYOWyv5e6cGJY?= =?us-ascii?Q?emzZsuK+e6fA0VgFjlrwBX47Ttyc+hQ02/Z3uhW5utubX4UJ5HwZtWFtU7TS?= =?us-ascii?Q?jtArwCSQS57+7YPHsGT2Gq1h0CIn6/QOj0JHmG1gTGq6DthPZN59ofn1sr/A?= =?us-ascii?Q?a1DshiJFpqdBA3DA8FqObaiSWuoa8dryg3BKgOANQRucXQsdRI51CY04URg7?= =?us-ascii?Q?d0tWzwUziDeLtyuvHMekOxj/zEE3Xf1f0PheF/lmgCCRstz6YEsbjMbApLyK?= =?us-ascii?Q?+iCWDcGL2inw4gbtZrxE3/mywcm5+RIUW3ncWDDZrGYcilsQW1rSR2voKaBr?= =?us-ascii?Q?5FSekeJYC/C7hrd4RIy5ZyyGu+JWM3UUNaoPDIlhSB8lqkr1aL8Kz8wjP8Iw?= =?us-ascii?Q?ZrVV+6B4vRLGAL6fRVuw/gbLE6rOWymYBmT8CITReEdtxn1a3+ptT1vLMwi1?= =?us-ascii?Q?gqguGeoBLWKb7kyty1xjO+Dw6oplmfbi0frNGlKNMu+sKqwwlwKZh2LNkyxu?= =?us-ascii?Q?59x73Y28a9Iqqhv3D/vIzA/jLHf2EDqddaxJUgG713w12OwNwaVvCAEzce5z?= =?us-ascii?Q?Z2je7a4WJiz7PktOL/Dm7j/MPj8KVdELA18Pl7GW9Eue7K8tzin+R5Cfovbc?= =?us-ascii?Q?N4wgRdCX1dceCs2MfBQpoaT73FcRdz+JxXYdlsu2DtbfHPWmkiGCFmkyXfYh?= =?us-ascii?Q?XqsmviMlJugK6flo1R0RLIkBybCkddUWntXhY2ONaPaCp6DUmVOJcREXhVV6?= =?us-ascii?Q?iSsN7zUVbDmHuoC7EXiVI/LJF88TGZiKrTLTaj2WfC3wG+x8DU1HBwNKj3eR?= =?us-ascii?Q?od26mO6wNGW98PA=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1268; 3:TgNW3eBcSWvNHjvP5TqPdXQXAS+8RXXYPnvWfSUuxKm1DswcgdaHNwvHhCBKchIOgmQUowhjjT/LNEP3oixh/nH68xvI/mizVRGQaPiTOl8c36TDoNgX9mpz73rYelLsD+XD404mPWyAXWWM2sopLA==; 10:4LDH+xchE8tSlRuAsTDa+yqcqUlRo0V5ECH5djz4k2k7p6WKk7HuXRPPlm6SWLC3/MBjADdq5j58gA05bWQnNIf8tWLYcFcmbw8iVlG942k=; 6:on/1PyZvLI4gvOEZuxQyL+fYq5P0Fcq6GQBfxHB2NInBzD+y51sHd6La4B/zyIgP X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2015 12:30:44.3084 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1268 X-OriginatorOrg: freescale.com Cc: roy.pledge@freescale.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: madalin.bucur@freescale.com Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Emil Medve Signed-off-by: Emil Medve --- arch/powerpc/boot/dts/b4qds.dtsi | 1 + arch/powerpc/boot/dts/fsl/qoriq-dpaa-res1.dtsi | 77 ++++++++++++++++++++++++++ arch/powerpc/boot/dts/fsl/qoriq-dpaa-res2.dtsi | 56 +++++++++++++++++++ arch/powerpc/boot/dts/fsl/qoriq-dpaa-res3.dtsi | 77 ++++++++++++++++++++++++++ arch/powerpc/boot/dts/kmcoge4.dts | 1 + arch/powerpc/boot/dts/oca4080.dts | 1 + arch/powerpc/boot/dts/p1023rdb.dts | 1 + arch/powerpc/boot/dts/p2041rdb.dts | 1 + arch/powerpc/boot/dts/p3041ds.dts | 1 + arch/powerpc/boot/dts/p4080ds.dts | 1 + arch/powerpc/boot/dts/p5020ds.dts | 1 + arch/powerpc/boot/dts/p5040ds.dts | 1 + arch/powerpc/boot/dts/t104xqds.dtsi | 2 + arch/powerpc/boot/dts/t104xrdb.dtsi | 2 + arch/powerpc/boot/dts/t208xqds.dtsi | 2 + arch/powerpc/boot/dts/t208xrdb.dtsi | 2 + arch/powerpc/boot/dts/t4240qds.dts | 1 + arch/powerpc/boot/dts/t4240rdb.dts | 1 + 18 files changed, 229 insertions(+) create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-dpaa-res1.dtsi create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-dpaa-res2.dtsi create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-dpaa-res3.dtsi diff --git a/arch/powerpc/boot/dts/b4qds.dtsi b/arch/powerpc/boot/dts/b4qds.dtsi index 24ed80d..3cd23db 100644 --- a/arch/powerpc/boot/dts/b4qds.dtsi +++ b/arch/powerpc/boot/dts/b4qds.dtsi @@ -218,3 +218,4 @@ }; /include/ "fsl/b4si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res1.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res1.dtsi new file mode 100644 index 0000000..24d83e0 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res1.dtsi @@ -0,0 +1,77 @@ +/* + * QorIQ DPAA resources device tree stub [ FQIDs, BPIDs ] + * + * Copyright 2011-2012 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* These stubs are required to alloc qbman drivers to determine what ranges of + * resources are available for dynamic allocation, primarily because there are + * some legacy "a priori" assumptions in certain subsystems (eg. networking) + * that certain resources are reserved for their use. When those drivers (and in + * some cases, their corresponding device-tree nodes) are updated to dynamically + * allocate their resources, then *all* resources can be managed by the + * allocators and there may be no further need to define these stubs. + * + * A couple of qualifiers to the above statement though: + * + * - Some resource ranges are hardware-specific, rather than being defined by + * software memory allocation choices. Eg. the number of available BPIDs is + * baked into silicon and so will probably always need to be expressed in the + * device-tree, though in that case it will express all BPIDs, not just those + * available for dynamic allocation. + * + * - Even for memory-backed resources that are software determined (FQIDs), this + * information may only be configured and available on the control-plane + * partition that manages the device, so in AMP or hypervised scenarios there + * may still be need to a way to provide allocation ranges. Ie. for O/S + * instances that don't know how many resources are available to hardware, and + * possibly even for O/S instances that do know how many are available but + * that should not "own" all of them. + */ + +&qportals { + qman-fqids@0 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <256 256>; + }; + qman-fqids@1 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <32768 32768>; + }; + qman-pools@0 { + compatible = "fsl,pool-channel-range"; + fsl,pool-channel-range = <0x21 0xf>; + }; + qman-cgrids@0 { + compatible = "fsl,cgrid-range"; + fsl,cgrid-range = <0 256>; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res2.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res2.dtsi new file mode 100644 index 0000000..9280f60 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res2.dtsi @@ -0,0 +1,56 @@ +/* + * QorIQ DPAA resources device tree stub [ FQIDs, BPIDs ] + * + * Copyright 2011-2012 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* The comments in qoriq-dpaa-res1.dtsi apply here too so will not be repeated. + * This alternative file is to support p1023 which does not have the same + * resource ranges as other SoCs to date. */ + +&qportals { + qman-fqids@0 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <256 256>; + }; + qman-fqids@1 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <32768 32768>; + }; + qman-pools@0 { + compatible = "fsl,pool-channel-range"; + fsl,pool-channel-range = <0x21 0x3>; + }; + qman-cgrids@0 { + compatible = "fsl,cgrid-range"; + fsl,cgrid-range = <0 64>; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res3.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res3.dtsi new file mode 100644 index 0000000..e3bda8b --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/qoriq-dpaa-res3.dtsi @@ -0,0 +1,77 @@ +/* + * QorIQ DPAA resources device tree stub [ FQIDs, BPIDs ] + * + * Copyright 2011-2012 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* These stubs are required to alloc qbman drivers to determine what ranges of + * resources are available for dynamic allocation, primarily because there are + * some legacy "a priori" assumptions in certain subsystems (eg. networking) + * that certain resources are reserved for their use. When those drivers (and in + * some cases, their corresponding device-tree nodes) are updated to dynamically + * allocate their resources, then *all* resources can be managed by the + * allocators and there may be no further need to define these stubs. + * + * A couple of qualifiers to the above statement though: + * + * - Some resource ranges are hardware-specific, rather than being defined by + * software memory allocation choices. Eg. the number of available BPIDs is + * baked into silicon and so will probably always need to be expressed in the + * device-tree, though in that case it will express all BPIDs, not just those + * available for dynamic allocation. + * + * - Even for memory-backed resources that are software determined (FQIDs), this + * information may only be configured and available on the control-plane + * partition that manages the device, so in AMP or hypervised scenarios there + * may still be need to a way to provide allocation ranges. Ie. for O/S + * instances that don't know how many resources are available to hardware, and + * possibly even for O/S instances that do know how many are available but + * that should not "own" all of them. + */ + +&qportals { + qman-fqids@0 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <256 512>; + }; + qman-fqids@1 { + compatible = "fsl,fqid-range"; + fsl,fqid-range = <32768 32768>; + }; + qman-pools@0 { + compatible = "fsl,pool-channel-range"; + fsl,pool-channel-range = <0x401 0xf>; + }; + qman-cgrids@0 { + compatible = "fsl,cgrid-range"; + fsl,cgrid-range = <0 256>; + }; +}; diff --git a/arch/powerpc/boot/dts/kmcoge4.dts b/arch/powerpc/boot/dts/kmcoge4.dts index 97e6d11..3c00b94 100644 --- a/arch/powerpc/boot/dts/kmcoge4.dts +++ b/arch/powerpc/boot/dts/kmcoge4.dts @@ -165,3 +165,4 @@ }; /include/ "fsl/p2041si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/oca4080.dts b/arch/powerpc/boot/dts/oca4080.dts index eb76caa..2c28aa1 100644 --- a/arch/powerpc/boot/dts/oca4080.dts +++ b/arch/powerpc/boot/dts/oca4080.dts @@ -131,3 +131,4 @@ }; /include/ "fsl/p4080si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/p1023rdb.dts b/arch/powerpc/boot/dts/p1023rdb.dts index 9236e37..0d97986 100644 --- a/arch/powerpc/boot/dts/p1023rdb.dts +++ b/arch/powerpc/boot/dts/p1023rdb.dts @@ -246,3 +246,4 @@ }; /include/ "fsl/p1023si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res2.dtsi" diff --git a/arch/powerpc/boot/dts/p2041rdb.dts b/arch/powerpc/boot/dts/p2041rdb.dts index c1e69dc..1c2d22e 100644 --- a/arch/powerpc/boot/dts/p2041rdb.dts +++ b/arch/powerpc/boot/dts/p2041rdb.dts @@ -236,3 +236,4 @@ }; /include/ "fsl/p2041si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/p3041ds.dts b/arch/powerpc/boot/dts/p3041ds.dts index 2192fe9..c8b22a1 100644 --- a/arch/powerpc/boot/dts/p3041ds.dts +++ b/arch/powerpc/boot/dts/p3041ds.dts @@ -270,3 +270,4 @@ }; /include/ "fsl/p3041si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/p4080ds.dts b/arch/powerpc/boot/dts/p4080ds.dts index fad4416..9bf6d58 100644 --- a/arch/powerpc/boot/dts/p4080ds.dts +++ b/arch/powerpc/boot/dts/p4080ds.dts @@ -204,3 +204,4 @@ }; /include/ "fsl/p4080si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/p5020ds.dts b/arch/powerpc/boot/dts/p5020ds.dts index 7382636..aa19e4e 100644 --- a/arch/powerpc/boot/dts/p5020ds.dts +++ b/arch/powerpc/boot/dts/p5020ds.dts @@ -270,3 +270,4 @@ }; /include/ "fsl/p5020si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/p5040ds.dts b/arch/powerpc/boot/dts/p5040ds.dts index 35dabf5..4933389 100644 --- a/arch/powerpc/boot/dts/p5040ds.dts +++ b/arch/powerpc/boot/dts/p5040ds.dts @@ -240,3 +240,4 @@ }; /include/ "fsl/p5040si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res1.dtsi" diff --git a/arch/powerpc/boot/dts/t104xqds.dtsi b/arch/powerpc/boot/dts/t104xqds.dtsi index f7e9bfb..4b2288e 100644 --- a/arch/powerpc/boot/dts/t104xqds.dtsi +++ b/arch/powerpc/boot/dts/t104xqds.dtsi @@ -179,3 +179,5 @@ }; }; }; + +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/t104xrdb.dtsi b/arch/powerpc/boot/dts/t104xrdb.dtsi index 76e07a3..edf6bae 100644 --- a/arch/powerpc/boot/dts/t104xrdb.dtsi +++ b/arch/powerpc/boot/dts/t104xrdb.dtsi @@ -175,3 +175,5 @@ }; }; }; + +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/t208xqds.dtsi b/arch/powerpc/boot/dts/t208xqds.dtsi index c42e07f4..ef6fda0 100644 --- a/arch/powerpc/boot/dts/t208xqds.dtsi +++ b/arch/powerpc/boot/dts/t208xqds.dtsi @@ -263,3 +263,5 @@ }; }; }; + +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/t208xrdb.dtsi b/arch/powerpc/boot/dts/t208xrdb.dtsi index e1463b1..1505f07 100644 --- a/arch/powerpc/boot/dts/t208xrdb.dtsi +++ b/arch/powerpc/boot/dts/t208xrdb.dtsi @@ -197,3 +197,5 @@ }; }; }; + +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/t4240qds.dts b/arch/powerpc/boot/dts/t4240qds.dts index 6df7776..789f97b 100644 --- a/arch/powerpc/boot/dts/t4240qds.dts +++ b/arch/powerpc/boot/dts/t4240qds.dts @@ -296,3 +296,4 @@ }; /include/ "fsl/t4240si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res3.dtsi" diff --git a/arch/powerpc/boot/dts/t4240rdb.dts b/arch/powerpc/boot/dts/t4240rdb.dts index 46049cf..d2c3723 100644 --- a/arch/powerpc/boot/dts/t4240rdb.dts +++ b/arch/powerpc/boot/dts/t4240rdb.dts @@ -199,3 +199,4 @@ }; /include/ "fsl/t4240si-post.dtsi" +/include/ "fsl/qoriq-dpaa-res3.dtsi"