Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3376174pxu; Tue, 15 Dec 2020 05:45:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyA6p/dGjaDAedB46veUtm1Dess4xXXyCAq560ogPzrw46Vc0KN2Z0Xp1ynGi3C1tzsyyVV X-Received: by 2002:aa7:df0d:: with SMTP id c13mr3313658edy.387.1608039927730; Tue, 15 Dec 2020 05:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608039927; cv=none; d=google.com; s=arc-20160816; b=paQrlLm/QhicvHeV5t1o/2N+qUIunTIb9tRO2PbHTIHZlkGvjq6U4TffpN7ketA+hs nO762EbTbQ6/Poikxx9s4uqXenwls7FHLz+QWN/m6UDnHLMWbkYtkP/Gf8U2UiqQ42Gi Rbixi0cwgzJgpFRFKn3WSpMnV5lZZtJopw8d0lePqXPhCNXT5MM4gz3D1XTRCVz6pXDA unrmdjAnrP4kp7B0YY+JR6q9KUEI8oHLLnR02qdNwlGVAqnmnsPVevZSIQh5wjNVx5qF pEjji+Q2oUoBbc0MDixhq+/FPfpng1okTveAKcp/X+TwK1wxavStUFed8dmZVjkWlxI4 N78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=c+L7KsCOY6qFeiR1Hwd17et+mSRPWVYNWJEy3hpVFbM=; b=NCyal81nkE/+lEKA/h0xqI6gS9ejPCHgsnqSlua5acnr3+byBiydNVcahvfTSTkGjS GDUOQxaZGPJoZpkI1mZ0VX2kQuEkRKXi6aUKBOhXDrpB5b7V7aXHa0fAJlhv/IKT03Z6 9LfPJdDkKeA/44q7BrUUd5IfasSsGqtrfmCz3ZMIMz2RGC/52LOh7boxwNB0KokfGq/O 33EBjiT5AZ5ODQiuxbIOCfAW32N2sTWErRJ+4/kOge0W4hJbNxAFgxe+6AAk2RUEEFYE LVHAOFC058rsI9Eiz5FEJIrojzTAretbVuTaZcUMc01LSz8W/GW6jIXS8JHA8uoDFIsd EKHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si874686ejh.685.2020.12.15.05.45.04; Tue, 15 Dec 2020 05:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728736AbgLONlZ (ORCPT + 99 others); Tue, 15 Dec 2020 08:41:25 -0500 Received: from mail-oo1-f67.google.com ([209.85.161.67]:44359 "EHLO mail-oo1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727925AbgLONlV (ORCPT ); Tue, 15 Dec 2020 08:41:21 -0500 Received: by mail-oo1-f67.google.com with SMTP id j21so2230782oou.11; Tue, 15 Dec 2020 05:41:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=c+L7KsCOY6qFeiR1Hwd17et+mSRPWVYNWJEy3hpVFbM=; b=MRy0QzsuGZMx4Qs03x/xu+QuWpT5888jY0woR9KkWdU0BNSy7CRa9w5nyte2gn4d3W KUoJwuKeZWpDVWITWOP937C2uSdJon/jDzOaFOe7PwO+kKxK9+wm9oRzkpsDm7lr2htk o/ASqpPoJZTOZzDrO3mbMH2SI26oIwJEQukNa+dyvGNAxLis/0lNP1Hq2y2wVDTwtzXQ 7WYTbnotvguBYjalI28KV6WHTUAt7TjnZkslwrnxSwIY1J+e6zGMLvSscQCy+oLzzUZ0 VzI/4VTIHeQZMcysT3IEiA6cEje+A5QCZZArzeCjg2Yz7L1Ghn6yEzGEj6GRuSWDI+eE 7UhA== X-Gm-Message-State: AOAM530qMlAbrOlCAAjCRgH8mkP/jnYr392t3SQmTTbQMPNS9YOCvxkS WRhDV2zC+WdCMvIP/CahtQ== X-Received: by 2002:a4a:98a3:: with SMTP id a32mr19107834ooj.51.1608039640709; Tue, 15 Dec 2020 05:40:40 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p4sm5084387oib.24.2020.12.15.05.40.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 05:40:39 -0800 (PST) Received: (nullmailer pid 3705961 invoked by uid 1000); Tue, 15 Dec 2020 13:40:38 -0000 Date: Tue, 15 Dec 2020 07:40:38 -0600 From: Rob Herring To: Martin Blumenstingl Cc: davem@davemloft.net, kuba@kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, jianxin.pan@amlogic.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@baylibre.com, Neil Armstrong , jbrunet@baylibre.com, andrew@lunn.ch, f.fainelli@gmail.com Subject: Re: [PATCH RFC v2 1/5] dt-bindings: net: dwmac-meson: use picoseconds for the RGMII RX delay Message-ID: <20201215134038.GA3702703@robh.at.kernel.org> References: <20201115185210.573739-1-martin.blumenstingl@googlemail.com> <20201115185210.573739-2-martin.blumenstingl@googlemail.com> <20201207191716.GA647149@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 13, 2020 at 05:59:05PM +0100, Martin Blumenstingl wrote: > Hi Rob, > > On Mon, Dec 7, 2020 at 8:17 PM Rob Herring wrote: > > > > On Sun, Nov 15, 2020 at 07:52:06PM +0100, Martin Blumenstingl wrote: > > > Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX > > > delay register which allows picoseconds precision. Deprecate the old > > > "amlogic,rx-delay-ns" in favour of a new "amlogic,rgmii-rx-delay-ps" > > > property. > > > > > > For older SoCs the only known supported values were 0ns and 2ns. The new > > > SoCs have 200ps precision and support RGMII RX delays between 0ps and > > > 3000ps. > > > > > > While here, also update the description of the RX delay to indicate > > > that: > > > - with "rgmii" or "rgmii-id" the RX delay should be specified > > > - with "rgmii-id" or "rgmii-rxid" the RX delay is added by the PHY so > > > any configuration on the MAC side is ignored > > > - with "rmii" the RX delay is not applicable and any configuration is > > > ignored > > > > > > Signed-off-by: Martin Blumenstingl > > > --- > > > .../bindings/net/amlogic,meson-dwmac.yaml | 61 +++++++++++++++++-- > > > 1 file changed, 56 insertions(+), 5 deletions(-) > > > > Don't we have common properties for this now? > I did a quick: > $ grep -R rx-delay Documentation/devicetree/bindings/net/ > > I could find "rx-delay" without vendor prefix, but that's not using > any unit in the name (ns, ps, ...) > Please let me know if you aware of any "generic" property for the RX > delay in picosecond precision {rx,tx}-internal-delay-ps in ethernet-controller.yaml and ethernet-phy.yaml.