Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753175AbbGNPs3 (ORCPT ); Tue, 14 Jul 2015 11:48:29 -0400 Received: from mail-bn1on0111.outbound.protection.outlook.com ([157.56.110.111]:49315 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752247AbbGNPs0 (ORCPT ); Tue, 14 Jul 2015 11:48:26 -0400 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; From: Claudiu Manoil To: , , , CC: Alison Wang Subject: [PATCH v2] dts: ls1021a: Add dts nodes for eTSEC0, eTSEC1 and eTSEC2 Date: Tue, 14 Jul 2015 18:46:17 +0300 Message-ID: <1436888777-29742-1-git-send-email-claudiu.manoil@freescale.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <20150713133138.GO23464@tiger> References: <20150713133138.GO23464@tiger> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD030;1:1ORyv/2X5c/oAm3wvKE0ak+a6XzJqYF8v0Fj1Gb835ti2lch9a3LWecIn0SaxMKlBvTw/xl3bZvu13wf9JR4neVkVcunKPJtYEOgxPyvAiruk9yYusDEBukjEEqrbJvWzCNIQ77qtytwXRG5crI4EcCT4fKnBZ5qhVLBiR7cxXuBlZTFTDHnbNVXar6dJK1kXpX5qLsKOKG7LQZmmr76bnMoj6zpQ0lBj7Wb5qm1QNMqb0ZApO5l4ySCvtLFMYohT7FoCzjHXX/aH/xH5CzoeuaX9Ki+pZ5IlGDEaKXga/OYEpwUgpJ/HcReNWAfgNQ40z/29PqMiSewmJLitGRgjEjfUSer40aWaRZNQv+3nVoD9CcBITdtJCwIHlIyjtnCHVbDFkTmYb+zjcNq5AbmDHcq4pYbxo1NNiu5wLYQszsIquiVnNouKxfKEZGRNpWd X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(229853001)(33646002)(107886002)(5001960100002)(87936001)(77156002)(92566002)(62966003)(189998001)(104016003)(77096005)(36756003)(50466002)(76176999)(106466001)(2950100001)(48376002)(46102003)(50986999)(105606002)(5001770100001)(47776003)(85426001)(86362001)(6806004)(19580405001)(2201001)(5003940100001)(50226001)(19580395003)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0301MB0876;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0876;2:shOLurrJ6hYvG/kM0UE5OJmUpXrZMSp13AP4fD9rmv5J2NeTfVUrtnmWsqpsZMKY;3:8CjU4jucHeAmEcdHd+cZ2NmPml2H5z1bctaux6PckoaJLVdUHfn2gUe7RvsYQcwYwtbgI8yJ3XdggeAteKZcvSzxwIUv8BkJLhdSKvw1vjEzMg94VM6Jx2Hn9gi3XsViNdIkmf4r7GeyfGCzqTWtoA+64btJw2fVGnTQcBpIA6K36ACofU52N/ExhJcZd1u/I/DDwwBGIJwsdR3i5wbsIi4nxcZDRBafGCSCWO4pkM8=;25:RZMHqDbiJtJU+C33adQA6IAlgsFR42QEFDRedCq26zByrVS7VZ9EDIEEx6rVxlGQ+Mw5D2J+Csuv/xE5Y4vHCtGL8V4B+NCOT74qS77acvatMdk4/7gILThlOgyEF1fA+e1wzxjS1KPmymwKUKZdRI+PKxeHQB6/AYfCfTjoO3hxWex0cbx5gAmX2GcK2aD5srAg65Qbwkh6/mz+1sVpVfwY2y3qVT3xTDEtscPnZVQ=;20:49gH3S60RJQkpKq6mg7MJVHUFocU8HYv3vnyzewQw9fE1S3MdZHb6j86O8XJXYa5JpxuqkqP42+G5xvC5Xzh0LCxaCuqu/gSVcFAtx89EgSXZjTBKXdT5iIqmC7zkvkqeNGD2M4SMpCNiBur6nk5kcSGdmEi/QZylpC/7wcFrBw5xgFLaBcxlXoPcMZrB2ehaI0U1FLF1UDkv1KEx0RxNZ7HW0xLw4zP/zBc+dPEObnORrXAHgQ8lEVKwPx9wbDR1Fp/FYeqTUm8qlOCwddvfl9MDYMaVT+fAPp9NR0puLP3q7AxAXFn3ZsMiyob1FsfKixYBb17y69m/1Ia6uCyg4HesoO37ZmeEmwgZHmhuZA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0876; CY1PR0301MB0876: X-MS-Exchange-Organization-RulesExecuted 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:CY1PR0301MB0876;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0876; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0876;4:s/j+MWdMRawYZct1QBqToTrdmu2oQasXrbl/Hg6doYjO2f0n4/ieJREQbR5HIqcKUDK+wLWBsJ/gzQ6LErhvDRebmJjJpt5+akyWS1lRCta7QegJR1H4gDu2kc1DNsNq9OO6IjduFz6AxlkhJCowtAYR4I2ePvf1+H3zlPv5e4s0zunX6bp1i9Qr8dwRVadUwS1/MdcHqiyXcfDPE2MsnIN1zVh5aweEKZcrx2VZGokIsk9JiL3j2unUv5KoZn3oVLbFkV/x/4UTKySLDf3Q5/qJhLhTLw0M8N7am2mb6/I= X-Forefront-PRVS: 0637FCE711 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB0876;23:quwVuAsgILPqX/P18liWDVm36sav+WuHxIS8gh6?= =?us-ascii?Q?EWP2AthKSUGRn9H4d1pHL1JMJAV9PwNHlKAaqV9ZfA/M8WxpccjrOlRpG1/x?= =?us-ascii?Q?443hFCItWTUqI8B4u2+bg/7rIIoSJDG3V92eFzITbMYRRNGDfQCmpGUtL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3ehbsjvhyW9nAK34RUAnbfXFuNG9xpVCHlEnk3h5HiTgSHQwZ/kYKI6fdAbqXxnLt2Lo1TvRY+jwYg2h/G9CDGftIkFQ0ARxbS/y165Lv9pMjUusGDvy6HTQ10wVdjY4eM1ZVsbNdyagxrM8PQ==;24:hzvLj2Q+Ojy+ThH8kQrG7GVX7IFgtiu9/iE/uyu11TTuQ2mxZoocfxiSyVawUtzo5x9Q9R5pGDLxuUdAbmAtxhlex8IYN90YuGD0HvUCUsY=;20:XBj416004cgIZqxQL2NfwU+AGZ76WLc/4TiQsz62/Y0uypBUWP3c14nayFreazdL0shoqimsBoXuGHCnZpbsRg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2015 15:48:23.2662 (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: CY1PR0301MB0876 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6739 Lines: 228 This patch adds generic dts nodes for eTSEC0, eTSEC1 and eTSEC2. Signed-off-by: Alison Wang Enable support for the second interrupt group register block and the corresponding Rx/Tx/Err interrupt sources, for each eTSEC node. DT binding documentation updates. Signed-off-by: Claudiu Manoil --- v2: - register block size is 0x1000 (4kB memory page), not 0x8000; - reg property has 2 "address" and resp. 2 "size" cells; - remove optional/ obsoleted properties; - use register block address as queue-group id for consistency; - binding documentation updates for missing vendor properties; .../devicetree/bindings/net/fsl-tsec-phy.txt | 6 +- arch/arm/boot/dts/ls1021a-qds.dts | 20 +++++ arch/arm/boot/dts/ls1021a-twr.dts | 20 +++++ arch/arm/boot/dts/ls1021a.dtsi | 92 ++++++++++++++++++++++ 4 files changed, 137 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt b/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt index 1e97532..b3291c7 100644 --- a/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt +++ b/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt @@ -45,7 +45,7 @@ Properties: - device_type : Should be "network" - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC" - - compatible : Should be "gianfar" + - compatible : "gianfar", "fsl-etsec2" - reg : Offset and length of the register set for the device - interrupts : For FEC devices, the first interrupt is the device's interrupt. For TSEC and eTSEC devices, the first interrupt is @@ -57,6 +57,10 @@ Properties: "rgmii-id", as all other connection types are detected by hardware. - fsl,magic-packet : If present, indicates that the hardware supports waking up via magic packet. + - fsl,wake-on-filer: Indicates that the device can wake up the system + by generating a filer interrupt. Depending on the wake-on-lan mode + set for this device, the filer interrupt can be triggered by certain + user-defined ethernet packets (usually ARP or L2 unicast packets). - bd-stash : If present, indicates that the hardware supports stashing buffer descriptors in the L2. - rx-stash-len : Denotes the number of bytes of a received buffer to stash 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..cc48d56 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,95 @@ 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,magic-packet; + fsl,wake-on-filer; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@2d10000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d10000 0x0 0x1000>; + interrupts = , + , + ; + }; + + queue-group@2d14000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d14000 0x0 0x1000>; + interrupts = , + , + ; + }; + }; + + enet1: ethernet@2d50000 { + compatible = "fsl,etsec2"; + device_type = "network"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + model = "eTSEC"; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@2d50000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d50000 0x0 0x1000>; + interrupts = , + , + ; + }; + + queue-group@2d54000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d54000 0x0 0x1000>; + interrupts = , + , + ; + }; + }; + + enet2: ethernet@2d90000 { + compatible = "fsl,etsec2"; + device_type = "network"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + model = "eTSEC"; + local-mac-address = [ 00 00 00 00 00 00 ]; + ranges; + + queue-group@2d90000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d90000 0x0 0x1000>; + interrupts = , + , + ; + }; + + queue-group@2d94000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x2d94000 0x0 0x1000>; + interrupts = , + , + ; + }; + }; + usb@8600000 { compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr"; reg = <0x0 0x8600000 0x0 0x1000>; -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/