Skip to content

Commit 9d1944a

Browse files
committed
dts: esp32c6: add SoC ROM memory region
Add device tree node for ESP32-C6 SoC ROM at 0x40000000. This 320KB ROM contains libc and utility functions used by the application. PMP protection is configured separately via PMP_SOC_REGION_DEFINE in pmp_regions.c. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
1 parent 6a05671 commit 9d1944a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dts/riscv/espressif/esp32c6/esp32c6_common.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <zephyr/dt-bindings/interrupt-controller/esp-esp32c6-intmux.h>
1212
#include <zephyr/dt-bindings/clock/esp32c6_clock.h>
1313
#include <zephyr/dt-bindings/pinctrl/esp32c6-pinctrl.h>
14+
#include <zephyr/dt-bindings/memory-attr/memory-attr-riscv.h>
1415

1516
/ {
1617
#address-cells = <1>;
@@ -93,6 +94,17 @@
9394
compatible = "simple-bus";
9495
ranges;
9596

97+
/*
98+
* ESP32-C6 ROM region containing libc functions.
99+
* PMP protection for this region is configured via
100+
* PMP_SOC_REGION_DEFINE in pmp_regions.c
101+
*/
102+
soc_rom: memory@40000000 {
103+
compatible = "zephyr,memory-region";
104+
reg = <0x40000000 DT_SIZE_K(320)>;
105+
zephyr,memory-region = "SOC_ROM";
106+
};
107+
96108
sramhp: memory@40800000 {
97109
compatible = "zephyr,memory-region", "mmio-sram";
98110
reg = <0x40800000 DT_SIZE_K(512)>;

0 commit comments

Comments
 (0)