From: Krzysztof Kozlowski <krzk@kernel.org>
To: Gatien Chevallier <gatien.chevallier@foss.st.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: 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 1/7] dt-bindings: soc: st: document the RISAB firewall peripheral
Date: Tue, 10 Feb 2026 08:57:28 +0100 [thread overview]
Message-ID: <ee9759a6-1779-4891-8716-24c36134198a@kernel.org> (raw)
In-Reply-To: <20260209-stm32_risab-v1-1-ef0b2b6a7e0a@foss.st.com>
On 09/02/2026 15:59, Gatien Chevallier wrote:
> Add documentation on the RISAB peripheral that is a memory firewall on
What is RISAB? It's in capitals, so some sort of acronym?
> the stm32mp2x platforms.
>
> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
> ---
> .../bindings/soc/st/st,stm32mp25-risab.yaml | 74 ++++++++++++++++++++++
soc is not a dumping ground. Find suitable subsystem for it.
> MAINTAINERS | 5 ++
> 2 files changed, 79 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/soc/st/st,stm32mp25-risab.yaml b/Documentation/devicetree/bindings/soc/st/st,stm32mp25-risab.yaml
> new file mode 100644
> index 000000000000..d05a683c594d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/st/st,stm32mp25-risab.yaml
> @@ -0,0 +1,74 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/st/st,stm32mp25-risab.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STM32 Resource isolation peripheral unit for address space protection
> + (block-based)
So maybe here would be RISAB explanation... Use proper capital lettes in
the title (e.g. AP or Chicago style, I don't think we do any preference
or consistency, especially that most of us including myself don't even
know the difference).
> +
> +maintainers:
> + - Gatien Chevallier <gatien.chevallier@foss.st.com>
> +
> +description:
> + The RIF (resource isolation framework) is a comprehensive set of hardware
> + blocks designed to enforce and manage isolation of STM32 hardware resources,
> + like memory and peripherals. The RISAB peripheral is part of the RIF and is
> + used to protect internal RAMs by applying access rights per RISAB fixed-size
> + page. Through RISAB registers, a trusted domain, or the domain to whom the
> + page configuration has been delegated, assigns memory pages to one or more
> + security domains (secure, privilege, compartment).
> +
> +properties:
> + compatible:
> + const: st,stm32mp25-risab
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: RISAB bus clock
> +
> + memory-region:
> + minItems: 1
> + maxItems: 32
> + description:
> + Phandle to nodes describing memory regions to be configured in the RISAB
> + by the trusted domain of at least a RISAB page size.
> + These regions cannot overlap. A zone must be within st,mem-map range and
> + can be represented by one or more pages.
> +
> + st,mem-map:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + description: Memory address range covered by the RISAB.
> + items:
> + - description: Memory range base address
> + - description: Memory range size
Why do you need this property if you have memory-region already? This
also should be part of <reg>, although this mixing with memory-region is
anyway confusing.
> +
> + st,srwiad:
> + description:
> + When set, the trusted domain configures the RISAB to allow secure
> + read/write data accesses to non-secure blocks and pages. Secure execute
> + remains illegal.
> + type: boolean
Shouldn't this be a property of given block from memory-regions, not
entire RISAB?
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - st,mem-map
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/st,stm32mp25-rcc.h>
> +
> + risab1: risab@420f0000 {
Drop unused label.
> + compatible = "st,stm32mp25-risab";
> + reg = <0x420f0000 0x1000>;
> + clocks = <&rcc CK_ICN_LS_MCU>;
> + st,mem-map = <0xa000000 0x20000>;
> + st,srwiad;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index e08767323763..b9a1276e94a9 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -25092,6 +25092,11 @@ F: Documentation/arch/arm/stm32/stm32-dma-mdma-chaining.rst
> F: Documentation/devicetree/bindings/dma/stm32/
> F: drivers/dma/stm32/
>
> +STM32 SoC FIREWALL DRIVERS
s/SoC/SOC/
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-02-10 7:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 14:59 [PATCH 0/7] soc: st: add RISAB dump debug driver Gatien Chevallier
2026-02-09 14:59 ` [PATCH 1/7] dt-bindings: soc: st: document the RISAB firewall peripheral Gatien Chevallier
2026-02-10 7:57 ` Krzysztof Kozlowski [this message]
2026-02-10 9:55 ` Gatien CHEVALLIER
2026-02-13 15:06 ` Krzysztof Kozlowski
2026-02-17 13:12 ` Gatien CHEVALLIER
2026-02-17 20:06 ` Krzysztof Kozlowski
2026-02-18 10:38 ` Gatien CHEVALLIER
2026-02-18 20:03 ` Krzysztof Kozlowski
2026-02-19 14:02 ` Gatien CHEVALLIER
2026-02-26 18:13 ` Krzysztof Kozlowski
2026-03-02 15:09 ` Gatien CHEVALLIER
2026-03-06 8:33 ` Gatien CHEVALLIER
2026-02-09 14:59 ` [PATCH 2/7] soc: st: add RISAB dump debug driver Gatien Chevallier
2026-02-10 7:50 ` Krzysztof Kozlowski
2026-02-10 9:57 ` Gatien CHEVALLIER
2026-02-09 14:59 ` [PATCH 3/7] arm64: dts: st: add RISAB1/2/3/4/5/6 nodes to stm32mp251.dtsi Gatien Chevallier
2026-02-10 7:51 ` Krzysztof Kozlowski
2026-02-10 9:58 ` Gatien CHEVALLIER
2026-02-09 14:59 ` [PATCH 4/7] arm64: dts: st: add RISAB1/2/3/4/5/6 nodes to stm32mp231.dtsi Gatien Chevallier
2026-02-09 14:59 ` [PATCH 5/7] arm64: dts: st: enable all RISAB instances on the stm32mp257f-ev1 board Gatien Chevallier
2026-02-09 14:59 ` [PATCH 6/7] arm64: dts: st: enable all RISAB instances on the stm32mp257f-dk board Gatien Chevallier
2026-02-09 14:59 ` [PATCH 7/7] arm64: dts: st: enable all RISAB instances on the stm32mp235f-dk board Gatien Chevallier
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=ee9759a6-1779-4891-8716-24c36134198a@kernel.org \
--to=krzk@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gatien.chevallier@foss.st.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@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
all inboxes | Powered by JetHome®