Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7608151rwb; Wed, 23 Nov 2022 08:30:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4fKdkbwEbGBr+g1egw/nKi+qSbpGGKz3tDI80yW2+srUO73YxVwR7QqF3B+0tPwst7nHys X-Received: by 2002:a17:90a:2ec9:b0:213:fa78:6395 with SMTP id h9-20020a17090a2ec900b00213fa786395mr36632281pjs.107.1669221046042; Wed, 23 Nov 2022 08:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669221046; cv=none; d=google.com; s=arc-20160816; b=bR7PjUg/OWn5o09/bW3QAXTMhBnvOkPBxByHr46FSZh37jsD2n02L+30AKqAA/g3zC B/gVvyq0/EnEn8ttTQhie/A4rTf1bRsIZ49aEiTN6muAz3HWxX+Qwby2BGx3uoTYePOc W9/MxB2fxtvx9POBdGOXTlwEqpvayF13zBx60HrmmvaBSTSKwEZ6VYpPo7RD08wJuMdx Vo79/UyF6cF9NP5HSx7hTEQVCl3tal+CJhiEhfdRzozShwyMLXnEQ5BWfD8q/SSAwmzu hmlRzuawDMawJDl6yS65zIovAy4FTlYQzaAmZ+2I92rZUH6hGakU3MJtYD4zpS5clUJv QNTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IVzHLhx8wLVcghPFKFhV+gktXll/Q0u1jts87+svgQY=; b=wA59iLm+GDGcUM4Besg+U8Sd/IWZ2SQvWPC/fcmL+tdl5zgZWdfRAB8r6VsxYcd2sT lmGi/VBymPhouIB2jPUeE7sjdd14aJ2ZAd9lATxxBXJuuyU58MvpCo+mq/5k0Nz0BwD/ Vgd4KYVdui3N66liEbOgSjOCpgBxPTXYvaxsv5ZZYmArhuZfvkYj78ibUNTflDKWZvZv 0Ny+DV4PkHTSfMuqTfoOWdemhQq8816mXQkKJDq2u1zfT+q98gVXy4twYygl7DqDc+Ne yiESNNom1dw1+pH1Y1dU1Mn2ahfeLhiqj2ETFg/7TVjbZvTEamwmOQgFt5Ajqj70RzdM zGbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ds7jJ/VW"; 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 s13-20020a170902ea0d00b00186ef861484si7802084plg.500.2022.11.23.08.30.25; Wed, 23 Nov 2022 08:30:46 -0800 (PST) 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="Ds7jJ/VW"; 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 S239036AbiKWQNL (ORCPT + 99 others); Wed, 23 Nov 2022 11:13:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238875AbiKWQNJ (ORCPT ); Wed, 23 Nov 2022 11:13:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28C26E568; Wed, 23 Nov 2022 08:13:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7D89A61DEA; Wed, 23 Nov 2022 16:13:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 953BFC433D7; Wed, 23 Nov 2022 16:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669219987; bh=fkTjWBvj8eK0AxwkvvHG9qSe5D21CdW6TK2ghXH+FIA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Ds7jJ/VWbrQ9y8JZ/clo3yipZhTq9LfUKAKVRQNXlgmy/pt/crrASGmoEpNkxl99U mCfoIX38/fNVPko1LD8lALY5IWMepHpSpx8kENeNSkXxGMU6NpShIAX1ITTYQjUVSV /KTa32y6jIZwNDGuSJSTU31bTM+vE3/tFYId3JksmOUGHsW9x4z5O/rie5JYhZy7Hn 0+2rj2WUVKq3RDgFi5aLpKeVW8mH6+KUvm+OrNRGEpP6pobJvVffihHWvxB/5N6OGj O9e1SioZYE5dnefv0Kv9HKU++WcgsbR00LXq/+CR2I/EI9ei+XkWacMh64TVTLmb/q FlP1phjivjh5Q== Message-ID: <73df18a2-b0d6-72de-37bb-17ba84b54b82@kernel.org> Date: Wed, 23 Nov 2022 17:13:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v1 1/4] dt-bindings: crypto: Let STM32 define Ux500 CRYP Content-Language: en-US To: Linus Walleij , linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" Cc: phone-devel@vger.kernel.org, Stefan Hansson , Lionel Debieve , Maxime Coquelin , Alexandre Torgue , devicetree@vger.kernel.org References: <20221119221219.1232541-1-linus.walleij@linaro.org> <20221119221219.1232541-2-linus.walleij@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20221119221219.1232541-2-linus.walleij@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 19/11/2022 23:12, Linus Walleij wrote: > This adds device tree bindings for the Ux500 CRYP block > as a compatible in the STM32 CRYP bindings. > > The Ux500 CRYP binding has been used for ages in the kernel > device tree for Ux500 but was never documented, so fill in > the gap by making it a sibling of the STM32 CRYP block, > which is what it is. > > The relationship to the existing STM32 CRYP block is pretty > obvious when looking at the register map, and I have written > patches to reuse the STM32 CRYP driver on the Ux500. > > The two properties added are DMA channels and power domain. > Power domains are a generic SoC feature and the STM32 variant > also has DMA channels. > > Cc: devicetree@vger.kernel.org > Cc: Lionel Debieve > Cc: Maxime Coquelin > Cc: Alexandre Torgue > Signed-off-by: Linus Walleij > --- > This was previously sent out as an open question but > nothing happened, now I send it as part of the STM32 > bindings, in a series making the Linux STM32 driver > use the STM32 driver. > --- > .../bindings/crypto/st,stm32-cryp.yaml | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > diff --git a/Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml b/Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml > index ed23bf94a8e0..69614ab51f81 100644 > --- a/Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml > +++ b/Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml > @@ -6,12 +6,18 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# > > title: STMicroelectronics STM32 CRYP bindings > > +description: The STM32 CRYP block is built on the CRYP block found in > + the STn8820 SoC introduced in 2007, and subsequently used in the U8500 > + SoC in 2010. > + > maintainers: > - Lionel Debieve > > properties: > compatible: > enum: > + - st,stn8820-cryp > + - stericsson,ux500-cryp > - st,stm32f756-cryp > - st,stm32mp1-cryp > > @@ -27,6 +33,19 @@ properties: > resets: > maxItems: 1 > > + dmas: > + items: > + - description: mem2cryp DMA channel > + - description: cryp2mem DMA channel > + > + dma-names: > + items: > + - const: mem2cryp > + - const: cryp2mem > + > + power-domains: > + maxItems: 1 Are these all valid for other variants? > + > required: > - compatible > - reg > @@ -48,4 +67,17 @@ examples: > resets = <&rcc CRYP1_R>; > }; > > + - | > + #include > + #include > + #include > + #include > + cryp@a03cb000 { Drop the example, it's almost the same and difference in one new property does not warrant a new example. Best regards, Krzysztof