From patchwork Wed May 20 12:41:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madalin Bucur X-Patchwork-Id: 474467 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 [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 645CF140293 for ; Wed, 20 May 2015 22:46:01 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4A8631A17C3 for ; Wed, 20 May 2015 22:46:01 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0134.outbound.protection.outlook.com [157.56.110.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id CFF4B1A0635 for ; Wed, 20 May 2015 22:43:00 +1000 (AEST) Received: from DM2PR03CA0038.namprd03.prod.outlook.com (10.141.96.37) by DM2PR03MB560.namprd03.prod.outlook.com (10.141.83.19) with Microsoft SMTP Server (TLS) id 15.1.160.19; Wed, 20 May 2015 12:42:54 +0000 Received: from BL2FFO11OLC009.protection.gbl (2a01:111:f400:7c09::148) by DM2PR03CA0038.outlook.office365.com (2a01:111:e400:2428::37) with Microsoft SMTP Server (TLS) id 15.1.166.22 via Frontend Transport; Wed, 20 May 2015 12:42:53 +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 BL2FFO11OLC009.mail.protection.outlook.com (10.173.160.145) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Wed, 20 May 2015 12:42:53 +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 t4KCglhu024787; Wed, 20 May 2015 05:42:51 -0700 From: Madalin Bucur To: , Subject: [PATCH 2/4] powerpc/fsl-booke: Add T1023RDB FMan device tree Date: Wed, 20 May 2015 15:41:38 +0300 Message-ID: <1432125700-7024-3-git-send-email-madalin.bucur@freescale.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1432125700-7024-2-git-send-email-madalin.bucur@freescale.com> References: <1432125700-7024-1-git-send-email-madalin.bucur@freescale.com> <1432125700-7024-2-git-send-email-madalin.bucur@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC009; 1:GOuUzV8euxue84N9PHSHrtASKOLZRY3nAduVLFbr1uxM9z/eVT70qoVl3kZvqh39zxbihL5zwsxWDAF+B5SN+eN3FPaSAf8mJiWq4Pi34mdqMupXTMVZKuMt0TLi9C6WwrUAMm7GrnAd6H/UL/bXMYqh7si46hMXtQTZbMJKMpyvMhI5ptX8BcA+TcMgx4iJmNEHrRSKvixBtAcQhw0d+JatGO201zVVDzAnBXlbeaAPvZGDnBLReo6ryb0lfBHYl1DQFU559XHhI/ghr4pKjpH8fwAYGtYcBEq4HZes3bG2OqMdU9fEnZu0Nfn9cEcD5rjWOk+koHt3e3RVF5RMbA== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(85426001)(53806999)(104016003)(77156002)(68736005)(450100001)(105606002)(77096005)(2950100001)(33646002)(48376002)(46102003)(64706001)(69596002)(97736004)(81156007)(6806004)(62966003)(50466002)(4001540100001)(47776003)(50226001)(76176999)(106466001)(229853001)(19580395003)(50986999)(87936001)(49486002)(5001830100001)(5001860100001)(5001920100001)(86362001)(575784001)(5001960100002)(107886002)(43066003)(19580405001)(36756003)(189998001)(5001770100001)(2004002)(4001450100001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB560; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB560; 2:FYfJ+LGB6Ycg7yZXrFbikTKfxRpT95bv8ogdZNboWzZWYk0bkk45cRUB4Jq3Yuzd; 2:Ldz4lA+5glcVdGeqqdt5gVUGQIrk7mUV9HrZg62+Uj8YkLaIqF5DhQm9+kiNK15z/6202FbqJ0NsDLGRk5c6+Ilw4rW9BARHb2ZjIDUpZI1Dw23AQzh8XPqpSPT3Rk2qKwQOjLnrlNwE0n/aGvdPvrSEQqxtn3BBS+HYj30iC3i+B+aRUCeG2NqmA4W1SZQgRKm0fLX/IDDsmhTLNPjyxpy/7cUuWFm3XKqcFEP1X3M=; 6:wYDgMMvmzWutjT7GyXwG33tO/Hd6D4UbYoCCSHmReTncPq9s3yLacafGubvR1UWmSvtV4RHSQqqlkoFYAF9S55bGQYVmv3tP1gKPzUPXcTpUnCWQCqcRXlqM7f21Iypnd0WPg//0FvVhPAMr0W9jeWnUzNlPvaAIJgJPoAd0XUbKkhGmnBPx1yu5adao9PAZiNGT/X+6plJIRzIXHCscaSRPwgxg2U+7r4gfbraSxGZ7CaubQvMz01HxBgmt1GdVzIMBJ/vuJGZfB4GETGTWndg9FDimXPCgSLO8FXBpHSwjqtbjB6UGiRxhUofmQEYoWtVcjaRRDCeSWbM3NifMlQ==; 3:UJh0bjmbNWBCUOxnhAdU5b3iNmQPwYvpm+13VB9TmU/2IQAII6FK2tdZOs1Cbfmh6zEYS+ZhYyVZRnD86vJ19vn1TfX4zVwVWpFijogoOjV/FZ5V6Zz8V/KYCHfuooy1lwmt/hNDTsuuuMXKbC6HUvZvomf0QkAMHLxABc+txfzNFk2Fa9HCtOZ8Pgb1ZEPug2m+ihXFCTmb7TOaFNAoUpheFgf79FT+PPqmsTy+m6BfEjprqH4WspnSsSckr6OgrZUvmu7vbkdXwZiwBQ4pUPtc8mqgcJDwUyp063oA5b8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB560; 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:DM2PR03MB560; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB560; X-Forefront-PRVS: 0582641F53 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB560; 9:/1Vwbkqfe8aAFUbThMVhQXm2klrN96M0eenH12WQwpU?= =?us-ascii?Q?h2m6kEJ5DCCXYFGivHlkFd6gwc1uSmo4aQZ+LMG0+1d16GH0E8jAe9Cw3ovl?= =?us-ascii?Q?vhPviDrmjllB2CKwYQotM9UJM9eqEoAbeucYTSeZ3W2vCgzp2xil8Jy0yJK7?= =?us-ascii?Q?Xy/4fpu+GSJtx6I9rEeghwAWZbZABFcq/FH/hf3Mo7zktRLebfD2IhtMgH4p?= =?us-ascii?Q?7PE/msNll31u1RI7GI6ypUItTuwRuAqCREq5vJA7Azv5ZlJnXrZmycJTscZ/?= =?us-ascii?Q?YPBtcSUolbw9MngwME7IzUKyY69OpmU8CzSAFnxNU3CM664UtjGPJoakOtHj?= =?us-ascii?Q?9sij1NuAR+TkoaAVWx/R03Z2SECm40kGtolSB1OVi/RFUauDk1Mlea6wabl0?= =?us-ascii?Q?UBzWwtosuv+NwsSq9t/l1cHB7TByZiwvuJK/U+UXl7JgZpO1Koz0GVuauCHI?= =?us-ascii?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E7V3IwGWOfTXWnibjMhnOHMtw5dCkxiTHETwpTCFZQCXOua13djr1ufsKBJXfzZzvb4wA5K0+2G4sP5CbKhq5/hHLlUgPEZQ3e59ydx9Vqz7rfjmQ==; 10:KyAURv+S4e2zn6hbw47RQutcRYDkeUeBjxXFj71F4mJyky2b6usAhxabbyDnFzP3b/5SeLY56ifSN6fZiIK54UO0Rat7+ehKThoSUq8F/aA=; 6:KfBIjRjoNDP45++IUo48rsqe4+gYV5g38zOhZq/a3f9TVhf2Wyzfo39sUVmFAwHB X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2015 12:42:53.4928 (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: DM2PR03MB560 Cc: Igal.Liberman@freescale.com, roy.pledge@freescale.com, Madalin Bucur 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" Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi | 94 +++++++++++++++++++++++++++ arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 27 ++++++++ arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi | 6 ++ arch/powerpc/boot/dts/t1023rdb.dts | 40 ++++++++++++ 4 files changed, 167 insertions(+) create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi diff --git a/arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi new file mode 100644 index 0000000..8e9e272 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi @@ -0,0 +1,94 @@ +/* + * QorIQ FMan v3 device tree stub [ controller @ offset 0x400000 ] + * + * Copyright 2012 - 2015 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. + */ + +fman0: fman@400000 { + #address-cells = <1>; + #size-cells = <1>; + cell-index = <0>; + compatible = "fsl,fman"; + ranges = <0 0x400000 0x100000>; + reg = <0x400000 0x100000>; + interrupts = <96 2 0 0>, <16 2 1 1>; + clocks = <&fm0clk>; + clock-names = "fm0clk"; + fsl,qman-channel-range = <0x800 0x10>; + + muram@0 { + compatible = "fsl,fman-muram"; + reg = <0x0 0x30000>; + }; + + fman0_oh_0x2: port@82000 { + cell-index = <0x2>; + compatible = "fsl,fman-v3-port-oh"; + reg = <0x82000 0x1000>; + }; + + fman0_oh_0x3: port@83000 { + cell-index = <0x3>; + compatible = "fsl,fman-v3-port-oh"; + reg = <0x83000 0x1000>; + }; + + fman0_oh_0x4: port@84000 { + cell-index = <0x4>; + compatible = "fsl,fman-v3-port-oh"; + reg = <0x84000 0x1000>; + }; + + fman0_oh_0x5: port@85000 { + cell-index = <0x5>; + compatible = "fsl,fman-v3-port-oh"; + reg = <0x85000 0x1000>; + }; + + mdio0: mdio@fc000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio"; + reg = <0xfc000 0x1000>; + }; + + xmdio0: mdio@fd000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio"; + reg = <0xfd000 0x1000>; + }; + + ptp_timer0: ptp-timer@fe000 { + compatible = "fsl,fman-ptp-timer"; + reg = <0xfe000 0x1000>; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi index 48c1690..a6eb7ae 100644 --- a/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi @@ -344,6 +344,14 @@ reg = <0xe0000 0xe00>; fsl,has-rstcr; fsl,liodn-bits = <12>; + + fm0clk: fm0-clk-mux { + #clock-cells = <0>; + compatible = "fsl,fman-clk-mux"; + clocks = <&pll0 1>; + clock-names = "pll0-div2"; + clock-output-names = "fm0-clk"; + }; }; /include/ "qoriq-clockgen2.dtsi" @@ -436,4 +444,23 @@ sata@220000 { /include/ "qoriq-sec5.0-0.dtsi" /include/ "qoriq-qman3.dtsi" /include/ "qoriq-bman1.dtsi" + +/include/ "qoriq-fman3l-0.dtsi" +/include/ "qoriq-fman3-0-1g-0.dtsi" +/include/ "qoriq-fman3-0-1g-1.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" + fman@400000 { + enet0: ethernet@e0000 { + }; + + enet1: ethernet@e2000 { + }; + + enet2: ethernet@e4000 { + }; + + enet3: ethernet@e6000 { + }; + }; }; diff --git a/arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi b/arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi index 1f1a9f8..3e1528a 100644 --- a/arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi +++ b/arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi @@ -59,6 +59,12 @@ sdhc = &sdhc; crypto = &crypto; + + fman0 = &fman0; + ethernet0 = &enet0; + ethernet1 = &enet1; + ethernet2 = &enet2; + ethernet3 = &enet3; }; cpus { diff --git a/arch/powerpc/boot/dts/t1023rdb.dts b/arch/powerpc/boot/dts/t1023rdb.dts index 571e070..146d30d 100644 --- a/arch/powerpc/boot/dts/t1023rdb.dts +++ b/arch/powerpc/boot/dts/t1023rdb.dts @@ -128,6 +128,46 @@ i2c@118100 { }; + fman@400000 { + fm1mac1: ethernet@e0000 { + phy-handle = <&sgmii_rtk_phy2>; + phy-connection-type = "sgmii"; + sleep = <&rcpm 0x80000000>; + }; + + fm1mac2: ethernet@e2000 { + sleep = <&rcpm 0x40000000>; + }; + + fm1mac3: ethernet@e4000 { + phy-handle = <&sgmii_aqr_phy3>; + phy-connection-type = "sgmii-2500"; + sleep = <&rcpm 0x20000000>; + }; + + fm1mac4: ethernet@e6000 { + phy-handle = <&rgmii_rtk_phy1>; + phy-connection-type = "rgmii"; + sleep = <&rcpm 0x10000000>; + }; + + + mdio0: mdio@fc000 { + rgmii_rtk_phy1: ethernet-phy@1 { + reg = <0x1>; + }; + sgmii_rtk_phy2: ethernet-phy@3 { + reg = <0x3>; + }; + }; + + xmdio0: mdio@fd000 { + sgmii_aqr_phy3: ethernet-phy@2 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <0x2>; + }; + }; + }; }; pci0: pcie@ffe240000 {