Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4790430rdb; Fri, 29 Dec 2023 13:44:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNTRLD+PwRfpyhJiy6YRFsLBnxYMiDdyh5rEreFNHPsCZ3aWKHd64MdvIMnPfzFZMECgvr X-Received: by 2002:a7b:ce0e:0:b0:40c:386e:6aa2 with SMTP id m14-20020a7bce0e000000b0040c386e6aa2mr3327792wmc.55.1703886253115; Fri, 29 Dec 2023 13:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703886253; cv=none; d=google.com; s=arc-20160816; b=z89NjtVaqv4zfULNbkxNykVoq8hPQkFrCqFMB7B9xJxYJZgS1CG57J4uMRJI4hIVZq JhMoNxHpYZ0cpfqn+7qhO77JdRzuA11u+x3AZ+IyxivGV2y2bOCj431PaZCPqZWkOI8M B8ytNeMPe0xKXVOmY8RPQ49ALBoZf197Uvdgm3MgQ9tcWJLjT3JzgW5Bx3tHwLQ+wgMQ jKy50DICfQYyKLZnkwUwbBjPkzeACMcVW23/EziOqoR6YtngmJ9lGv+2kDx3b/5EX8hy WOZ0zn3cKRiiymQOqH38hg/b4RG738I1r8zl/RLNtajac8l9osUnAx+JrkxUb/DZL6xP vZhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cMOZBS1WdL8uj8Ggp/P2n0JMmGvQkfKOgui0I7cGEWw=; fh=vy8w8kXF7QTCBNzTepaScPccyLxg1h2l6xX0S15GJX4=; b=WfJnmAMrBRSZT1epo0leA0BsaJcGZXYiMeHKI5JiRFoPDDr6LiFlbaDtLc+SUgbmhm MHtzQGSqm/8LnOB0kopxK6KgwnGGjmqPzsZwO1ZPI8UtMp1SpYgxNE48FiD9tr3oDFBx IyAku5nz7YyhEn5PWxLjDO0sOKEvVs9vo5d+cjH5eyOzFh5IsvCHAhOSisAHR80T38L5 2Lg60FTAgug/FrTodrPOYrBJZs6DtwEov7kK8wgZwyAD7zaPJ50vP+TBF/n+/1O9viCH gflDM5bXGYqOhEuJRufREcaoG+2M1pPJnc2kcMGhHu3i4uYevY/8axnGS0i0PA1aXJC5 q/zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BfaaFV8s; spf=pass (google.com: domain of linux-kernel+bounces-13246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h8-20020a17090791c800b00a276e0c53e5si1367652ejz.154.2023.12.29.13.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:44:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BfaaFV8s; spf=pass (google.com: domain of linux-kernel+bounces-13246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D49D71F22DB2 for ; Fri, 29 Dec 2023 21:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8674814A99; Fri, 29 Dec 2023 21:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="BfaaFV8s" X-Original-To: linux-kernel@vger.kernel.org Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FC4914A87; Fri, 29 Dec 2023 21:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=cMOZBS1WdL8uj8Ggp/P2n0JMmGvQkfKOgui0I7cGEWw=; b=BfaaFV8sXwsHVLWMsU5Im3F2xz aKX0bDP4/bThvxouXffBZAPPvgNj5TNy8VMNLbaimO/ayRJ9zz6Mm4GayiwZlvY+TLJ22gP4GjX8u 9OiHRg42Bda0Zeqhl29KfhqR43DQ3hXFKen8JK3RhIFQY4YayvxRAXcpZsTWPohA2sgA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rJKdw-003vKD-5J; Fri, 29 Dec 2023 22:43:48 +0100 Date: Fri, 29 Dec 2023 22:43:48 +0100 From: Andrew Lunn To: Jagan Teki Cc: Vladimir Oltean , Heiner Kallweit , "Andrew F. Davis" , Florian Fainelli , linux-kernel , netdev@vger.kernel.org, Michael Nazzareno Trimarchi , Ioana Ciornei , Shawn Guo , linux-arm-kernel , Fabio Estevam Subject: Re: PHY issue with SJA1105Q/DP84849I Design Message-ID: References: <20231222145100.sfcuux7ayxtxgogo@skbuf> <20231226153055.4yihsmu6kiak6hkf@skbuf> <20231229152519.2jxrwaeltp4pxlms@skbuf> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > > If you are truly using MII, then you should remove the RGMII delay > > properties, and since you are using a 6.1 kernel - hence after kernel > > commit 5d645df99ac6 ("net: dsa: sja1105: determine PHY/MAC role from PHY > > interface type") - you should be using phy-mode = "rev-mii" to put this > > port in MII PHY ("RevMII") mode - to interoperate with the FEC in MII > > MAC mode. > > Okay, I will remove RGMII delay. is phy-mode = "rev-mii" applicable to > all ports or only for fec port4? phy-mode indicates what the PHY should be doing. In this case, the switch is taking the place of the PHY and so the switch MAC needs to be revMII so that it acts like a PHY. For the other ports of the switch, you have a real PHY connected, so you want MII. Andrew