1#include <mem.h> 2 3/ { 4 sram_203F0000:sram@203F0000 { 5 compatible = "zephyr,memory-region", "mmio-sram"; 6 reg = <0x203F0000 0x10000>; 7 zephyr,memory-region = "FlashSim"; 8 status = "okay"; 9 }; 10 11 sim_flash_controller: sim_flash_controller { 12 compatible = "zephyr,sim-flash"; 13 14 #address-cells = <1>; 15 #size-cells = <1>; 16 erase-value = <0xff>; 17 memory-region = <&sram_203F0000>; 18 19 flash_sim0: flash_sim@0 { 20 compatible = "soc-nv-flash"; 21 reg = <0x00000000 0x10000>; 22 23 erase-block-size = <1024>; 24 write-block-size = <4>; 25 }; 26 }; 27}; 28