zephyr/tests/lib
Carlo Caione 7483e43f0c devicetree: Add 'zephyr,memory-attr' and DT helpers
The 'zephyr,memory-region-mpu' property was addede gqas a
convenient way to create and configure MPU regions using information
coming from DT. It has been used a lot since it was introduced so I
guess we can consider it a Zephyr success story ™ .

Unfortunately it has been proved to be a bit limited and with some
important limitations:

1. It was introduced as a property of the compatible
   zephyr,memory-region that is used to create linker regions and
   sections from DT data. This means that we can actually create MPU
   regions only for DT-defined regions and sections.
2. The naming is unfortunate because it is implying that it is used only
   for MPU.
3. It is misplaced being in include/zephyr/linker/devicetree_regions.h
   and still it has nothing to do with the linker at all.
4. It is exporting a function called LINKER_DT_REGION_MPU that again has
   nothing to do with the linker.

Point (1) is also particularly limiting because it is preventing us to
characterize memory regions that are not generated using the
'zephyr,memory-region' compatible, like generic mmio-sram regions.

While we fix all the issues, we also want to extend a bit the range of
usefulness of this property. We are renaming it 'zephyr,memory-attr' and
it is now carrying information about the type of memory the property is
attached to (cacheable, non-cacheable, IO, eXecutable, etc...). The user
can use this property and the DT API coming with it to act on the memory
node it is accompanied by.

We are still providing the DT_MEMORY_ATTR_APPLY() macro that can be used
to create the MPU regions as before, but we are adding also a
DT_MEMORY_ATTR_FOREACH_NODE() macro that can be used to cycle through
the memory nodes and act on those.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-07-25 11:22:10 +02:00
..
c_lib tests: lib: c_lib: fix test_sqrt double promotion warnings 2023-07-21 06:30:32 -04:00
cbprintf_fp tests: Use posix arch exclude where appropriate 2023-05-04 16:48:01 -04:00
cbprintf_package tests: cleanup metadata and filtering 2023-06-13 09:38:27 -04:00
cmsis_dsp samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
cmsis_nn
cpp rtio: Use mpsc for submission and completion queue 2023-05-10 00:39:43 +09:00
devicetree devicetree: Add 'zephyr,memory-attr' and DT helpers 2023-07-25 11:22:10 +02:00
fdtable
gui/lvgl tests: lib: gui: lvgl: Reorder screen load and delete 2023-07-10 15:14:49 +02:00
hash_function tests: lib: hash_function: fix double-promotion warnings 2023-04-26 15:11:36 -07:00
hash_map tests,samples: Fix picolibc malloc arena settings 2023-05-09 01:29:16 +09:00
heap tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
heap_align tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
json tests: lib: json: add extra nested array 2dim tests 2023-07-18 11:06:39 +00:00
linear_range sys: linear_range: fix return value when window is outside range 2023-02-20 10:43:26 +01:00
mem_alloc tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
mem_blocks tests: use integration_platforms where applicable 2023-05-26 17:52:02 -04:00
mem_blocks_stats tests: use integration_platforms where applicable 2023-05-26 17:52:02 -04:00
mpsc_pbuf samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
newlib tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
notify
onoff samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
p4workq tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
ringbuffer samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
smf tests: smf: cleanup test metadata 2023-05-25 04:44:11 -04:00
sprintf tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
spsc_pbuf
sys_util tests/samples: use integration_platforms more where it makes sense 2023-05-26 17:52:02 -04:00
thrift/ThriftTest samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
time
uoscore