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 F06B82C21D0; Wed, 21 Jan 2026 01:29:58 +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=1768959003; cv=none; b=uDE74me19YXuDdF80hw2/2MqWKCjf/IcRED2pfwxSJ2vbTMiTP8+0hMDAH3HE1v5rW4FDYwApAArWbm0xy6ahEeAck7V2Z4NJcAd0E//+ws3JOn5Oi0UZEjCbhvaPeYF3TNCUrcGhiEVF5BsrfN3sWTebWll2jhlI3FYVTrSNCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768959003; c=relaxed/simple; bh=Ns7IxwF8dX9CnOQFdLcvYQgbUOvN8sw152BxjUxpi34=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=opriAlzuTozfNnHdfCHHbEyL0fOfYddant0go0c3Yt9H5c3nHgdnC9AMUMTYn15/BqlIBGHQ9UUsjQPX/nP4gLsFcZMwngzF2Dr6oB8ZZx5ZVoRJcLyjK46b+xgsLrROBubvdHXUrfBKb/25ofJ1q8Ev1Ar85/8ue5hv6uNJVzA= 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=YMq82Iem; 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="YMq82Iem" 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=BDOJWUmdk5su3pn932MroBf+XrhEzSL8mJ7nZmaOaZY=; b=YMq82IemHhQwH5ZmuAYjfxC2ca SiARZTjIS9ursQLhJulw2hwL2pS9h8JGcdqkhS5tzb73fNnp+WPXGxnC84w8j98KyuLvs4SzlC+1a KFPU2ljW13NNkUUIyxAh+nJj5WIIU+BtsAuiYoKCLAQ3cVDhElltuenA/diVPsOkYdvw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1viN2B-003lN7-E1; Wed, 21 Jan 2026 02:29:23 +0100 Date: Wed, 21 Jan 2026 02:29:23 +0100 From: Andrew Lunn To: Inochi Amaoto Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , "Russell King (Oracle)" , Yanteng Si , Yao Zi , Vladimir Oltean , Lad Prabhakar , Choong Yong Liang , Maxime Chevallier , Chen-Yu Tsai , Shangjuan Wei , Boon Khai Ng , Quentin Schulz , Giuseppe Cavallaro , Jose Abreu , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Longbin Li Subject: Re: [PATCH net-next 3/3] net: stmmac: Add glue layer for Spacemit K3 SoC Message-ID: References: <20260120043609.910302-1-inochiama@gmail.com> <20260120043609.910302-4-inochiama@gmail.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: On Wed, Jan 21, 2026 at 06:36:01AM +0800, Inochi Amaoto wrote: > On Tue, Jan 20, 2026 at 02:56:26PM +0100, Andrew Lunn wrote: > > > +/* Note: the delay step value is at 0.1ps */ > > > +static const unsigned int k3_delay_step_10x[4] = { > > > + 367, 493, 559, 685 > > > +}; > > > > Am i reading it correctly that RGMII delays are limited to these four > > values? > > > > If so, please add this list to the DT binding. > > > > No, these value are just adjustment interval, and it is also > controlled by another code register, the final delay is calculated > by the following formula: > > delay = delay_step * delay_code * 0.9; > > So the delay configuration needs to be calculated instead of > directly assigned. O.K. So what is the actual range? Can is do 1000ps? 2000ps? 3000ps? Should there be a basic range check to avoid dumb typos? Andrew