Path: blob/master/Documentation/devicetree/bindings/bus/st,stm32mp25-rifsc.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/bus/st,stm32mp25-rifsc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: STM32 Resource isolation framework security controller78maintainers:9- Gatien Chevallier <gatien.chevallier@foss.st.com>1011description: |12Resource isolation framework (RIF) is a comprehensive set of hardware blocks13designed to enforce and manage isolation of STM32 hardware resources like14memory and peripherals.1516The RIFSC (RIF security controller) is composed of three sets of registers,17each managing a specific set of hardware resources:18- RISC registers associated with RISUP logic (resource isolation device unit19for peripherals), assign all non-RIF aware peripherals to zero, one or20any security domains (secure, privilege, compartment).21- RIMC registers: associated with RIMU logic (resource isolation master22unit), assign all non RIF-aware bus master to one security domain by23setting secure, privileged and compartment information on the system bus.24Alternatively, the RISUP logic controlling the device port access to a25peripheral can assign target bus attributes to this peripheral master port26(supported attribute: CID).27- RISC registers associated with RISAL logic (resource isolation device unit28for address space - Lite version), assign address space subregions to one29security domains (secure, privilege, compartment).3031select:32properties:33compatible:34contains:35const: st,stm32mp25-rifsc36required:37- compatible3839properties:40compatible:41items:42- const: st,stm32mp25-rifsc43- const: simple-bus4445reg:46maxItems: 14748"#address-cells":49const: 15051"#size-cells":52const: 15354ranges: true5556"#access-controller-cells":57const: 158description:59Contains the firewall ID associated to the peripheral.6061patternProperties:62"^.*@[0-9a-f]+$":63description: Peripherals64type: object6566additionalProperties: true6768required:69- access-controllers7071required:72- compatible73- reg74- "#address-cells"75- "#size-cells"76- "#access-controller-cells"77- ranges7879additionalProperties: false8081examples:82- |83// In this example, the usart2 device refers to rifsc as its domain84// controller.85// Access rights are verified before creating devices.8687#include <dt-bindings/interrupt-controller/arm-gic.h>8889rifsc: bus@42080000 {90compatible = "st,stm32mp25-rifsc", "simple-bus";91reg = <0x42080000 0x1000>;92#address-cells = <1>;93#size-cells = <1>;94#access-controller-cells = <1>;95ranges;9697usart2: serial@400e0000 {98compatible = "st,stm32h7-uart";99reg = <0x400e0000 0x400>;100interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;101clocks = <&ck_flexgen_08>;102access-controllers = <&rifsc 32>;103};104};105106107