Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4590100rwr; Sun, 30 Apr 2023 10:22:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74aN8rjkTWrp9bA8P8j6c/wK9GLh//fAL0fPQ4TcVzJ9kWPgrHMbLI4sOHPyM22O+lhxdp X-Received: by 2002:a17:903:244b:b0:1a6:5f92:3ba with SMTP id l11-20020a170903244b00b001a65f9203bamr14195852pls.0.1682875367725; Sun, 30 Apr 2023 10:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682875367; cv=none; d=google.com; s=arc-20160816; b=anEcEo402vE0E2uSwdkD5UYNnb6EOt89OsdyIGmfnjo5gvy8QASc1riA3k6WSROlZq g+EkvjwYqw47x+3Mdg2Meen0NhKZIqZOPh/HRVCgzxxdNk3iXpyts4DyHxM6VKiPsisB 0k1pibhQ78MXz5N5C1cJbzHxNXyU/obYqqNe79iUEcnMhJWHde2PoZnqPI3I57XkIY6u uNLz51cbX4LZFDMsdqz7D2nhMAMnqGpMSuccgD0ZoNVlk6klRCaZ4Szph0ns7Q4/++6j reyck+CMV85XU9nYbT9ZzXrpWeItT8l0BpCaiX44f/qk+c5lrog1RslYhMEuKjEWvyxa I9BA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W2m9o5cAZcUL4YwF6LNqupdePboCY6WLH6EEUshsr3k=; b=HQVB8HGjejeLnhfaAifGnKvQNX1Cs98J2l3OAaO0ne5qKFjOWgm/7H+Y36JDcoe5Sk 2+1bII0r6wc6fkULAux85JWRf38TbW2x902Tz9JGSqAejdfsxJ3f83+76Lx7Muaf4Sr1 NWsS1HndqpTQTnomLVOXaAMwT7EWwq4FvMeMY5KgdAtmvIF6YfnGxPJoYSt8R4PiBbtm AgLOg8gLp8VZeH4z2ymOz6LQcTwWyz3Nn3TEQDkN5GgfVLo5qIas5xfYse/re98+dMgw xrrYzLrIBJLEMsQdgaIp8KTXNpvZRTpJS+fRCtg8MQlxaDz3o3eOeXPvdXUhy77Ddlzy cpRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="h/v1BqlS"; 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 m9-20020a170902f64900b001a637615a89si14436487plg.561.2023.04.30.10.22.34; Sun, 30 Apr 2023 10:22:47 -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="h/v1BqlS"; 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 S231785AbjD3RTh (ORCPT + 99 others); Sun, 30 Apr 2023 13:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjD3RTV (ORCPT ); Sun, 30 Apr 2023 13:19:21 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE5E3AAE; Sun, 30 Apr 2023 10:18:28 -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-Transfer-Encoding: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=W2m9o5cAZcUL4YwF6LNqupdePboCY6WLH6EEUshsr3k=; b=h/ v1BqlSOSj4XcZqtRa6+SdSZW7KyYBo8pN4hWyOTz+aKTF/WiuNz2KryyZ+I7WmRK9FCVsahgmC/qx Gcgk+6q+8JKcX8VvNm23QRkNth3TIQea829DuinR4SMHPcZ/7/WlqUJTXcaPw8QepSNQOSHRJ0iJv qKBPQzX4m04tydo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ptAgT-00BYs6-15; Sun, 30 Apr 2023 19:18:01 +0200 Date: Sun, 30 Apr 2023 19:18:01 +0200 From: Andrew Lunn To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: David Bauer , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , 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/2] dt-bindings: net: dsa: mediatek,mt7530: document MDIO-bus Message-ID: <04cc2904-6d61-416e-bfbe-c24d96fe261b@lunn.ch> References: <20230430112834.11520-1-mail@david-bauer.net> <20230430112834.11520-2-mail@david-bauer.net> <396fad42-89d0-114d-c02e-ac483c1dd1ed@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <396fad42-89d0-114d-c02e-ac483c1dd1ed@arinc9.com> 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, T_SCC_BODY_TEXT_LINE 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 On Sun, Apr 30, 2023 at 07:17:10PM +0300, Arınç ÜNAL wrote: > On 30.04.2023 15:34, Arınç ÜNAL wrote: > > On 30.04.2023 14:28, David Bauer wrote: > > > Document the ability to add nodes for the MDIO bus connecting the > > > switch-internal PHYs. > > > > This is quite interesting. Currently the PHY muxing feature for the > > MT7530 switch looks for some fake ethernet-phy definitions on the > > mdio-bus where the switch is also defined. > > > > Looking at the binding here, there will be an mdio node under the switch > > node. This could be useful to define the ethernet-phys for PHY muxing > > here instead, so we don't waste the register addresses on the parent > > mdio-bus for fake things. It looks like this should work right out of > > the box. I will do some tests. > > Once I start using the mdio node it forces me to define all the PHYs which > were defined as ports. Try setting ds->slave_mii_bus to the MDIO bus you register via of_mdiobus_register(). Andrew