From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="BfaaFV8s" 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: netdev@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