From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 3/4] net: lantiq: Add Lantiq / Intel vrx200 Ethernet driver Date: Sun, 29 Jul 2018 20:10:27 +0200 Message-ID: <20180729181027.GA15150@lunn.ch> References: <20180721191358.13952-1-hauke@hauke-m.de> <20180721191358.13952-4-hauke@hauke-m.de> <20180725152857.GB16819@lunn.ch> <0ba31982-1657-aea8-42bc-0ea838621256@hauke-m.de> <20180729155106.GB13198@lunn.ch> <18f8bbd5-0623-7bed-c96a-c7b10f1e2cd2@hauke-m.de> <20180729164052.GA14420@lunn.ch> <7c866f1b-70f3-8221-debd-be1bd0b6f7dd@hauke-m.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, netdev@vger.kernel.org, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, john@phrozen.org, linux-mips@linux-mips.org, dev@kresin.me, hauke.mehrtens@intel.com To: Hauke Mehrtens Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:49649 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726493AbeG2Tlz (ORCPT ); Sun, 29 Jul 2018 15:41:55 -0400 Content-Disposition: inline In-Reply-To: <7c866f1b-70f3-8221-debd-be1bd0b6f7dd@hauke-m.de> Sender: netdev-owner@vger.kernel.org List-ID: > The embedded PHYs are only connected to the switch in this SoC and on > all other SoCs from this line I am aware of. Hi Hauke O.K, then it makes sense to have it part of the switch driver. > The firmware is 64KBytes big and we have to load that into continuous > memory which is then used by the PHY itself. When we are late in the > boot process we could run into memory problems, most devices have 64MB > or 128MB of RAM. You might want to look at using CMA. I've never used it myself, so cannot help much. > How should the device tree binding should look like? > > Should I create an extra sub node: > > gswip: gswip@E108000 { > #address-cells = <1>; > #size-cells = <0>; > compatible = "lantiq,xrx200-gswip"; > reg = < 0xE108000 0x3000 /* switch */ > 0xE10B100 0x70 /* mdio */ > 0xE10B1D8 0x30 /* mii */ > >; > dsa,member = <0 0>; > > ports { > #address-cells = <1>; > #size-cells = <0>; > > port@0 { > reg = <0>; > label = "lan3"; > phy-mode = "rgmii"; > phy-handle = <&phy0>; > }; > .... > }; > > mdio@0 { > #address-cells = <1>; > #size-cells = <0>; > compatible = "lantiq,xrx200-mdio"; > reg = <0>; > > phy0: ethernet-phy@0 { > reg = <0x0>; > }; > .... > }; > > # this would be the new part > phys { > gphy0: gphy@20 { > compatible = "lantiq,xrx200a2x-gphy"; It would be good to make it clear this is for firmware download. So scatter "firmware" or "fw" in some of these names. What we don't want is a mix up with phy's within the mdio subtree. Otherwise this looks good. But you should cross post the device tree binding to the device tree mailing list. Andrew