STM32 Resource isolation framework security controller

Schema identifier ($id): "http://devicetree.org/schemas/bus/st,stm32mp25-rifsc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Gatien Chevallier <gatien.chevallier@foss.st.com>"

Resource isolation framework (RIF) is a comprehensive set of hardware blocks designed to enforce and manage isolation of STM32 hardware resources like memory and peripherals.

The RIFSC (RIF security controller) is composed of three sets of registers,
each managing a specific set of hardware resources:
  - RISC registers associated with RISUP logic (resource isolation device unit
    for peripherals), assign all non-RIF aware peripherals to zero, one or
    any security domains (secure, privilege, compartment).
  - RIMC registers: associated with RIMU logic (resource isolation master
    unit), assign all non RIF-aware bus master to one security domain by
    setting secure, privileged and compartment information on the system bus.
    Alternatively, the RISUP logic controlling the device port access to a
    peripheral can assign target bus attributes to this peripheral master port
    (supported attribute: CID).
  - RISC registers associated with RISAL logic (resource isolation device unit
    for address space - Lite version), assign address space subregions to one
    security domains (secure, privilege, compartment).

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "st,stm32mp21-rifsc", "st,stm32mp25-rifsc"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "st,stm32mp21-rifsc", "st,stm32mp25-rifsc"

Item 2

Exact value (const): "simple-bus"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Allowed values (enum): 1, 2

ranges — required here #

true — No constraints added by this property rule.

#access-controller-cells — required here #

Exact value (const): 1

Contains the firewall ID associated to the peripheral.

Properties matching a name pattern (patternProperties) #

@[0-9a-f]+$ — name matches this regular expression #

Peripherals

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "access-controllers"

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "#access-controller-cells", "ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

// In this example, the usart2 device refers to rifsc as its domain
// controller.
// Access rights are verified before creating devices.

#include <dt-bindings/interrupt-controller/arm-gic.h>

rifsc: bus@42080000 {
    compatible = "st,stm32mp25-rifsc", "simple-bus";
    reg = <0x42080000 0x1000>;
    #address-cells = <1>;
    #size-cells = <1>;
    #access-controller-cells = <1>;
    ranges;

    usart2: serial@400e0000 {
          compatible = "st,stm32h7-uart";
          reg = <0x400e0000 0x400>;
          interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
          clocks = <&ck_flexgen_08>;
          access-controllers = <&rifsc 32>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page