Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4571003rwr; Sun, 30 Apr 2023 10:00:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6sWQv/HRiI+/dXK2Pkn/lXQ2v+XCArdrXKfT+EM2OA9NysX+pFhLJjkvUky5Cef1FIeO3Z X-Received: by 2002:a17:903:41c4:b0:1a7:db2f:e918 with SMTP id u4-20020a17090341c400b001a7db2fe918mr10927638ple.1.1682874007560; Sun, 30 Apr 2023 10:00:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682874007; cv=pass; d=google.com; s=arc-20160816; b=uq7LQNhNXhfedpYobCFUCERkbNiTWx5p0ESSj1cYUBQstNzXE5/JS0Sc8C8eYa2x77 PkAuLhclfND4fIHTgkaGylfQJAd7UuJ+lPAtcDZal8s30Jmk7jK3MIRiomBJt4jBntuA hOMvRCcKzvYnsCin6G+DsNpPh7xJRoBdkRfMbEDFKFd3JDGh1iCTIqQWMlpr8LwirElS ebpYR0wb7ymzm87A0f8gSbuXZlWKHmSAJ9aD2OftqNmdoLva1bcbSpNq2mV4Y6ujey+f xDwLoGjBt9XU8c6Gcbl/eoJXNtAXO3REER1d68Kgzg4cSd4vrFCICWWBvATLupjUQD/c QALw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=V23TsjyY1dD7n4GR0wkMYD0yPbsZ48d23pahmY6bjZY=; b=k2iVlKthsv9YR3cTJs+GVLQykVEAiT5oK+tlhKCvzKN8KRVMoT1cgpfLrCTDp1gdrw tlcqLGEFu8THcFsoLSTfnyLDdgZxGzf8709FgIECq+fUsc1nhqqXVA/3YXntjPmqaDhD ylY8bCHMy07BiGFi1s7YdF/uTILiPORIPk2vT6gk7g5nqDwS5RmDoCiZRpxf39ik6hin VvneNUndm1HJUuNCFWvigWv1qFscqvRdLoC9tgmxEDY+J+hQsMQdkOaXdVx73FUYfpjr vzsCMjx65U5o73IQ3cARjBoInmYbBBIyhxlv9NYbyZCWBY6irfWVg5b+oh2fano2IQqm U2pg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=FFkIp0Ta; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a1709029a4700b001a24efe1f22si24968358plv.64.2023.04.30.09.59.51; Sun, 30 Apr 2023 10:00:07 -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=@arinc9.com header.s=zmail header.b=FFkIp0Ta; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230163AbjD3QSN (ORCPT + 99 others); Sun, 30 Apr 2023 12:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjD3QSM (ORCPT ); Sun, 30 Apr 2023 12:18:12 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB3C2693; Sun, 30 Apr 2023 09:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682871453; cv=none; d=zohomail.com; s=zohoarc; b=RcKG0fq2Np8JTd1gJDHJ3xZGFExtlqzo5T7irO6pWfeZ/2/M2ZDm/jLBhjXs8kSkqYWKltiQnIDcEIfTBO7FtArT7A896bpZWX/bHXkDg1+sETSGhTQpfGWVAB0eCN0DF1yZRCAZon+5uG7q4OXL3GaSDy2zq2ERlpX200I2kq4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682871453; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=V23TsjyY1dD7n4GR0wkMYD0yPbsZ48d23pahmY6bjZY=; b=egBI5N2x2xYD8oG6Kr7GWcgP9HX9ZmakF1ZNRuSnbe2Adsizk6Cd/KsfzZTavi2qqAUbis9aHymScsoIY7Cl8QpEXxKuW9JW/MEn3HvzSTzSD8PHtAzRRg6QyEtX/5W3pYCIJqQQT5LWlxzpfhUDqT2h168wLDyrOlfqDwO/V9E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1682871453; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:From:From:To:To:Cc:Cc:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=V23TsjyY1dD7n4GR0wkMYD0yPbsZ48d23pahmY6bjZY=; b=FFkIp0TaDngLCZzkJ4tp5UabOW70Lfj1EnSKtRxj2nB+3YW1YNS1QrZ8kNC+JliO OUTaUiy6xEo6mlWlpI1mzcCGLner8djPP+Lpq8LkAJFYiKG637OUtDZVVOs6EkIEVef sklI13M03UKQ6L4dcgDVp7QB2mfB6EADw01b7t/8= Received: from [10.10.10.3] (149.91.1.15 [149.91.1.15]) by mx.zohomail.com with SMTPS id 1682871451193369.77097793382404; Sun, 30 Apr 2023 09:17:31 -0700 (PDT) Message-ID: <396fad42-89d0-114d-c02e-ac483c1dd1ed@arinc9.com> Date: Sun, 30 Apr 2023 19:17:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 2/2] dt-bindings: net: dsa: mediatek,mt7530: document MDIO-bus From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= To: David Bauer , Andrew Lunn , 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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230430112834.11520-1-mail@david-bauer.net> <20230430112834.11520-2-mail@david-bauer.net> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 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. [ 4.159534] mt7530-mdio mdio-bus:1f lan0 (uninitialized): no phy at 1 [ 4.166002] mt7530-mdio mdio-bus:1f lan0 (uninitialized): failed to connect to PHY: -ENODEV [ 4.174421] mt7530-mdio mdio-bus:1f lan0 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 1 [ 4.185236] mt7530-mdio mdio-bus:1f lan1 (uninitialized): no phy at 2 [ 4.191753] mt7530-mdio mdio-bus:1f lan1 (uninitialized): failed to connect to PHY: -ENODEV [ 4.200150] mt7530-mdio mdio-bus:1f lan1 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 2 [ 4.210844] mt7530-mdio mdio-bus:1f lan2 (uninitialized): no phy at 3 [ 4.217361] mt7530-mdio mdio-bus:1f lan2 (uninitialized): failed to connect to PHY: -ENODEV [ 4.225734] mt7530-mdio mdio-bus:1f lan2 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 3 [ 4.236394] mt7530-mdio mdio-bus:1f lan3 (uninitialized): no phy at 4 [ 4.242901] mt7530-mdio mdio-bus:1f lan3 (uninitialized): failed to connect to PHY: -ENODEV [ 4.251297] mt7530-mdio mdio-bus:1f lan3 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 4 We can either force defining the PHYs on the mdio node which would break the ABI, or forget about doing PHY muxing this way. Arınç