Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp906347ybs; Mon, 25 May 2020 02:09:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1VnD/z+QcWY+jvVLgzCfKGtzY1I8KBXFiD/DzG5Y13qptSYxuyVHsUJ0GKGHJoaCLtwOX X-Received: by 2002:a17:906:1f87:: with SMTP id t7mr18468079ejr.50.1590397773441; Mon, 25 May 2020 02:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590397773; cv=none; d=google.com; s=arc-20160816; b=RtjNcrvNwLnOjNUW3ce/raQOkWVZ7OtncjQXv4xLIsJi6+MD7ZE3/dOtAtl+hRoNGy ojlXLxsOlbmDG9HZXo3Fm4uzvmkvpCXPlq9GMjhf0sV99Odymzbw/vrSQGDhl2MUypQb WZB5AjRbmtACxKhJ5jm3FmeTn6fWWNCAdqUUDPAESFBBpksd5BdUOQ/lJi8g2/F/ohGf E850IomsjjUsfv3F9yfEdIw9s0vW9iun7zQQfITvc4INRxiluhQAnkUwVLJWdTd9OXT1 vnYsDfX/R90whQe/AvQkzNsbv/JSP3XdkE21JAuc3sUiM11AnaZm8UXn4psfEAAYcOa6 GIWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=i8dcqFDb40iYm5q323cf4xhXzPCg8vBB/napsVhRg8c=; b=Qd9jeVft1SV/1MFBWNgLKXAgKyzVp8GVqZFgSl4+V3jGqGI3yJKaFj/njB6a+1dGp5 bMRKweKLjO5aOeWhWamOo9f92Tj/ZHT/5wcbP1jfq5Q1V5BuQ7mXX4pi2NUXu30NH0yA PegbqSWD4ryYlTpSYXGe8DhIcVEzi2tphBgYCbW+4F4gj5gINbfrIFqPhFbpBfqZYBqT 3rmN/z1LaLMh5SgFy6LCLTdq1Rc54xsIYXuh//f27pNBAXQMhuR2qgAPXghlVJhHafLZ LKdmWDboidE9a8ZkzSUEs9OEkvsoC9kFE8UM5hMW1ByLi5JI4GZHCv8KJHeg9lIsmFR9 T7BQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs15si8642999ejb.244.2020.05.25.02.09.10; Mon, 25 May 2020 02:09:33 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389281AbgEYJHW (ORCPT + 99 others); Mon, 25 May 2020 05:07:22 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:57094 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388611AbgEYJHV (ORCPT ); Mon, 25 May 2020 05:07:21 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 925E81C02B1; Mon, 25 May 2020 11:07:19 +0200 (CEST) Date: Mon, 25 May 2020 11:07:18 +0200 From: Pavel Machek To: Florian Fainelli Cc: Martin Blumenstingl , robh+dt@kernel.org, andrew@lunn.ch, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, jianxin.pan@amlogic.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/8] dt-bindings: net: meson-dwmac: Add the amlogic,rx-delay-ns property Message-ID: <20200525090718.GB16796@amd> References: <20200512211103.530674-1-martin.blumenstingl@googlemail.com> <20200512211103.530674-2-martin.blumenstingl@googlemail.com> <20200524212843.GF1192@bug> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OwLcNYc0lM97+oe1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > On Tue 2020-05-12 23:10:56, Martin Blumenstingl wrote: > >> The PRG_ETHERNET registers on Meson8b and newer SoCs can add an RX > >> delay. Add a property with the known supported values so it can be > >> configured according to the board layout. > >> > >> Reviewed-by: Andrew Lunn > >> Signed-off-by: Martin Blumenstingl > >> --- > >> .../bindings/net/amlogic,meson-dwmac.yaml | 13 +++++++++++++ > >> 1 file changed, 13 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac= =2Eyaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml > >> index ae91aa9d8616..66074314e57a 100644 > >> --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml > >> +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml > >> @@ -67,6 +67,19 @@ allOf: > >> PHY and MAC are adding a delay). > >> Any configuration is ignored when the phy-mode is set to = "rmii". > >> =20 > >> + amlogic,rx-delay-ns: > >> + enum: > >=20 > > Is it likely other MACs will need rx-delay property, too? Should we get= rid of the amlogic, > > prefix? >=20 > Yes, there are several MAC bindings that already define a delay property: >=20 > Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml: > allwinner,rx-delay-ps: > Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml: > allwinner,rx-delay-ps: > Documentation/devicetree/bindings/net/apm-xgene-enet.txt:- rx-delay: > Delay value for RGMII bridge RX clock. > Documentation/devicetree/bindings/net/apm-xgene-enet.txt: rx-delay > =3D <2>; > Documentation/devicetree/bindings/net/cavium-pip.txt:- rx-delay: Delay > value for RGMII receive clock. Optional. Disabled if 0. > Documentation/devicetree/bindings/net/mediatek-dwmac.txt:- > mediatek,rx-delay-ps: RX clock delay macro value. Default is 0. > Documentation/devicetree/bindings/net/mediatek-dwmac.txt: > mediatek,rx-delay-ps =3D <1530>; >=20 > standardizing on rx-delay-ps and tx-delay-ps would make sense since that > is the lowest resolution and the property would be correctly named with > an unit in the name. Seems like similar patch is already being reviewed from Dan Murphy (?) =66rom TI. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --OwLcNYc0lM97+oe1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl7LisYACgkQMOfwapXb+vJCzACfcW9RZlns94NhbAXsafn1CBvX orcAoL3pNyoH5KhUL0FoV+EGTKQVEBDM =yjue -----END PGP SIGNATURE----- --OwLcNYc0lM97+oe1--