From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 3/4] RFC: net: dsa: Add bindings for Realtek SMI DSAs Date: Mon, 4 Dec 2017 23:50:14 +0100 Message-ID: <20171204225014.GC12805@lunn.ch> References: <20171105231909.5599-1-linus.walleij@linaro.org> <20171105231909.5599-4-linus.walleij@linaro.org> <20171105234831.GA24822@lunn.ch> <20171129155627.GD24881@lunn.ch> <20171129215659.GC1706@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , Vivien Didelot , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Antti =?iso-8859-1?Q?Sepp=E4l=E4?= , Roman Yeryomin , Colin Leitner , Gabor Juhos , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" To: Linus Walleij Return-path: Content-Disposition: inline In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org > So why not: > > switch@0 { > compatible = "acme,switch"; > #address-cells = <1>; > #size-cells = <0>; > > ports { > > port@0 { > reg = <0>; > phy@0 { > reg = <0>; > }; > }; Hi Linus So you are suggesting put the PHY node inside the MAC node. This is sometimes done, but does not describe the hardware. The PHYs are on an MDIO bus, so device tree should show the MDIO bus and the PHYs on it. DSA does have an MDIO bus, so putting the PHYs in the MAC is just confusing. Although that is not Florians preferred solution, he would like the DSA driver to export its own MDIO bus and list the PHYs on it. Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html