Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2217147rdb; Mon, 11 Sep 2023 14:56:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQpX+T2eB+dLywz9N97bKNhhxz0bHf9XRT9jriDHmYXzu8ZdfzSvbyV6XiYpEUeJws32J4 X-Received: by 2002:a05:6a21:99a2:b0:13d:df16:cf29 with SMTP id ve34-20020a056a2199a200b0013ddf16cf29mr11658355pzb.15.1694469392988; Mon, 11 Sep 2023 14:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694469392; cv=none; d=google.com; s=arc-20160816; b=PRKwcxEoEBDkXwESyK/LsmRfWxXVJSYYrTS+FPWS+KTBsLOHHtgtFHfqUJKKjcuyo1 pLmtP9ytIK3DIjZ13NxT+ezFJ9dr2Ez1bcLNJDTdo9Mj1glYBQoYBwb2DzudBIrR/IxA zruLR/qr/Ea+8HhuaLn1RbkGoIvahF3abCH4oWm+ZDi5RDaFAWwF+rTKFMRVYR/trfdB 4Rw4/7kNTefW/snVHskl8hevJyZXEgWFGPmD34I9xu7dWUCzCm9nYt8hIjEvw1a1bkT0 ftxZjIO8ViZ1KgBAfobhn7wHdeazstU+tSNGleEZYjEAMUuTTUCwpE39//sKiiuXOmDt Eq4g== 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; bh=+xF5w41psGLBcpMJheg89QPDOnVa5C8VKyV8ssnG1ds=; fh=tS36TT5tfPGHjWdRg27iw2EQgiYLLsFmBguCq3e3HZs=; b=aqTxQD+u/BSJ195pZH3f6hwdvPoj8EUw0DQSNxU2yXWYsYQtnZlUgdfYPbpPp2cJNn t3oun8izlYljiBiZqVDG+A1Sfj/alPGK+se6fRLMdkU39czuUTeFL0iKAm8dNdz6tqIv 5vKk19Jn0bVg68ItVCwoNW15wh9laURdRwQvQIDJHDFVlavQUyhy+Dw4RmGe+TyYza8F rzoz+9BJuKKzj6npD6CkVZpsveFejPnHHgT+zjcq50czTVLNF2ecwAoJkzmCTh4/G8vD FLNzwqmA8hP7gwul9RHFmoOhsDWYOpueW6N+zvffSsv7kx8kbZCAs424gQ6Jz1bZsnfg JOEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XWCISGVQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd25-20020a056a002e9900b0068fad24a32csi4212725pfb.27.2023.09.11.14.56.19; Mon, 11 Sep 2023 14:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XWCISGVQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S1353884AbjIKVvW (ORCPT + 99 others); Mon, 11 Sep 2023 17:51:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241503AbjIKPKF (ORCPT ); Mon, 11 Sep 2023 11:10:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C4FFA; Mon, 11 Sep 2023 08:10:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2B2AC433CA; Mon, 11 Sep 2023 15:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694445000; bh=HBK913hbzSRgMTx4gQeXjHRhatWJrh9efNenYNX4HvE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XWCISGVQTm+q4IZ0aIgoiBhr0vMMgWqKcq6/4A/0XFK+f8gvISxV56VsG3PCFFdB3 cHEqBxscq6koa28/cAEzJ6KRNdbzw/LVspl2gBCvYdKsn5a7J88Mgh3Pc0a2z2h/CA 5tQAZG0VuwL+hM48f0osvnjm2G8rPdX/6HDIwNaxBuFiKn5ayFZvfKx3+CZplth6ul 9uJc2Y4QxOfr8ygilTH2YRDGpyL5Sfwa+coHnnMNJAl7b06sGk+LC10jduURemQV5L VsC56QP3mubqcxk9J+tnfVHXhZLNTSH1L0E2PEAH0+IA+gq5k5YQD23IKYygQ54Z5w yRRhLWeX0mr3g== Received: (nullmailer pid 1259085 invoked by uid 1000); Mon, 11 Sep 2023 15:09:58 -0000 Date: Mon, 11 Sep 2023 10:09:58 -0500 From: Rob Herring To: Gatien Chevallier Cc: Olivia Mackall , Herbert Xu , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Lionel Debieve , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/10] dt-bindings: rng: add st,rng-lock-conf Message-ID: <20230911150958.GA1255978-robh@kernel.org> References: <20230908165120.730867-1-gatien.chevallier@foss.st.com> <20230908165120.730867-8-gatien.chevallier@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230908165120.730867-8-gatien.chevallier@foss.st.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Sep 08, 2023 at 06:51:17PM +0200, Gatien Chevallier wrote: > If st,rng-lock-conf is set, the RNG configuration in RNG_CR, RNG_HTCR > and RNG_NSCR will be locked. It is supported starting from the RNG > version present in the STM32MP13 This should be squashed into the prior binding patch. > > Signed-off-by: Gatien Chevallier > --- > .../devicetree/bindings/rng/st,stm32-rng.yaml | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rng/st,stm32-rng.yaml b/Documentation/devicetree/bindings/rng/st,stm32-rng.yaml > index 59abdc85a9fb..0055f14a8e3f 100644 > --- a/Documentation/devicetree/bindings/rng/st,stm32-rng.yaml > +++ b/Documentation/devicetree/bindings/rng/st,stm32-rng.yaml > @@ -37,6 +37,20 @@ required: > - reg > - clocks > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - st,stm32mp13-rng > + then: > + properties: > + st,rng-lock-conf: > + type: boolean > + description: If set, the RNG configuration in RNG_CR, RNG_HTCR and > + RNG_NSCR will be locked. Define the property at the top-level and then restrict its presence in a if/then schema. > + > additionalProperties: false Did you test this property is allowed? No, because additionalProperties won't work with properties defined in if/then schemas. > > examples: > -- > 2.25.1 >