From: Gatien CHEVALLIER <gatien.chevallier@foss.st.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Olivia Mackall <olivia@selenic.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Lionel Debieve <lionel.debieve@foss.st.com>,
<linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 10/10] ARM: dts: stm32: add RNG node for STM32MP13x platforms
Date: Wed, 13 Sep 2023 09:52:36 +0200 [thread overview]
Message-ID: <abd1db1b-7cdb-177b-7995-23f500597155@foss.st.com> (raw)
In-Reply-To: <327ff0b3-21c9-1452-af1b-e9b6ece52924@linaro.org>
On 9/12/23 16:38, Krzysztof Kozlowski wrote:
> On 11/09/2023 14:02, Gatien Chevallier wrote:
>> The RNG on STM32MP13 offers upgrades like customization of its
>> configuration and the conditional reset.
>>
>> The hardware RNG should be managed in the secure world for but it
>> is supported on Linux. Therefore, is it not default enabled.
>>
>> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
>> ---
>> arch/arm/boot/dts/st/stm32mp131.dtsi | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/stm32mp131.dtsi
>> index ac90fcbf0c09..39db82b782eb 100644
>> --- a/arch/arm/boot/dts/st/stm32mp131.dtsi
>> +++ b/arch/arm/boot/dts/st/stm32mp131.dtsi
>> @@ -1220,6 +1220,14 @@ mdma: dma-controller@58000000 {
>> dma-requests = <48>;
>> };
>>
>> + rng: rng@54004000 {
>> + compatible = "st,stm32mp13-rng";
>> + reg = <0x54004000 0x400>;
>> + clocks = <&rcc RNG1_K>;
>> + resets = <&rcc RNG1_R>;
>> + status = "disabled";
>
> Why? What other resources are missing?
>
> Best regards,
> Krzysztof
>
Hello Krzysztof,
Our default implementation is to handle the RNG in OP-TEE for
these platforms. Therefore, it goes through optee-rng driver.
The RNG services are exposed by a PTA (Pseudo Trusted Application)
in OP-TEE. In this case, there's no need to enable the RNG node
in the Linux Kernel.
Best regards,
Gatien
prev parent reply other threads:[~2023-09-13 7:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 12:01 [PATCH v2 00/10] hwrng: stm32: support STM32MP13x platforms Gatien Chevallier
2023-09-11 12:01 ` [PATCH v2 01/10] dt-bindings: rng: introduce new compatible for STM32MP13x Gatien Chevallier
2023-09-12 14:29 ` Rob Herring
2023-09-11 12:01 ` [PATCH v2 02/10] hwrng: stm32 - use devm_platform_get_and_ioremap_resource() API Gatien Chevallier
2023-09-11 12:01 ` [PATCH v2 03/10] hwrng: stm32 - implement STM32MP13x support Gatien Chevallier
2023-09-11 12:01 ` [PATCH v2 04/10] hwrng: stm32 - implement error concealment Gatien Chevallier
2023-09-11 12:01 ` [PATCH v2 05/10] hwrng: stm32 - rework error handling in stm32_rng_read() Gatien Chevallier
2023-09-11 12:01 ` [PATCH v2 06/10] hwrng: stm32 - restrain RNG noise source clock Gatien Chevallier
2023-09-11 12:02 ` [PATCH v2 07/10] dt-bindings: rng: add st,rng-lock-conf Gatien Chevallier
2023-09-12 14:38 ` Krzysztof Kozlowski
2023-09-13 7:48 ` Gatien CHEVALLIER
2023-09-13 7:58 ` Krzysztof Kozlowski
2023-09-11 12:02 ` [PATCH v2 08/10] hwrng: stm32 - support RNG configuration locking mechanism Gatien Chevallier
2023-09-11 12:02 ` [PATCH v2 09/10] hwrng: stm32 - rework power management sequences Gatien Chevallier
2023-09-12 12:45 ` kernel test robot
2023-09-11 12:02 ` [PATCH v2 10/10] ARM: dts: stm32: add RNG node for STM32MP13x platforms Gatien Chevallier
2023-09-12 14:38 ` Krzysztof Kozlowski
2023-09-13 7:52 ` Gatien CHEVALLIER [this message]
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=abd1db1b-7cdb-177b-7995-23f500597155@foss.st.com \
--to=gatien.chevallier@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=lionel.debieve@foss.st.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=olivia@selenic.com \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).