File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
dts/bindings/flash_controller Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 1414 chosen {
1515 zephyr,console = &usart1;
1616 zephyr,shell-uart = &usart1;
17+ zephyr,flash = &flash0;
1718 zephyr,sram = &sram0;
1819 zephyr,sram1 = &sram2a;
1920 zephyr,sram2 = &sram2b;
6364 current-speed = <115200>;
6465 status = "ok";
6566};
67+
68+ &flash0 {
69+ /*
70+ * For more information, see:
71+ * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
72+ */
73+ partitions {
74+ compatible = "fixed-partitions";
75+ #address-cells = <1>;
76+ #size-cells = <1>;
77+
78+ /* Set all partitions with first 512K of flash */
79+ /* last 512K are reseved for M0 usage */
80+
81+ boot_partition: partition@0 {
82+ label = "mcuboot";
83+ reg = <0x00000000 0xc000>;
84+ };
85+ slot0_partition: partition@c000 {
86+ label = "image-0";
87+ reg = <0x0000C000 0x50000>;
88+ };
89+ slot1_partition: partition@60000 {
90+ label = "image-1";
91+ reg = <0x00060000 0x1000>;
92+ };
93+ scratch_partition: partition@70000 {
94+ label = "image-scratch";
95+ reg = <0x00070000 0x4000>;
96+ };
97+ storage_partition: partition@78000 {
98+ label = "storage";
99+ reg = <0x00078000 0x4000>;
100+ };
101+
102+ };
103+ };
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ properties:
1616 type : boolean
1717 description : dual-bank mode not enabled (page erase 4096k)
1818 generation : define
19- category : optionnal
19+ category : optional
2020
2121 dual-bank :
2222 type : boolean
2323 description : dual-bank mode enabled (page erase 2048k)
2424 generation : define
25- category : optionnal
25+ category : optional
2626...
You can’t perform that action at this time.
0 commit comments