Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2526379rdb; Mon, 20 Nov 2023 13:27:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrfWhTPMWjGJmXSFpfLUF2YJp03fUKCUqF++vy+10n8JweFbhLmu8ko4rfvyzaOL1U9ONv X-Received: by 2002:a54:4719:0:b0:3b6:cc01:aba2 with SMTP id k25-20020a544719000000b003b6cc01aba2mr8826878oik.55.1700515651786; Mon, 20 Nov 2023 13:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700515651; cv=none; d=google.com; s=arc-20160816; b=SAghKWLNDysV/srxGnaCHfOy3VjrpgLExZ49/Q1uBzlg1Q8FaQukdcRbX+K7Pa0OPz ACM5uwyIwzwSGHxoKJxosjnOvcDW+BTWuiGBeGFBpxTvfb0NewmHDbGguqRAEL3LWo7e wZHtl8lj7Np8vedxOViYPwc3EGH+2RA33Lt3V8tZZSjU+hwa+/VkucYjLsFNrwMoEUjU ZNAqISZhzcyCoaBC3XZ4K1AH1waasx4qZHie003Vq2ssSJlygw0srFiAmtb6a+glRywZ 911jxS6W+lL8xby0tgTYxKFkyev9zDzgJuUQ0aPmlAlFb1jPAjd7FljaKKMDuH8Ze70g lZHw== 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=vTiej26Yh66vUupMXOZ8FNGPsbQnKj9z0H8vgIBxYBg=; fh=+k2ac32NMQohGfx41aqcCJ8a0dRKeYTq2xCKQy0sbrE=; b=J5SjDLUUYIhlNij2FUbG4476ECol+GVg/JPYszMZTof+IlqKiUv23K7vuJP2mTqay1 poJmXIGyCYSqVSCkLdSvKckJPGT5IEEAZav2vxDoF3J5HIVDVkfcg3Ln1TnSFsbpa6Pv nYyq1/MYmFlY3vD5+VVinAimliKYwzsXzr6a0gWUqnUS2OR3j9ewqPBFV85ua8NIWkTm bhz8ZTPfqLaWW6es8EKFDbL9Wgzs8YOluGjbcPe5spGo8Tyx/QRDqjad/uzuu8S8Hl6t QAHebvqVZ6cJSRmHb5cukq3vqNqWXWDcaPghSJuuCoSHjLF7VCjwnY3Cj0N+D2BnXQqj QNhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LxeEzEeS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z12-20020a63e10c000000b005bdbcff21f5si8857215pgh.501.2023.11.20.13.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:27:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LxeEzEeS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4B493808285E; Mon, 20 Nov 2023 13:25:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbjKTVZg (ORCPT + 99 others); Mon, 20 Nov 2023 16:25:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbjKTVZf (ORCPT ); Mon, 20 Nov 2023 16:25:35 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD57C99; Mon, 20 Nov 2023 13:25:30 -0800 (PST) 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=vTiej26Yh66vUupMXOZ8FNGPsbQnKj9z0H8vgIBxYBg=; b=LxeEzEeSpN0Fpj0ZYVs+2MyM++ NMvgFyArPgGSngt3mWVaHMhRnEUzvoPGekmJsYhOZyMaSqYEdUzNiE0qlvMSpLwsU3d72pBf2863c n3u2XkWDfI9BiRlKHJK2mD+1hPOzTWQhpTqTJCKOsLPUMEzkYu8wdHMC+pHcXfo+Udl0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5BlW-000h20-H5; Mon, 20 Nov 2023 22:25:10 +0100 Date: Mon, 20 Nov 2023 22:25:10 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , "Russell King (Oracle)" , Harini Katakam , Simon Horman , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 03/14] dt-bindings: net: document ethernet PHY package nodes Message-ID: <45784368-93e0-4d57-bb0c-5730f53f5a08@lunn.ch> References: <20231120135041.15259-1-ansuelsmth@gmail.com> <20231120135041.15259-4-ansuelsmth@gmail.com> <655bc8d6.050a0220.d22f2.315f@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <655bc8d6.050a0220.d22f2.315f@mx.google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 13:25:59 -0800 (PST) > A real DT that use this is (ipq807x): > > &mdio { > status = "okay"; > pinctrl-0 = <&mdio_pins>; > pinctrl-names = "default"; > reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; > > ethernet-phy-package { > compatible = "ethernet-phy-package"; > phy-mode = "psgmii"; > > global-phys = <&qca8075_4>, <&qca8075_psgmii>; > global-phy-names = "combo", "analog_psgmii"; > > qca8075_0: ethernet-phy@0 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <0>; > }; ... > }; > > qca8081: ethernet-phy@28 { > compatible = "ethernet-phy-id004d.d101"; > reg = <28>; > reset-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; > }; I've no idea if DT allows this. The issue is that reg is the same for both nodes within the ethernet-phy-package container, and ethernet-phy@28. They are all addresses on the same MDIO bus. We are parsing this bus structure ourselves in __of_mdiobus_register(), so we could make it work, but i don't know if we should make it work. Andrew