Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6268305lki; Thu, 4 Mar 2021 08:51:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxAH2d1FQqaUE8H4X7y3QZss2HJoVjz3lnoH4IigJcENHlgJICsor6ImxFunO9iQXrIn92 X-Received: by 2002:a17:906:1182:: with SMTP id n2mr5332380eja.234.1614876685936; Thu, 04 Mar 2021 08:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614876685; cv=none; d=google.com; s=arc-20160816; b=hi3hGNLfzP32lHU9X66TDHgxCBeiqXZJUvuONZWV+uFKEa7h1KbYmbMroEQBO3qWsj HXJ1qKhYkZtzXIqx682qa5njf2tHlSDaAVD8ypqERFdKQBu3NtAIPeGTm39wok5NGixP hPHts/jMmd/W+aSWpeS4de5HqJh/kT7a9t2g/Xn+bEZzPh+PO1QcA3mfLIjlpJLp6lIx 0NjapXGwkwY5DsqW4eLEFLIzbr0KYzPRYHmX7NNYaDLJNu1Q7mdRMbQoAT5c6BjQPpHh 1ghmCRB38K+/JJsx1zEGjMJMDF9PrA1Wn6sBBYmme1nBSr4OPzdcD95H+uKPii0V/uU0 RXIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:to:from:subject:message-id; bh=KK6LQGhRCrvIiSYa0gugCYspLCdf0KF43lZOSjEVQUM=; b=cSZm26NJkmhfu7Ox4bKuWXNPugz/P8ZanQxnjMoT9itcsSeTFLbw8UPd+NSJrKPrpz +CBs950qQ+u24fJrBemz5j7zgfuUxFWbOp78UaT9e2qlCLJP9t/9w2NgV4hcYfTUKvmQ fGI7L+flRgmpEqbTYXUd+kDOByv+Nd2ah2IKFIFWxYxQjlCkMoh2sO9V6g3oNae3fQ0e tM1L7gYP+3627XnShFTxkknc37NAbu6RxwqStS8Dqh+Wqn2VoHCQGzgto3cV+4TYQ9km Fp7K6WY22HZjr001b4fIOrTTXdibmH4k1kfwcEYD9HCluiEaepLDrdFJYNaAWaZlXqkw srGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 x24si16459337ejs.293.2021.03.04.08.51.00; Thu, 04 Mar 2021 08:51:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240198AbhCDMIt (ORCPT + 99 others); Thu, 4 Mar 2021 07:08:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:53830 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234686AbhCDMIU (ORCPT ); Thu, 4 Mar 2021 07:08:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D80BFAAC5; Thu, 4 Mar 2021 12:07:38 +0000 (UTC) Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: rng: bcm2835: document reset support From: Nicolas Saenz Julienne To: =?ISO-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas , Matt Mackall , Herbert Xu , Rob Herring , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Philipp Zabel , Mark Brown , Guenter Roeck , Bjorn Andersson , =?ISO-8859-1?Q?N=EDcolas?= "F. R. A. Prado" , Rikard Falkeborn , Stefan Wahren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 04 Mar 2021 13:07:36 +0100 In-Reply-To: <20210223170006.29558-2-noltari@gmail.com> References: <20210222194510.14004-1-noltari@gmail.com> <20210223170006.29558-1-noltari@gmail.com> <20210223170006.29558-2-noltari@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-ECKm3qOS91U+uJWquTGZ" User-Agent: Evolution 3.38.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --=-ECKm3qOS91U+uJWquTGZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Alvaro, On Tue, 2021-02-23 at 18:00 +0100, =C3=81lvaro Fern=C3=A1ndez Rojas wrote: > Some devices may need to perform a reset before using the RNG, such as th= e > BCM6368. >=20 > Signed-off-by: =C3=81lvaro Fern=C3=A1ndez Rojas > --- > =C2=A0v3: make resets required if brcm,bcm6368-rng. > =C2=A0v2: document reset support. >=20 > =C2=A0.../devicetree/bindings/rng/brcm,bcm2835.yaml | 17 ++++++++++++++= +++ > =C2=A01 file changed, 17 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml b/Do= cumentation/devicetree/bindings/rng/brcm,bcm2835.yaml > index c147900f9041..11c23e1f6988 100644 > --- a/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml > +++ b/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml > @@ -37,6 +37,21 @@ required: > =C2=A0 >=20 > =C2=A0additionalProperties: false I can't claim I fully understand all the meta stuff in shemas, so I general= ly just follow the patterns already available out there. That said, shoudln't = this be at the end, just before the examples? Maybe the cause of that odd warnin= g you got there? > +if: > + properties: > + compatible: > + enum: > + - brcm,bcm6368-rng > +then: > + properties: > + resets: > + maxItems: 1 > + required: > + - resets I belive you can't really make a property required when the bindings for 'brcm,bcm6368-rng' were already defined. This will break the schema for tho= se otherwise correct devicetrees. > +else: > + properties: > + resets: false > + > =C2=A0examples: > =C2=A0=C2=A0=C2=A0- | > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0rng@7e104000 { > @@ -58,4 +73,6 @@ examples: > =C2=A0 >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0clocks =3D <&periph= _clk 18>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0clock-names =3D "ip= sec"; > + > + resets =3D <&periph_rst 4>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}; Regards, Nicolas --=-ECKm3qOS91U+uJWquTGZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAmBAzYgACgkQlfZmHno8 x/4dVQf+JZcSZkUQMTFgFCfh820ujn+nyaM6c0hQgaTUCslzyj5MXBafaxVb8YQ9 Nt8RP4jv+QcG50qoeIHzu25DghMGv9KvJE9IJ6DJ8ZWOA5OlLN46pq6YkuhFVhgn LODAnXDiAmrFA1/mB6r9sQkZWJUbsIBujImMHvC2Rh2W+/capocznMXAw6Ts1xwW dcxmgjOT1pmm+rFhggzluwGcbcYNPibwo16mRc1Gft7K/IrLxus+ySJ4eutSWDKt hU8iD92fuYKwlCJzvpLnEo2nUAA20Y9knhzyX/ah0rm3R6f8nVFU/lR2s/WCkCwF X6OFwW541Y94/FDEWOPXENCdl9sLVw== =BoaX -----END PGP SIGNATURE----- --=-ECKm3qOS91U+uJWquTGZ--