1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/bus/st,stm32mp25-rifsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STM32 Resource isolation framework security controller
10 - Gatien Chevallier <gatien.chevallier@foss.st.com>
13 Resource isolation framework (RIF) is a comprehensive set of hardware blocks
14 designed to enforce and manage isolation of STM32 hardware resources like
15 memory and peripherals.
17 The RIFSC (RIF security controller) is composed of three sets of registers,
18 each managing a specific set of hardware resources:
19 - RISC registers associated with RISUP logic (resource isolation device unit
20 for peripherals), assign all non-RIF aware peripherals to zero, one or
21 any security domains (secure, privilege, compartment).
22 - RIMC registers: associated with RIMU logic (resource isolation master
23 unit), assign all non RIF-aware bus master to one security domain by
24 setting secure, privileged and compartment information on the system bus.
25 Alternatively, the RISUP logic controlling the device port access to a
26 peripheral can assign target bus attributes to this peripheral master port
27 (supported attribute: CID).
28 - RISC registers associated with RISAL logic (resource isolation device unit
29 for address space - Lite version), assign address space subregions to one
30 security domains (secure, privilege, compartment).
36 const: st,stm32mp25-rifsc
43 - const: st,stm32mp25-rifsc
57 "#access-controller-cells":
60 Contains the firewall ID associated to the peripheral.
64 description: Peripherals
67 additionalProperties: true
77 - "#access-controller-cells"
80 additionalProperties: false
84 // In this example, the usart2 device refers to rifsc as its domain
86 // Access rights are verified before creating devices.
88 #include <dt-bindings/interrupt-controller/arm-gic.h>
91 compatible = "st,stm32mp25-rifsc", "simple-bus";
92 reg = <0x42080000 0x1000>;
95 #access-controller-cells = <1>;
98 usart2: serial@400e0000 {
99 compatible = "st,stm32h7-uart";
100 reg = <0x400e0000 0x400>;
101 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
102 clocks = <&ck_flexgen_08>;
103 access-controllers = <&rifsc 32>;