Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2558364rdg; Mon, 14 Aug 2023 06:30:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFc3OQg90J6/3tKDYu5cM/DFd4D5eO26HaHVAbh9PJIePJNbZIi2lfRkoHtby+6ylN3o59b X-Received: by 2002:a17:906:257:b0:99c:581f:7f51 with SMTP id 23-20020a170906025700b0099c581f7f51mr7560647ejl.54.1692019833973; Mon, 14 Aug 2023 06:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019833; cv=none; d=google.com; s=arc-20160816; b=WLnY7HtqUNG8t1vrhFwqp7Ky95o8CH2TGeVxGbD9KeEFgdznu87qMS74ZafARWfH93 IjkN2MGTNIaF93BzuGZpphy9Wfkr5f5fHzPHnL6UQQ8shDR1g/w/Gznwy4ahhbxQsOb/ /jZ2CdHcyXSWfIv74jYT8whtJBORRXrVFur7rTgSL7zp429yPsfpzvpLSdBol3l7CTLS fdIpkkZZ+5xOArnMTTN5R7XrbcZPNEWordHll+3m1/drdw4y3BtoU+/rjYsixcBmvIDU X0m1ALn6aq3bJz4wawcbhaTv2SaS19WeROLcnSKptM4YIYwm8ZJBVScmgdV8rJq6GnTD RQyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gNlIR5BmjVdCXJgcGwHTe/YYZhq8OipyVgHsLjLm8ko=; fh=eVPCo/ubq06op8r67A9AZK1KQ839QiCI2XVgHC+9fAU=; b=niMVHCZO0YLe43f/ykVxQtbhAve8H0UTIopSPuh9/O8yED0RPSsoQJ0tS3FxpOuU9X 7ZaIMjX6NYk53bXRcR3P0AIrT12hQ7vqkssWOSvlxQZd2+trskTnKjH6+Yp4mJY38V6t v/kMse+mtgZn5iKpLPvafWIDrKKCRHCEun2HeLLWcWWSu8OgHSPejU4nZB39PHORXPJ5 fcOHJFachTnZ/GFHWIdqpBWHqnBI6lIWftuQnthfUDCIkHPo0+pfCD60p9Hb3665kdW4 B2EznwxurKmhaYjUwt4tOQrpgUxFauv3jI+fqDFXM9Yp/Dc5d72fLItnz246EAQ/3zWH EthQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4BD0nhJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a170906344600b0099d96df4cd9si3356520ejb.361.2023.08.14.06.30.09; Mon, 14 Aug 2023 06:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4BD0nhJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbjHNNK0 (ORCPT + 99 others); Mon, 14 Aug 2023 09:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjHNNKE (ORCPT ); Mon, 14 Aug 2023 09:10:04 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F534E6E; Mon, 14 Aug 2023 06:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=gNlIR5BmjVdCXJgcGwHTe/YYZhq8OipyVgHsLjLm8ko=; b=4BD0nhJSTcT3h243KKZyN1Ocjf J04TgJOGP3ZgK3VSC52joEwASYDajz767mA/mDAelddXU3iSrrgWXHiZb9nMx6dbBzYV4j+frTPYf 4w2PlS5hWWxzSXEuBSt6mcFBfkgYw19kl4Re3rHXfJ1lap287z9RZh2/xEbk9cGLwR/I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qVXK1-00431W-Ni; Mon, 14 Aug 2023 15:09:25 +0200 Date: Mon, 14 Aug 2023 15:09:25 +0200 From: Andrew Lunn To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Vladimir Oltean , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Woojung Huh , UNGLinuxDriver@microchip.com, Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 2/4] dt-bindings: net: dsa: document internal MDIO bus Message-ID: <617c51cf-2c09-4865-ac60-96599db597e7@lunn.ch> References: <20230812091708.34665-1-arinc.unal@arinc9.com> <20230812091708.34665-3-arinc.unal@arinc9.com> <47b61929-5c2d-4906-b153-2046a94858c8@arinc9.com> <47b61929-5c2d-4906-b153-2046a94858c8@arinc9.com> <20230813112026.ohsx6srbt2staxma@skbuf> <8a8e14f1-0493-4298-a2cc-6e7ae7929334@arinc9.com> <20230813190157.4y3zoro53qsz43pe@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Ah okay. I didn't consider the switch architecture where the data interface > of the PHY is connected to the switch, and the PHY management interface is > connected to the mdio bus that the switch is connected to. The generic Linux architecture for PHYs and binding them to a MAC via a phandle allows the PHY to be on any MDIO bus anywhere. DSA has some additional shortcuts to support 1:1 mapping if the switch has its own MDIO bus, without describing it in DT, but this is just in addition to the generic code. > Not json-schema documentation, don't care about: > - ar9331.txt > - lan9303.txt > - lantiq-gswip.txt > - marvell.txt The marvell switch can have up to 2 MDIO busses. If i remember correctly, there is also one switch which has one MDIO bus per port. Andrew