blob: 4f3bb726b05872e28664ef94c0f9a000c5f1b5be [file] [log] [blame]
Yann Gautierf7907022021-09-08 17:14:21 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (c) 2022, STMicroelectronics - All Rights Reserved
4 */
5
6#include <common/tbbr/tbbr_img_def.h>
7#include <dt-bindings/soc/stm32mp13-tzc400.h>
8
9#include <platform_def.h>
10
11#ifndef DDR_SIZE
12#error "DDR_SIZE is not defined"
13#endif
14
15#define DDR_NS_BASE STM32MP_DDR_BASE
Yann Gautier19736582022-06-30 14:47:22 +020016#define DDR_SEC_SIZE STM32MP_DDR_S_SIZE
Yann Gautierf7907022021-09-08 17:14:21 +020017#define DDR_SEC_BASE (STM32MP_DDR_BASE + (DDR_SIZE - DDR_SEC_SIZE))
Yann Gautier2f43c0d2022-05-17 16:21:25 +020018#define DDR_NS_SIZE (DDR_SEC_BASE - DDR_NS_BASE)
Yann Gautierf7907022021-09-08 17:14:21 +020019
20/dts-v1/;
21
22/ {
23 dtb-registry {
24 compatible = "fconf,dyn_cfg-dtb_registry";
25
26 hw-config {
27 load-address = <0x0 STM32MP_HW_CONFIG_BASE>;
28 max-size = <STM32MP_HW_CONFIG_MAX_SIZE>;
29 id = <HW_CONFIG_ID>;
30 };
31
32 nt_fw {
33 load-address = <0x0 STM32MP_BL33_BASE>;
34 max-size = <STM32MP_BL33_MAX_SIZE>;
35 id = <BL33_IMAGE_ID>;
36 };
37
38 tos_fw {
39 load-address = <0x0 DDR_SEC_BASE>;
40 max-size = <DDR_SEC_SIZE>;
41 id = <BL32_IMAGE_ID>;
42 };
43 };
44
45 st-mem-firewall {
46 compatible = "st,mem-firewall";
47 memory-ranges = <
48 DDR_NS_BASE DDR_NS_SIZE TZC_REGION_S_NONE TZC_REGION_NSEC_ALL_ACCESS_RDWR
Yann Gautierf7907022021-09-08 17:14:21 +020049 DDR_SEC_BASE DDR_SEC_SIZE TZC_REGION_S_RDWR 0>;
50 };
51};