how to set reserved mem on dts
时间: 2024-03-27 18:41:11 浏览: 9
To set reserved memory in a device tree source (DTS) file, you can use the "reserved-memory" property. Here is an example:
```
/ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
/* Define reserved memory region */
my_reserved_mem_region: my_reserved_mem@80000000 {
reg = <0x0 0x80000000 0x0 0x10000000>;
};
};
};
```
In this example, we define a reserved memory region named "my_reserved_mem_region" that starts at address 0x80000000 and has a size of 0x10000000 bytes.
You can then use this reserved memory region in other parts of your DTS file, such as in defining a device node that requires this memory region.
Note that the exact syntax and usage of the "reserved-memory" property may vary depending on the specific architecture and platform you are working with.