Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3998977ybg; Fri, 25 Oct 2019 11:53:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqIDP5VOr3UzACJEgu1irmJ/FUH1PdG32VLymJT7EYherBBe8z5xJotNRAvnipBsTHMGMX X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr5733254eds.138.1572029635042; Fri, 25 Oct 2019 11:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029635; cv=none; d=google.com; s=arc-20160816; b=lc3+WqVyzEkgrfL/qc181uKSzdQObzxGrOMH8Z1acaUFsF2b6L7fuy7sopo9Cc7wvn kkqriWjoIrVZc/YZocAGoRcGXsAjjTjxoFu+gwFo66HTMA0yi/UcWpJFej2Fm6xI6+jv WQJ/4t/UA3T38opSTfEhH6r2Jwl7lWsn/U0MccheZc8oTeb1beQMD5EJyKzTP9/LxOEZ 6lNBhG3IlC5clOiaAe4uYK4V38Vf9s3fIhJV6ZkLd+niD0M7rjKeXXXRGgxW1zps5pwt I6HoDC3r23qu3/o8WJPNP8NdwKISsA021uvAiOZohyxim6PjVn7Pw4G7HgcgNga5/XCc pu8g== 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:dkim-signature; bh=/yEoVUsw2JJPZ8OmcoTCYf32PC4GjGlQJ2F5Lccjr5g=; b=eSWOZBmIVL0BT2HuHdE34U8GYLhZiXfOy1SNqPTzlpmsfeK4NGlNEKDkiId5v9ZT0h WU7HxqY1SiSArL6asYkxsPpBAkP3ZDJ0CnsE0inP+3puYStSjNWkYH/f8RsV+akOmKRb rMbvZQ2tFnWC4BdqyOecoUBq+0Bvz0rJPdXpVT4ADzZAcHKBSdeut0P+jUyYOqgiWot5 AXPgbAgc+e7IXoi96KVHJzNciDz6YFHXlQ4UWTl7Jtg31AtIlIOXLYnSal5HpO2aS7gD DCqOcW7vkgUbpWMfxUt2TrvixIKCLIExIB1Rp8DG4SQzTYgHvoLVoo9m60i8NfQ+vMQ4 dUNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WcOVK2Mo; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si2109202eds.217.2019.10.25.11.53.22; Fri, 25 Oct 2019 11:53:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WcOVK2Mo; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 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 S2394158AbfJXS7s (ORCPT + 99 others); Thu, 24 Oct 2019 14:59:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:40846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390034AbfJXS7r (ORCPT ); Thu, 24 Oct 2019 14:59:47 -0400 Received: from localhost (unknown [109.190.253.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E6C42166E; Thu, 24 Oct 2019 18:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571943587; bh=a+uIvZuoQVHuTrFvBOzthw/TKu6zM/j2cbpgzHnS7NU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WcOVK2MoQPmQQSsCISXcIBuI7zyFW7PCPi3sEWyZrvsujyJU9KqXd8Lz9FuUcEycP LovoXS6q0NzSjx0T9bwgKdiO0D2IdOC+9eCmPibS/8rcntyqRQWHweq3RvmcIYOhW0 RouTokS1q8E5knnKBp9KdlV/2jWAkeeZMIoYyjos= Date: Thu, 24 Oct 2019 20:24:05 +0200 From: Maxime Ripard To: Corentin Labbe Cc: davem@davemloft.net, herbert@gondor.apana.org.au, mark.rutland@arm.com, robh+dt@kernel.org, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System Message-ID: <20191024182405.a4x5vc4hxwsev2hp@hendrix> References: <20191023201016.26195-1-clabbe.montjoie@gmail.com> <20191023201016.26195-3-clabbe.montjoie@gmail.com> <20191024065005.hdypdl2dgqsrry5i@gilmour> <20191024093118.GA15113@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024093118.GA15113@Red> User-Agent: NeoMutt/20180716 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Oct 24, 2019 at 11:31:18AM +0200, Corentin Labbe wrote: > On Thu, Oct 24, 2019 at 08:50:05AM +0200, Maxime Ripard wrote: > > Hi, > > > > On Wed, Oct 23, 2019 at 10:10:14PM +0200, Corentin Labbe wrote: > > > This patch adds documentation for Device-Tree bindings of the > > > Security System cryptographic offloader driver. > > > > > > Signed-off-by: Corentin Labbe > > > --- > > > .../bindings/crypto/allwinner,sun8i-ss.yaml | 64 +++++++++++++++++++ > > > 1 file changed, 64 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml > > > new file mode 100644 > > > index 000000000000..99b7736975bc > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml > > > @@ -0,0 +1,64 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/crypto/allwinner,sun8i-ss.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Allwinner Security System v2 driver > > > + > > > +maintainers: > > > + - Corentin Labbe > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - allwinner,sun8i-a83t-crypto > > > + - allwinner,sun9i-a80-crypto > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + interrupts: > > > + maxItems: 1 > > > + > > > + clocks: > > > + items: > > > + - description: Bus clock > > > + - description: Module clock > > > + > > > + clock-names: > > > + items: > > > + - const: bus > > > + - const: mod > > > + > > > + resets: > > > + maxItems: 1 > > > > The A83t at least has a reset line, so please make a condition to have > > it required. > > > > Hello > > The A80 have one also, so I need to set minItems: 1 > But setting both minItems: 1 and maxItems:1 lead to a check failure: > > properties:resets: {'minItems': 1, 'maxItems': 1} is not valid under > any of the given schemas > > How to do that ? IIRC the meta-schema prevent having both because the tooling will insert it for you. It doesn't really matter at this level though. maxItems alone will make sure that there's a single element, and the schemas in the tools will make sure that the type for resets is correct. What you'd need here though would be to add resets to the list of required properties, otherwise it will only be checked against if the property is there.