Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp489532rdb; Thu, 15 Feb 2024 06:28:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEEJRmhV8z3udLRimFBXY233nf9tT7z23K7/6fZuvGNH5K6zY7uYAkGWAwodQgb0SFwuflxDVCCshm4CpBWqmgmyG7wfiRw2rfH+HNug== X-Google-Smtp-Source: AGHT+IGYYO+YVZFl6TDabVCXEFOVMjd3ZljB47Y879atYba+76XeQg0IgurYQyKPddhA/fVXJcdl X-Received: by 2002:a05:6402:1502:b0:562:80:fe95 with SMTP id f2-20020a056402150200b005620080fe95mr1421645edw.39.1708007332698; Thu, 15 Feb 2024 06:28:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708007332; cv=pass; d=google.com; s=arc-20160816; b=ulWeq+Bc+FE5m2+21izRkfiXWvMzq5VYSEhNwk+wXLjqNFdj5uScQvBUHPo8dilk7n ZggF/rV7+SeVkZtfoN7P53fXVlzX/ezYTAWpJm3wjWXWnsxKTtDip3pwyD2dE6Clf0kL jV7rgOGXdKSdcaKwdlUUi0OmGpoXY9u/Z5mTnHAKvk32kXxG63g2ErA2fpf9gPKaGu2Y NOG3C7vF9XwJTuVui+zTSxwCkn6UcmNOLLTx+xd+6+ht0Y9hx+nEG1zV4caR7YkCa7WD HmmrOE39YATzouYtytyAVceQMKJRCvJe7oft+284ZFaIbFI1tdGgEvMOYzdr8puU9ph9 TqYw== 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=NK/qygKXyw6ySu9Tj970mnlOWSBsjNc6BGvWhcInvDU=; fh=Ek7PdR4vOXQi8FYjhXUzgJguHGoLl9e1nVd3Wvm1EyE=; b=oATB3FruPgL1OhU5PRohhcXahQudJ3OHfn3yT0DvdBhbP0Miqq1ZoWgCJRr+2zX4PW AZxJBtEnu9pgzW0BbjeVYh+/w+jXBL6yujnXHFoGUS2HHMpWSJL4MDYV5hRSqhvyxOLp M1EHsty6zvBLN3YyYC7kqpc5h6V+JL3BYvElXBDNn7sx45YS9+udAtU3WEp5Kpf/COj/ JAw87Ju2cluS70fW9w+PHUEMVIV0xWd3wIL0RYvJU9ops1PTV11q7RPVpbn4tLqDfEvC QtXIiFWr0gU5E9mPbsb6O/ehSgKAhgz8XAMksT+xr0DZodO6bfAcVGmeByETeZV6w8eg js0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OnwrRn4Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2086-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j14-20020a05640211ce00b00563b9749b04si475954edw.611.2024.02.15.06.28.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OnwrRn4Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2086-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 6A4BD1F24CA6 for ; Thu, 15 Feb 2024 14:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0E24131E49; Thu, 15 Feb 2024 14:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OnwrRn4Y" 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 7B60612EBD4; Thu, 15 Feb 2024 14:28:46 +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=1708007326; cv=none; b=u30p8pQX03dMvqSdJhso4nUsfJpXQ23dY/2XVNU4SCIx34TIbCTrhEra8X4dr0oGOIGtfqKYXHJKawevDdN7jNpV1+WAo4w+y3yw5KagJOMrnhCTISx2zPPbp2F3H3NaZtOIK0CXkmRgYviKp4Uc7p/eBRQGprkKZkTDtSVeAc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708007326; c=relaxed/simple; bh=Wf73cxr87GHpuYxipFrmEqJpur94FjNtOwVM6tDrmHM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HRLr7rJjfijgw+w7PVkcU79G29YuH2IsIldHhMcnAVGDEIyAySYcQRjJwSCqPwbnzoJfip4iicuvT9YIchdfCTDOxi23kRykeqk2HX0CUzACW/jqjS9kO5GRp8+g9tet7hFdTRcyZE9mRYr/DmAbE8uDlSUQpLYiN3Vumjw+wEE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OnwrRn4Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0E47C433F1; Thu, 15 Feb 2024 14:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708007326; bh=Wf73cxr87GHpuYxipFrmEqJpur94FjNtOwVM6tDrmHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OnwrRn4YKZaN4o1RuqeBymMAMru8kHE4Q7Da3aedo1qE+afwhoWtdDqJtOIdPWKgw gQvyrUrqgOnWGPZ8/Qgu959Z3QHSL8emHdN4LSum5F2q+AOImwwJWUtxDRwS/V6NFt IOIjYalS6OCk1hpZ9ib+aTK9CXfLC7i9svg2cimI9AZ5Gn9rA5fOZtr0PsWyDtAb9e UP6WsTWcu0klLjyEGsrTOgn4OZeKLWmwxP0PEvgDQra4BCCDFE9lbdwG8ex0YOlxoi FGFl2LjoTrW3gTrV2auku35SWYgHg/5nMzk9odSNesFJDa+gvBenTcg0Pwvd5a6wi6 rr5Vo/HIhkmvw== Date: Thu, 15 Feb 2024 08:28:36 -0600 From: Rob Herring To: Alexey Romanov Cc: neil.armstrong@linaro.org, clabbe@baylibre.com, herbert@gondor.apana.org.au, davem@davemloft.net, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, vadim.fedorenko@linux.dev, linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@salutedevices.com Subject: Re: [PATCH v4 16/20] dt-bindings: crypto: meson: support new SoC's Message-ID: <20240215142836.GA1186-robh@kernel.org> References: <20240212135108.549755-1-avromanov@salutedevices.com> <20240212135108.549755-17-avromanov@salutedevices.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: <20240212135108.549755-17-avromanov@salutedevices.com> On Mon, Feb 12, 2024 at 04:51:04PM +0300, Alexey Romanov wrote: > Now crypto module available at G12A/G12B/S4/A1/SM1/AXG. > > 1. Add new compatibles: > - amlogic,g12a-crypto > - amlogic,s4-crypto (uses g12a-crypto as fallback) > - amlogic,a1-crypto (uses g12a-crypto as fallback) > - amlogic,axg-crypto > > 2. All SoC's, exclude GXL, doesn't take a clock input for > Crypto IP. Make it required only for amlogic,gxl-crypto. > > 3. All SoC's, exclude GXL, uses only one interrupt flow > for Crypto IP. > > 4. Add power-domains in schema. > > Signed-off-by: Alexey Romanov > --- > .../bindings/crypto/amlogic,gxl-crypto.yaml | 43 ++++++++++++++++--- > 1 file changed, 36 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml > index 948e11ebe4ee..41f0153d58c8 100644 > --- a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml > +++ b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml > @@ -11,20 +11,30 @@ maintainers: > > properties: > compatible: > - items: > - - const: amlogic,gxl-crypto > + oneOf: > + - items: > + - enum: > + - amlogic,a1-crypto > + - amlogic,s4-crypto > + - const: amlogic,g12a-crypto > + - enum: > + - amlogic,gxl-crypto > + - amlogic,axg-crypto > + - amlogic,g12a-crypto > > reg: > maxItems: 1 > > interrupts: > - items: > - - description: Interrupt for flow 0 > - - description: Interrupt for flow 1 > + minItems: 1 > + maxItems: 2 Just keep the descrptions here and add 'minItems: 1'. Then in the if/then schema, you only need minItems and maxItems to require 1 or 2 interrupts. > > clocks: > maxItems: 1 > > + power-domains: > + maxItems: 1 > + > clock-names: > const: blkmv > > @@ -32,8 +42,27 @@ required: > - compatible > - reg > - interrupts > - - clocks > - - clock-names New chips work without clocks? Cool! Rob