From: Krzysztof Kozlowski <krzk@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>,
linux-crypto@vger.kernel.org,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S . Miller" <davem@davemloft.net>
Cc: phone-devel@vger.kernel.org, Stefan Hansson <newbyte@disroot.org>,
Lionel Debieve <lionel.debieve@foss.st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v1 1/4] dt-bindings: crypto: Let STM32 define Ux500 CRYP
Date: Wed, 23 Nov 2022 17:13:03 +0100 [thread overview]
Message-ID: <73df18a2-b0d6-72de-37bb-17ba84b54b82@kernel.org> (raw)
In-Reply-To: <20221119221219.1232541-2-linus.walleij@linaro.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 <lionel.debieve@foss.st.com>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> 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 <lionel.debieve@foss.st.com>
>
> 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 <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/reset/stericsson,db8500-prcc-reset.h>
> + #include <dt-bindings/arm/ux500_pm_domains.h>
> + 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
next prev parent reply other threads:[~2022-11-23 16:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 22:12 [PATCH v1 0/4] crypto: stm32 - reuse for Ux500 Linus Walleij
2022-11-19 22:12 ` [PATCH v1 1/4] dt-bindings: crypto: Let STM32 define Ux500 CRYP Linus Walleij
2022-11-23 16:13 ` Krzysztof Kozlowski [this message]
2022-11-23 21:35 ` Linus Walleij
2022-11-24 9:22 ` Krzysztof Kozlowski
2022-11-24 10:29 ` Linus Walleij
2022-11-19 22:12 ` [PATCH v1 2/4] crypto: stm32 - enable drivers to be used on Ux500 Linus Walleij
[not found] ` <b0b346ca-7b47-758a-c9e7-e7fda2b0856b@foss.st.com>
2022-11-21 14:05 ` Linus Walleij
2022-11-19 22:12 ` [PATCH v1 3/4] crypto: stm32/cryp - enable for use with Ux500 Linus Walleij
[not found] ` <8f55596e-12e3-8968-ebe5-e90be38ca5cb@foss.st.com>
2022-11-21 14:07 ` Linus Walleij
2022-11-19 22:12 ` [PATCH v1 4/4] crypto: ux500/cryp - delete driver Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=73df18a2-b0d6-72de-37bb-17ba84b54b82@kernel.org \
--to=krzk@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=linus.walleij@linaro.org \
--cc=linux-crypto@vger.kernel.org \
--cc=lionel.debieve@foss.st.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=newbyte@disroot.org \
--cc=phone-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox