Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp83671pxf; Wed, 10 Mar 2021 00:41:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmLP6LBJaBSM6kvvlfiq8Y9qtp8C/axyLOBy96cB6WGiuQvBoPl2Qsoolsj2W+unCbWzJZ X-Received: by 2002:a05:6402:1517:: with SMTP id f23mr2071286edw.272.1615365712715; Wed, 10 Mar 2021 00:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615365712; cv=none; d=google.com; s=arc-20160816; b=uxxv7N4v+9y8htcJuAA2Gan8HIkWnvjCRoYira6sKiAhYZI0Yq/uHX8P4S8c+DtN+3 7ikfpjA7b6uPsyRaJVzzLXIHOg9yuA/kYspIfaWctumEJOw3GO5p07jR/AXW9HbjixdT B21kGa/UUNRrFM9aX+Ltb4dCuXHj+M5Za+PBxVR9IdtyK5JIkVbPsDTryMH5/Ngu7a2K stn7B6sjszGcu1FE2clV72kbEYQJ54HCYKAFAivm+c0dvzbVXCLL+8UaRfvknnZOWDHu PK3dcDOeyh/WTyNH7lglqVKGdeARNOMVp0idf4zVAatnBORnHyxM5DxoNvl3ReyUS0Fs WKag== 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:dkim-signature :dkim-signature; bh=UWYa6L3xNrTqeLtZgTGVhaunhWuw8dTIJzklNZwMjO4=; b=KCuQ5PeUywLHAcXek8vJnEyFaEHvgP52Am1TGNNisQIhkdDPVK8nsxEZ/m5isJIgFQ YZK03RXrVnyRo6B8Uj/TJVIh29syCxZTF7KfbrBNPs9l53gV9fcaPkjHx9LGRWIvKEvf OLLKJXqXAlpC3RbZqvY+0mFI7TPlRJdUsiZQd1uJ0vkVuF/dy/EMTLVB6HrnUb+ui6Cb u0ToJqONaXb+O42/ll0Ub+9ByN6CbG1fbGbg0zE5AC+5sumrFGXZuagZ8zPhVz3rZ/gi Au0u4sI8h/Q2CMsab6FdqH/azkHpf+TE5YC2QmkSeO/UGQMlh3mwORi5y7Zr6DZbK5Zf y/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=ovyv+4Zq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mpyOwkLs; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc8si11407501ejc.569.2021.03.10.00.41.30; Wed, 10 Mar 2021 00:41:52 -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; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=ovyv+4Zq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mpyOwkLs; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230453AbhCJIk2 (ORCPT + 99 others); Wed, 10 Mar 2021 03:40:28 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56841 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbhCJIkB (ORCPT ); Wed, 10 Mar 2021 03:40:01 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5AC0B5C0113; Wed, 10 Mar 2021 03:40:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 10 Mar 2021 03:40:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=UWYa6L3xNrTqeLtZgTGVhaunhWu w8dTIJzklNZwMjO4=; b=ovyv+4ZqGxtSsKxVtasS9nYx1VEJF4QSmqS/iloSgly bJNZXUFBszx3YTCXgQ5fYLJKPEgyRxTjbu6ArJcBV384P1iNIN8DAQp6aGDHV5nh MDVi7VphC3hZHGYPwXNh06MDV+62og+c2lXb6DpEp9Kfqn9lqaZS5fXEln9+Vqyf tGbHfP3rdWQxYuy3OrCaWfEKUAE2Y0KdaOpMYLfuyiPNdWreRnztEWB3RYgw/rX8 bC72Xv46iLB/MolqSRgU1OT6WRddtABNcYa98MpfaB9XJBUrAf4uRpR/BNJXlCzG 3t8xvpOuK5DbJjc4mlBIzcEfdOXzIomUClLNiJmS6dQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=UWYa6L 3xNrTqeLtZgTGVhaunhWuw8dTIJzklNZwMjO4=; b=mpyOwkLsr7NfXQr0aU5jNp 2fMuDaKTK7RzYk80JGCOkSup5PvjfFn4ioU0hIp/2M2SRNIjE8HB/hInSs4xlgcZ OUaymUPkMmP2kCC9be7FKAsJUYOgjnxRyk/U19btfCFzyGEpTdhQBBt1zKaWWeHP YRuXWaZjU1OqcasugG09TwOeazWJfwuVAYCHQKTz2/AleHLelkUU+rZ0XBK3e557 oZhjMLwL6B7Wap8YwR2z6wzRCNec/W7xL8sdhPX3YqIBylR2bLHoTNYd+G04bRrb C6lCoFT4XXMnPolHXy57DeMxWbxBLIIlhKeTbSTQpWm+ObQe5pmUnZp8TWrkdzig == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddujedguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheei heegudenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 598911080063; Wed, 10 Mar 2021 03:39:59 -0500 (EST) Date: Wed, 10 Mar 2021 09:39:57 +0100 From: Maxime Ripard To: Evgeny Boger Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 1/2] net: allwinner: reset control support Message-ID: <20210310083957.utmn7twsm2qgksfp@gilmour> References: <20210309012116.2944-1-boger@wirenboard.com> <20210309012116.2944-2-boger@wirenboard.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uizhoovv4z7qhw72" Content-Disposition: inline In-Reply-To: <20210309012116.2944-2-boger@wirenboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uizhoovv4z7qhw72 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Mar 09, 2021 at 04:21:15AM +0300, Evgeny Boger wrote: > R40 (aka V40/A40i/T3) and A10/A20 share the same EMAC IP. > However, on R40 the EMAC is gated by default. >=20 > Signed-off-by: Evgeny Boger > --- > .../net/allwinner,sun4i-a10-emac.yaml | 11 +++- > drivers/net/ethernet/allwinner/sun4i-emac.c | 65 +++++++++++++++++-- > 2 files changed, 70 insertions(+), 6 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-em= ac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.ya= ml > index 8d8560a67abf..27f99372d153 100644 > --- a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > @@ -15,7 +15,12 @@ maintainers: > =20 > properties: > compatible: > - const: allwinner,sun4i-a10-emac > + oneOf: > + - const: allwinner,sun4i-a10-emac > + - const: allwinner,sun4i-r40-emac > + - items: > + - const: allwinner,sun4i-r40-emac > + - const: allwinner,sun4i-a10-emac There's no need to handle the fallback case, it should have either one of the two, not both. The good news is that it simplifies the binding here too, since you can use an enum The DT binding modifications are usually in a separate patch too > =20 > reg: > maxItems: 1 > @@ -30,6 +35,9 @@ properties: > description: Phandle to the device SRAM > $ref: /schemas/types.yaml#/definitions/phandle-array > =20 > + resets: > + maxItems: 1 > + You should make resets required for the R40 compatible too through an if clause. It looks good otherwise, thanks! Maxime --uizhoovv4z7qhw72 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYEiF2AAKCRDj7w1vZxhR xWf+AQCWKzhut6ZPGHD5e8P7IIIhhkd7RuiPg8Dkq0nZaHFZqwEAwH3hAqMwcQ8U GKPOy+EvneB2MZR+8Ry5N/mB9HicQwg= =t6wL -----END PGP SIGNATURE----- --uizhoovv4z7qhw72--