stm32mp13-fw-config.dtsi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (c) 2022, STMicroelectronics - All Rights Reserved
  4. */
  5. #include <common/tbbr/tbbr_img_def.h>
  6. #include <dt-bindings/soc/stm32mp13-tzc400.h>
  7. #include <platform_def.h>
  8. #ifndef DDR_SIZE
  9. #error "DDR_SIZE is not defined"
  10. #endif
  11. #define DDR_NS_BASE STM32MP_DDR_BASE
  12. #define DDR_SEC_SIZE STM32MP_DDR_S_SIZE
  13. #define DDR_SEC_BASE (STM32MP_DDR_BASE + (DDR_SIZE - DDR_SEC_SIZE))
  14. #define DDR_NS_SIZE (DDR_SEC_BASE - DDR_NS_BASE)
  15. /dts-v1/;
  16. / {
  17. dtb-registry {
  18. compatible = "fconf,dyn_cfg-dtb_registry";
  19. hw-config {
  20. load-address = <0x0 STM32MP_HW_CONFIG_BASE>;
  21. max-size = <STM32MP_HW_CONFIG_MAX_SIZE>;
  22. id = <HW_CONFIG_ID>;
  23. };
  24. nt_fw {
  25. load-address = <0x0 STM32MP_BL33_BASE>;
  26. max-size = <STM32MP_BL33_MAX_SIZE>;
  27. id = <BL33_IMAGE_ID>;
  28. };
  29. tos_fw {
  30. load-address = <0x0 DDR_SEC_BASE>;
  31. max-size = <DDR_SEC_SIZE>;
  32. id = <BL32_IMAGE_ID>;
  33. };
  34. };
  35. st-mem-firewall {
  36. compatible = "st,mem-firewall";
  37. memory-ranges = <
  38. DDR_NS_BASE DDR_NS_SIZE TZC_REGION_S_NONE TZC_REGION_NSEC_ALL_ACCESS_RDWR
  39. DDR_SEC_BASE DDR_SEC_SIZE TZC_REGION_S_RDWR 0>;
  40. };
  41. };