From patchwork Thu Jun 25 06:24:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Wang X-Patchwork-Id: 6672211 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 B61B49F1C1 for ; Thu, 25 Jun 2015 06:32:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C09BB2071A for ; Thu, 25 Jun 2015 06:32:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C8E7C206FC for ; Thu, 25 Jun 2015 06:32:06 +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 1Z80fZ-0002RH-MY; Thu, 25 Jun 2015 06:29:53 +0000 Received: from mail-bl2on0126.outbound.protection.outlook.com ([65.55.169.126] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z80fV-0002OU-OV for linux-arm-kernel@lists.infradead.org; Thu, 25 Jun 2015 06:29:50 +0000 Received: from CH1PR03CA003.namprd03.prod.outlook.com (10.255.156.148) by CY1PR0301MB0874.namprd03.prod.outlook.com (10.160.164.17) with Microsoft SMTP Server (TLS) id 15.1.195.15; Thu, 25 Jun 2015 06:29:27 +0000 Received: from BL2FFO11FD056.protection.gbl (10.255.156.132) by CH1PR03CA003.outlook.office365.com (10.255.156.148) with Microsoft SMTP Server (TLS) id 15.1.195.15 via Frontend Transport; Thu, 25 Jun 2015 06:29:26 +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 BL2FFO11FD056.mail.protection.outlook.com (10.173.161.184) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Thu, 25 Jun 2015 06:29:26 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t5P6TLgo025378; Wed, 24 Jun 2015 23:29:22 -0700 From: Alison Wang To: , , , Subject: [PATCH] dts: ls1021a: Add dts nodes for eTSEC0, eTSEC1 and eTSEC2 Date: Thu, 25 Jun 2015 14:24:58 +0800 Message-ID: <1435213498-21025-1-git-send-email-b18965@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD056; 1:CgksDQUiE7mcMVPTXnv2kgU19cH3o65oGzwNcq7myUYFWWzQcpEvja2P88gVUsvHbZwA5uMRwWzoN3RysaJGREBBs8om4zVoKAqvChcEN12YJ0QtsyXp+aoo7hnLzV1JrtMwyAKo07+nDS3Pupaab+LmO0JYCxcoq6bG1NCgV/SoKKGVWw4gzP67QqhtDWAr4+BYuyXvMjvhjr3Ahpdq+TB2XEhMLzC0nS3krTZvREjnpGpGsQCbdxKBGzB7vZBZmIBXo3w9KBhaDddiQB5Qg1mzZuybp4QghD2A6vnQOQF0OVTFVun3b0JlvbbHKWthnQO6MZWiozlL5t04uA0pzw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(92566002)(5001920100001)(36756003)(5001960100002)(107886002)(189998001)(5001770100001)(85426001)(104016003)(105606002)(77096005)(19580405001)(19580395003)(50466002)(6806004)(50986999)(229853001)(106466001)(33646002)(46102003)(87936001)(47776003)(62966003)(50226001)(48376002)(77156002)(42262002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0874; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0874; 2:0XirTTk4Y9W9Zb1WJ4PNfEf3AeVM0G/oDIbb+fz+RzoTf2giJzOVL+jCdhRfrtGd; 3:orbu8SPPYMBtMaXM2Gehq9HBVsb29kq+FqyMvARR1dnxkzsvkj212aYHysY/pRkt6V/rDE/7MCzE0bF85ex4wIIyZ21zPb4T644VhI98Yze6smm37uylI5ldn+tLLKXhmtx/KufHiQrRoj7SO3v9P0NMxYPQGYlmDYo+pIgE9KWvOfD/be1UT3Jg9A2dg37g4qGq1Vab2rakxdCPv9KqDhOnAtpbRyMTyw8M1I/OhDw=; 20:ZpULu4I4nqtAHskzSWTn5MMr0f3jibAmJ8IMY8K2jbJspU73SCklZEv61wLTEoiGD/itcqsdyHmAPebKg0RhEov64FUPB2WexdRMwF+LvhyU1hsQvHLV1IH2Tye+teEQ79iUI98GFMUQe8qvJT/LTvxEpB+7ECDcqPkL0ZsjKycsL8pcL2HfjxhN4P+PaAM9PGqbcU9VLsmwXF72NEij9YuyDfbyjvlgBDRuockNrsmi3DvjSltNNp8go7/3syt+/HvaLEfWKAwbqO36UZ1wsTHxGr53X31dVh2rrocwz1t0lPasngBRNhbgo2jKJhURKKgKU0N5VVX6Zy1qtqpW9UoS7EBCDBlSloxlnF6ObMs= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0874; 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:CY1PR0301MB0874; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0874; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0874; 4:eD1lMzakoDWdYZBcUAYQJG+w6MyEgeg/vGE+oLnEqi5asRlXaafaBCT2ekFoxqS4utd4IWA3JNT4Zrn/9IQqm6UhgBDbgiiChs8CRGK8FJg37WP7UfLuQLaUq1ja2heojsXY4ocCV9Edj0e/11Va6scWX4dTGnZzer1vvYRC3UhvK97xWaOMjx/O1A2s/igOArwoSEz8PT2DO7vnGfM8B+WxtV1uhmCzmlgH54eY0tepY6jolX5z4FQ+75kg33NgIogEFUxhxN1zC1u89eVxefE/h+QGV/fij3eQMWCLdCs= X-Forefront-PRVS: 0618E4E7E1 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0874; 23:sVUyjdLpXjfCojviUdetQ7DYl76ptQQiD5xfNMOM/PHEsE3P+9SYZSNtyP+k7IMk/KrYKqsEY14dKy+ArZUF8Xfpv2/erZ6+qRhjWNsbO8TtP/T9IiW7RiSq3LRdhQ00chSQ4mTVG9yOGyegx8JjQQkLsB09zGI/v0gd6aeYc/PfDCK0PCZtVBa9HQiCjErE41lm9B207saUWZfvt0envuNlDFCgKhUaTp9icz60USU4mn9kD0hgjkaUioT3o8w+w4P0FKkUUVCtJ2CARbpYUDf6c6/EEJX6q6Qx1EtKMIcEhU4YNotdpiurZaMqENjIYYUq0oJj4AUJk88TmN8/2ty8H7IhqCrXhYZSta/9JpLRCgbyy/4uhOQsJOZzHRTOGUimhWRraPnGY3pBCrsQMMCO71fq8Ynm44XFJ72XY9LbGrfb6ndmz/3FCum1y2L3FUmOGYkMtqIe9W+F1EGNLT38ygWIdmclnDSJ8XdunDeUPuva+zusxo/TyWUFCQfSudXRRJcI/jS3CaL646rTNoSrfNCnNXN9vlqfW0qjMRhV+rXoTP2lFfw/gDrxHvfaoIhOcfncJlv9I8IwumX6mzLPxx8mxZtHEQYGVkSWcrEgHvD5fGvTBV4vZ1M33Llc2vTq+Xz3GNGEnHMGSHRh1+hkMnH0Vmo/yJjilSj0vbJNPFXFwVzGYaaPGnJc7sZZBFIdbGv1UGVUrH2UQmVbdt2NYiS7L4a5Yac3eFhHLWECuxxjNpKES6WpOUNETHEzlWSDFlihB1K141mjNS4nBDtLW8Lg9qzY9hqT6RYBFCPKnsd7KavDRlfIrxBqRplJ8Tc19oT2mu/KBZd+ItnBmgIBMc99mkifBxr9CCTmHJ7TNPgvYtmyvBEaSrdsn6/+6bIeEwl9+qDHu4ivJqiZsA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0874; 5:yUSROgah37qGgJAQoMMvAhox2fb0/s5q0sgxF+2fxIW84TqikD196ehukrDBRdEBblsrnWBKFIAN2opjPOmqmchgxBWnYDsRKEbL/BpzcDoFaENTEZqSoe3gZ/GI7PqFqzJrNr8PxiUrfqFogzjQbw==; 24:6tilpCwiKHgzyMS2CJyCrb8bBRzrQEOs7oAi7LACDA8VVze+z57xS7DIXYf1W3jxCm+0IDcRwQ3XRaRW9PQXnylDGU1XOdi5MPK/MLYbv/U=; 20:RT1z2rVBVWDIulfeJOmq0yqhutRuykHWfPKdUfI1PbfYXx6BhcMa4S0iOr6MIZqPYrb3OfJD6F/9lAtnIC5lfw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2015 06:29:26.3873 (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: CY1PR0301MB0874 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150624_232950_120267_0EAD0674 X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -1.9 (-) Cc: Claudiu Manoil , Alison Wang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=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 This patch adds generic dts nodes for eTSEC0, eTSEC1 and eTSEC2. Signed-off-by: Claudiu Manoil Signed-off-by: Alison Wang --- arch/arm/boot/dts/ls1021a-qds.dts | 20 ++++++++++ arch/arm/boot/dts/ls1021a-twr.dts | 20 ++++++++++ arch/arm/boot/dts/ls1021a.dtsi | 82 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-qds.dts b/arch/arm/boot/dts/ls1021a-qds.dts index 9c5e16b..f16a061 100644 --- a/arch/arm/boot/dts/ls1021a-qds.dts +++ b/arch/arm/boot/dts/ls1021a-qds.dts @@ -75,6 +75,26 @@ }; }; +&enet0 { + tbi-handle = <&tbi0>; + phy-handle = <&sgmii_phy1c>; + phy-connection-type = "sgmii"; + status = "okay"; +}; + +&enet1 { + tbi-handle = <&tbi0>; + phy-handle = <&sgmii_phy1d>; + phy-connection-type = "sgmii"; + status = "okay"; +}; + +&enet2 { + phy-handle = <&rgmii_phy3>; + phy-connection-type = "rgmii-id"; + status = "okay"; +}; + &i2c0 { status = "okay"; diff --git a/arch/arm/boot/dts/ls1021a-twr.dts b/arch/arm/boot/dts/ls1021a-twr.dts index a2c591e..4b61766 100644 --- a/arch/arm/boot/dts/ls1021a-twr.dts +++ b/arch/arm/boot/dts/ls1021a-twr.dts @@ -73,6 +73,26 @@ }; }; +&enet0 { + tbi-handle = <&tbi1>; + phy-handle = <&sgmii_phy2>; + phy-connection-type = "sgmii"; + status = "okay"; +}; + +&enet1 { + tbi-handle = <&tbi1>; + phy-handle = <&sgmii_phy0>; + phy-connection-type = "sgmii"; + status = "okay"; +}; + +&enet2 { + phy-handle = <&rgmii_phy1>; + phy-connection-type = "rgmii-id"; + status = "okay"; +}; + &i2c0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index c70bb27..6c41b10 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -59,6 +59,9 @@ serial3 = &lpuart3; serial4 = &lpuart4; serial5 = &lpuart5; + ethernet0 = &enet0; + ethernet1 = &enet1; + ethernet2 = &enet2; sysclk = &sysclk; }; @@ -391,6 +394,85 @@ reg = <0x0 0x2d24000 0x0 0x4000>; }; + enet0: ethernet@2d10000 { + compatible = "fsl,etsec2"; + device_type = "network"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + model = "eTSEC"; + fsl,dma-endian-le; + fsl,magic-packet; + fsl,wake-on-filer; + fsl,num_rx_queues = <0x1>; + fsl,num_tx_queues = <0x1>; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x2d10000 0x0 0x8000>; + fsl,rx-bit-map = <0xff>; + fsl,tx-bit-map = <0xff>; + interrupts = , + , + ; + }; + + }; + + enet1: ethernet@2d50000 { + compatible = "fsl,etsec2"; + device_type = "network"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + model = "eTSEC"; + fsl,dma-endian-le; + fsl,num_rx_queues = <0x1>; + fsl,num_tx_queues = <0x1>; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x2d50000 0x0 0x8000>; + fsl,rx-bit-map = <0xff>; + fsl,tx-bit-map = <0xff>; + interrupts = , + , + ; + }; + + }; + + enet2: ethernet@2d90000 { + compatible = "fsl,etsec2"; + device_type = "network"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + model = "eTSEC"; + fsl,dma-endian-le; + fsl,num_rx_queues = <0x1>; + fsl,num_tx_queues = <0x1>; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x2d90000 0x0 0x8000>; + fsl,rx-bit-map = <0xff>; + fsl,tx-bit-map = <0xff>; + interrupts = , + , + ; + }; + }; + usb@8600000 { compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr"; reg = <0x0 0x8600000 0x0 0x1000>;