Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | /* SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include <mem.h> #ifndef DT_DRAM_BASE #define DT_DRAM_BASE 0 #endif #ifndef DT_DRAM_SIZE #define DT_DRAM_SIZE DT_SIZE_K(4096) #endif #define DT_FLASH_SIZE DT_SIZE_K(4096) #include <ia32.dtsi> / { model = "QEMU X86 emulator"; compatible = "qemu,x86_emulator"; flash0: flash@500000 { compatible = "soc-nv-flash"; reg = <0x00500000 DT_FLASH_SIZE>; }; aliases { uart-0 = &uart0; uart-1 = &uart1; eeprom-0 = &eeprom0; eeprom-1 = &eeprom1; }; chosen { zephyr,sram = &dram0; zephyr,flash = &flash0; zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,bt-uart = &uart1; zephyr,uart-pipe = &uart1; zephyr,bt-mon-uart = &uart1; zephyr,code-partition = &slot0_partition; zephyr,flash-controller = &sim_flash; }; soc { eth0: eth@febc0000 { compatible = "intel,e1000"; reg = <0xfebc0000 0x100>; label = "eth0"; interrupts = <11 IRQ_TYPE_LOWEST_EDGE_RISING 3>; interrupt-parent = <&intc>; status = "okay"; }; }; sim_flash: sim_flash { compatible = "zephyr,sim-flash"; label = "FLASH_SIMULATOR"; #address-cells = <1>; #size-cells = <1>; erase-value = <0xff>; flash_sim0: flash_sim@0 { compatible = "soc-nv-flash"; reg = <0x00000000 DT_SIZE_K(1024)>; erase-block-size = <1024>; write-block-size = <4>; }; }; eeprom1: eeprom1 { status = "okay"; compatible = "zephyr,emu-eeprom"; label = "EEPROM_1"; size = <DT_SIZE_K(4)>; pagesize = <DT_SIZE_K(8)>; partition = <&eepromemu_partition>; rambuf; }; eeprom0: eeprom0 { status = "okay"; compatible = "zephyr,sim-eeprom"; label = "EEPROM_0"; size = <DT_SIZE_K(4)>; }; }; &uart0 { status = "okay"; current-speed = <115200>; }; &uart1 { status = "okay"; current-speed = <115200>; }; &hpet { status = "okay"; }; &flash_sim0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@1000 { label = "storage"; reg = <0x00001000 0x00010000>; }; slot0_partition: partition@11000 { label = "image-0"; reg = <0x00011000 0x00010000>; }; slot1_partition: partition@21000 { label = "image-1"; reg = <0x00021000 0x00010000>; }; eepromemu_partition: partition@31000 { label = "eeprom-emu"; reg = <0x00031000 0x00010000>; }; }; }; |