Received: by 10.213.65.68 with SMTP id h4csp724686imn; Fri, 23 Mar 2018 14:35:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELvas+i924pvWOG3WIxMfsifEp92cV4blpj/5rF8HZIyamXs+uR5me2iWyLOOtEbipQzKPAP X-Received: by 2002:a17:902:b287:: with SMTP id u7-v6mr13853321plr.236.1521840919278; Fri, 23 Mar 2018 14:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521840919; cv=none; d=google.com; s=arc-20160816; b=ULjp6ZPE7PBfFJoK5E6z14KN/6iBufy8pxgIqkpXu+jw6EidMg7VYJYt/hVqvdCEVM k+E2mVBG9vNPVFNpbVkwcN6qCksf+FIltw/4mY0wvUTwSImGE9QOG34IM2vwiFRH2C89 vkUlmxJhWaT0icamP+tSHuO8CT1URFqmR+qutyVUzw8jQamoJ9SMyFeO24q6dAs4gwQr LvzjQB0VXFCdFXrLdYZ9RWuupLmZvG/StqatVnRvrdMBYADCY3DnOHPXst10AqZsy0vZ XrQAu746fQBu2jvbMq9upsAV87FpMJxpC6PSDca27izsdeBmXr6zCehlAOVvEqzcspYY qQBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Ek63suwPEaR+9XL0FU4eiebpEiTUSo5LFDtpdpPBxeM=; b=fE4pRCPhC76EATUMsWtB4W/kODGfbezmrwLu9XBh+d8hqyXmL3pWplskefTZ2uamL6 IhyXxQ03UmchtmyLbzETsf7mhFTsyIrnBDXofTzGYrrNOxWy2IzUYimv4pB7+ElV4R9Q rQgj8Cfg6EPAdPgOe25ao4CxFSt0Z4W1ijNSPMlHcjI5mpg4b6lqHhNAe8z/38O3O/Fk BRrDEZNgOtX9opZo71iABqqxSMdEtxDMDoAGzMI1g4SvE3IK7r9PpAm4HbqAu7Z/Iozh MonSPMrZjHqjCtnU6Ktq6h7bYM+/8+izSCh6Jhy6UY0Ywhig3+bMH4ldkAlAncnfkoAJ reSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=D+PMTPiT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si9512744plv.323.2018.03.23.14.35.05; Fri, 23 Mar 2018 14:35:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=D+PMTPiT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378AbeCWVdz (ORCPT + 99 others); Fri, 23 Mar 2018 17:33:55 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:40668 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbeCWVdx (ORCPT ); Fri, 23 Mar 2018 17:33:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=Ek63suwPEaR+9XL0FU4eiebpEiTUSo5LFDtpdpPBxeM=; b=D+PMTPiTfEldS4j6hfbEh9uLIF+K5KqM7VndkSwJzgzxII5saWEuNnPmIulFMVN3LpZlIKYRJLS3KdC5YHE1vSHSa+D0KwypQnh5u3I4oVH3XKYUzS9oXcm1FfFSODz6dHwOFu5StERQTKGfbcHz7T5/G7WkTXNNcDYkyC6jpLA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1ezUJk-0005nZ-TS; Fri, 23 Mar 2018 22:33:44 +0100 Date: Fri, 23 Mar 2018 22:33:44 +0100 From: Andrew Lunn To: Alexandre Belloni Cc: Florian Fainelli , "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, James Hogan Subject: Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot Message-ID: <20180323213344.GV24361@lunn.ch> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-7-alexandre.belloni@bootlin.com> <20180323212230.GA12808@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323212230.GA12808@piout.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 10:22:30PM +0100, Alexandre Belloni wrote: > On 23/03/2018 at 14:17:48 -0700, Florian Fainelli wrote: > > On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > > > + > > > + phy0: ethernet-phy@0 { > > > + reg = <0>; > > > + }; > > > + phy1: ethernet-phy@1 { > > > + reg = <1>; > > > + }; > > > + phy2: ethernet-phy@2 { > > > + reg = <2>; > > > + }; > > > + phy3: ethernet-phy@3 { > > > + reg = <3>; > > > + }; > > > > These PHYs should be defined at the board DTS level. > > Those are internal PHYs, present on the SoC, I doubt anyone will have > anything different while using the same SoC. With DSA, there is no need to list internal PHYs. That is the trade off of having a standalone MDIO bus driver. Maybe add a phandle to the internal MDIO bus? The switch driver could then follow the phandle, and direct connect the internal PHYs? Andrew