Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2635084rbb; Wed, 28 Feb 2024 07:57:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWn2GhSS3PzhBMQ3m+vLREaZJ0RtCTr7puTpMVBf0U9JcqsWm8s/IkrD/dCElRFpjSGbRNlk4MCv9G9v59Q1pNXldUFZtQ2kbwbz/YIuw== X-Google-Smtp-Source: AGHT+IFi7NisGlV6SuHAlmIDGiVKMlGIy6ccgYUE6dtNXJfrOBakR9mVc98r7JA6fTuijtt4MqCs X-Received: by 2002:a17:906:3611:b0:a3f:252e:c245 with SMTP id q17-20020a170906361100b00a3f252ec245mr90170ejb.8.1709135841914; Wed, 28 Feb 2024 07:57:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709135841; cv=pass; d=google.com; s=arc-20160816; b=ATcI5QyJ0MdKbn/ygPVoMQaiwAuvhWPI+pW9Y89EudvqX4MfQAcF7YJtYmXZlKk/g1 NL5f6057z9c+Jx9toNkKTyjwdTJvlkyYRBljoRG8KWs/J80BMqNbXZ91k9DIJ1rxMFhD jDg3WWFzhYiCgAybN0/YCRIgYf55cMgYpmVH46AG3AOGUKWspFQOW7ELkl/psH0mzHVU 3OrIJ0GZo4cnw7NIotdam2YBiopW7R1Y1GVRs3RWia4GJs5W5ZrUxp8TnsVaMtp5mEau pZQp11TWNOHlyyjxBTRq8JHnY7/i/hF1oZeKjZ47sYjdVJgSC+vNEWuLkxv2bRJBbyD4 nxGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UxRPzkcAdqRhr+q3GUmND7zgBbtaiPfeNC+pMLsWXZ4=; fh=GxYrcl5xgYO+pci+EJECKgJnp8hT7c6Ouidu2rNBkOg=; b=QfHl+ty3f4Agu5lpzgupA3Gmrh6zHrX+cioaYxBcflPHiLz6Z7ZNNTogpbCXBcQlHf GV73BEX7heuPugJc6b77GvaMnOUnrq8LKkC8oxaojnsfP6k1RXObwAG6eaBiLsvZ5LMH 2wKXKmeL+VvVp9bQ7jFh1ezCDeFYCUxG1DdNxH08R6n0MzpHsLb7K47Ly2ba+mDvvnWm F3OxJ+uDqDKN0tBm4WqGVzCEnFZycy5H65nWy19sZyowNldKj2SJPvIP5S45w5/vAGBW GpiCJbVB8B06U9GNaeQPt9OPAJKJl3fXwozyAqsmxlO/gW0jXvAd6bCULZQRhojd8/aH jC+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JyAE0/Wu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bg11-20020a170906a04b00b00a3f9d699753si1838788ejb.70.2024.02.28.07.57.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:57:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JyAE0/Wu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7F82A1F2D50B for ; Wed, 28 Feb 2024 15:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E8415CD67; Wed, 28 Feb 2024 15:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JyAE0/Wu" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D6FD1552F8; Wed, 28 Feb 2024 15:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709135475; cv=none; b=ndByAyrv1VhwLbyiszy4VLQRQUvYlP6Rn1+P9ol76zpRAv0qIGxa5prB+OWlEPg7WTIDt7JohXv3fJJE27L7DRzi6v0xbsnxTW9jqpVFO0l/Rg0qWignqs3g2EAwBrRqjlj+chLGX5XYoKAviHma4PC1+thReBrSBByxdKMK1vI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709135475; c=relaxed/simple; bh=bBANsiX1oqnfELIhJ2Ldb94oj+2VzQup9IpDxs0eqNw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HYBP2pCt7YDu1QXovGj5wov9YnabGCl6r1DkSmyKQdWt4vGxoIYZPWqbWzUJxIZVejLqpebEVZ+2VCiXBQN8uAQW0sXD4+uJ1Z5Qmzb+bJ7Kq/MQ1I+gHtwTjUL9otkxCKkWTX8QxPdNJEU+XUKV9Fj++iK5RBs2G+KGgotK4ZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JyAE0/Wu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04038C433C7; Wed, 28 Feb 2024 15:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709135475; bh=bBANsiX1oqnfELIhJ2Ldb94oj+2VzQup9IpDxs0eqNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JyAE0/WuLiyanl4AqhvdmoyyCs6ZyNSZ7MlqNMRQ5+1IIOffTm+eRgtri2sd4+agA S0jcKZcceEDROliTshY9ZBYADM2jMCpCf7wMwt6Vx5tNXUmhtlB77aMHxihfG7HyWo c1zJ/pwFSjLzL1hAT+lSzVv04nlummiIM5VUBzmQf/AMtYEpY+coMS7LAHH9bSRelg XKsCvVm/XYCPEKtm9Zry30vkB2cA+s2MWEOvwzBMPsq6Da8wMXnI82sy14QsDzG147 Ep2zWHqwrFN5Rf38qfZqFtSLM3vODS7ClRt8v9wFejRW8w8KfAVDUjPwO2JXV7FFRQ uNJAHrnwhI7AQ== Date: Wed, 28 Feb 2024 09:51:12 -0600 From: Rob Herring To: Jia Jie Ho Cc: Herbert Xu , "David S . Miller" , Krzysztof Kozlowski , Conor Dooley , Eugeniy Paltsev , Vinod Koul , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH v3 1/6] dt-bindings: crypto: starfive: Add jh8100 support Message-ID: <20240228155112.GA4059153-robh@kernel.org> References: <20240227163758.198133-1-jiajie.ho@starfivetech.com> <20240227163758.198133-2-jiajie.ho@starfivetech.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240227163758.198133-2-jiajie.ho@starfivetech.com> On Wed, Feb 28, 2024 at 12:37:53AM +0800, Jia Jie Ho wrote: > Add compatible string and additional interrupt for StarFive JH8100 > crypto engine. > > Signed-off-by: Jia Jie Ho > --- > .../crypto/starfive,jh7110-crypto.yaml | 30 +++++++++++++++++-- > 1 file changed, 28 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml > index 71a2876bd6e4..d44d77908966 100644 > --- a/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml > +++ b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml > @@ -12,7 +12,9 @@ maintainers: > > properties: > compatible: > - const: starfive,jh7110-crypto > + enum: > + - starfive,jh8100-crypto > + - starfive,jh7110-crypto > > reg: > maxItems: 1 > @@ -28,7 +30,10 @@ properties: > - const: ahb > > interrupts: > - maxItems: 1 > + minItems: 1 > + items: > + - description: SHA2 module irq > + - description: SM3 module irq > > resets: > maxItems: 1 > @@ -54,6 +59,27 @@ required: > > additionalProperties: false > > +allOf: > + - if: > + properties: > + compatible: > + const: starfive,jh7110-crypto > + > + then: > + properties: > + interrupts: > + maxItems: 1 > + > + - if: > + properties: > + compatible: > + const: starfive,jh8100-crypto > + > + then: > + properties: > + interrupts: > + maxItems: 2 This is already the max. Don't you want 'minItems: 2'? > + > examples: > - | > crypto: crypto@16000000 { > -- > 2.34.1 >