From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8324C433EF for ; Wed, 12 Jan 2022 09:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=N8qk6kFtVlrNuoF+n2tDQAptsNi3rywygi1etRga6ns=; b=ycGTkE0G6w8HbUbp4Uiay/0nD9 TjDrIDWOBYhHgktEAnPtSXJWWkCvyRq2gZiW8C2SmXbzB6UOlcT77SsCjW8XVQAndu1xqBU292UJt PqbnS+gBHxdOFSKfiIe5aWvwroJVAmzZdwkzfq7q8vUqrmKJuUdNsN+dIyafhSSphTZBIWLRzj1As n1gYxyIyAlrZ5kjwD2wViDvuUscT5QvECGrCyxUbls2SU/HZCd3eM8HCf3hhbpD7pS69qmLVT3FyS 8n2tej2H+XIx8MXURQ7+p+JaK/ce55D6Fax4KBf5rjzmm7aBiv1Y4+eDrh2w98OKXOkZHgS+dl+H1 xnNpGSRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7ZYC-001gwE-2I; Wed, 12 Jan 2022 09:04:12 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7ZY5-001gu3-Q5 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jan 2022 09:04:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B86933201DA2; Wed, 12 Jan 2022 04:04:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 12 Jan 2022 04:04:05 -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=fm1; bh=68WX8X8FctVP1QEZxUsXAnNS2XK aGmSjmisp9e4daNI=; b=IJrSnpdpXti7YJOP7eIxqeEvX+3ZrXRt6v+je5PmZEq rI8RjR6lutIZMrEZxTBrMEaevokPGzSC8bN3bWimdsFyIbfe7clE3feCz2tbTMsx bWzAZYi7L6yqKG6QCRtYCG1YsK2yf+ap+YkPne0pW+rzjhVyfovdCY9GIoGqxRZc 9Tteebvoo9vDc2p/t/mveweasK/HlZXhrKaXkjIq1KRWm8x1khKxIxiOplyd6HRv RQGQK4o4E8W6S+dcUlW3gX1LVB6zAMh05jIlTxnqphBVnLRKDaZo8rnYuh8qsWSA M8m3KrGvBSwMAbgWV7PwGJmdkk17Rp+FXwr4SRpU0Lg== 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=fm1; bh=68WX8X 8FctVP1QEZxUsXAnNS2XKaGmSjmisp9e4daNI=; b=hfsqnfX3z3yNmldaZ0Qj1G hXQ2Hzz5Aqi62fcDL5+EIIVyu5un2rl6FtWDI48xv/ksqcI5WyfLWA8Bkl5Kper9 XSOvPE6VeScoig4LjGFKOpked2lU7RxKU+4vH1QjoenhOC3RyZnOhzUQRFRGgiB4 n39Z4ADN9d43SF1Q8TPMPh+BVJGneA7m/4b/bW4v2ffGgEzRF8lQD5yznsBJYa4W uSej/9Igq+yDe6TXT2tXnIKf+5R4Cm6Y3tPI6QTflqT95+M/y6WqeMm9Qtf951jn ZzTfn3eink7yWxISwYWSdnvZ1Nu6aYHmJkFAqnt2NGtZ/obPxtErrjy+IOwb2tOw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudehgedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheei heegudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jan 2022 04:04:03 -0500 (EST) Date: Wed, 12 Jan 2022 10:04:01 +0100 From: Maxime Ripard To: Evgeny Boger Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , linux-sunxi@lists.linux.dev Subject: Re: [PATCH v4 2/3] dt-bindings: net: support for Allwinner R40 EMAC controller Message-ID: <20220112090401.vbwhqudqvdce7jm4@houat> References: <20220111160600.58384-1-boger@wirenboard.com> <20220111160600.58384-3-boger@wirenboard.com> MIME-Version: 1.0 In-Reply-To: <20220111160600.58384-3-boger@wirenboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220112_010405_917341_501EAA90 X-CRM114-Status: GOOD ( 17.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7499099761814924979==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7499099761814924979== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3mwnom3ly27yoktq" Content-Disposition: inline --3mwnom3ly27yoktq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jan 11, 2022 at 07:05:59PM +0300, Evgeny Boger wrote: > R40 and A10/A20 share the same EMAC IP. > However, on R40 the EMAC reset needs to be deasserted first, > so resets property is required. >=20 > Signed-off-by: Evgeny Boger > --- > .../net/allwinner,sun4i-a10-emac.yaml | 20 ++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) >=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..8b38b4e981fe 100644 > --- a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > @@ -15,7 +15,9 @@ maintainers: > =20 > properties: > compatible: > - const: allwinner,sun4i-a10-emac > + enum: > + - allwinner,sun4i-a10-emac > + - allwinner,sun8i-r40-emac > =20 > reg: > maxItems: 1 > @@ -30,6 +32,19 @@ properties: > description: Phandle to the device SRAM > $ref: /schemas/types.yaml#/definitions/phandle-array > =20 > + resets: > + maxItems: 1 > + > +if: > + properties: > + compatible: > + contains: > + const: allwinner,sun8i-r40-emac > + > +then: > + required: > + - resets > + > required: > - compatible > - reg > @@ -42,11 +57,14 @@ unevaluatedProperties: false > =20 > examples: > - | > + #define RST_BUS_EMAC 14 > + > emac: ethernet@1c0b000 { > compatible =3D "allwinner,sun4i-a10-emac"; > reg =3D <0x01c0b000 0x1000>; > interrupts =3D <55>; > clocks =3D <&ahb_gates 17>; > + resets =3D <&ccu RST_BUS_EMAC>; > phy-handle =3D <&phy0>; > allwinner,sram =3D <&emac_sram 1>; > }; The example doesn't make much sense now, since we can't have an A10 controller with the reset line. Either leave it like it was, or create a new example Maxime --3mwnom3ly27yoktq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYd6ZgQAKCRDj7w1vZxhR xYNaAP9HNUbj9DUzDdqjHNgj/j90b2GqVxOLosTGoSrr4zkO2wEAqECKBamWMRw2 v0S0e8gNa+R5IOZdZ7YPSyIVHoVv9gA= =Nu2A -----END PGP SIGNATURE----- --3mwnom3ly27yoktq-- --===============7499099761814924979== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7499099761814924979==--