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 7292B3A900B; Wed, 21 Jan 2026 13:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769000537; cv=none; b=R5nQXWSA5aLFO3bP3K4eZxQMDyA6/YG2qY4vPyV5kGxzGWsQjy2tTWq/Jyk9FhtEtq4dPq0sWPrcREMWh5cdHSDbtSur2nyyBrsnSQqj3Q/N8PsN7F3vDvBIc0yrseQxgrqL2/ad1ALLN4w47nQ3fV/TRrOk1quXxAr2KAJfRZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769000537; c=relaxed/simple; bh=b9Ot2W9tl+otwAuHAzpMFUHlxoGRtWbb5F5GJWnaBH0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jnUP8UDsCx7YV/NVEpQyCvKBftNXE9Pitlqqloz2OYeSDpE9DYXsuF6IRt0fjTCTzvxY8GNNFdJqG5iPwvngsSWSNRegXpFCr4GxEbTUR1oKnT9F4kF1hQy7GbZJ+oEN+Fd26NMiq5J0KM5mXp0VJEv3Ed+IUjrWC2GYRO+zBxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=rwF2PpK8; arc=none smtp.client-ip=156.67.10.101 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="rwF2PpK8" 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=BT3tP66rH0wvEE2LeIJW9H044jCQJ8M0rzFx3qQjFpM=; b=rwF2PpK8kkYNSkY8nXq0fTW/oU swOsCkeyGZroMRAOR8yhC/brflVXBoH+IATMTlTeFD2UZs3JrhbJ9DDrXYiJ8iIl+AvL+9tT9qLCK b3RMMmTUZ243cE1wxmI5b5lNQo6Tiii4XeGgngnE/qeeAlO5RQax4fgvnNJkpwqG9tFo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1viXqT-003or3-4m; Wed, 21 Jan 2026 14:02:01 +0100 Date: Wed, 21 Jan 2026 14:02:01 +0100 From: Andrew Lunn To: Chaoyi Chen Cc: Sebastian Reichel , Chaoyi Chen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Alexey Charkov , Shawn Lin , Andy Yan , Nicolas Frattaroli , Detlev Casanova , Stephen Chen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 board Message-ID: <87589c3a-4888-4774-8743-770dbebb290d@lunn.ch> References: <20260121031548.402-1-kernel@airkyi.com> <15a3e449-25e5-4387-963d-0dbda7be90f5@rock-chips.com> 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: <15a3e449-25e5-4387-963d-0dbda7be90f5@rock-chips.com> > > That allows using standard properties in DT instead of vendor > > specific "rx_delay"/"tx_delay". This results in a much better board > > description and shows how far boards derive from the the standard > > 2ns (which can use rgmii-id without any extra delay specification). > > > > Oh, your approach was also my initial thought. > > I first asked whether it would be more appropriate to implement this > in the PHY or in the GMAC, and Andrew told me it should preferably be > done in the PHY. But I'm not sure whether all PHYs support this > operation. > > Andrew, would it be possible to implement this in the GMAC for cases > where the PHY does not support it? Thanks. As i commented to one of the patches, the PHY will be adding 2ns by default when 'rgmii-id' is used. If you read the RGMII standard, you also see there is quite a wide tolerance for these delays. So unless there is a badly designed PCB which needs something well away from 2ns, i don't think it is necessary. Andrew