The legacy macros were first deprecated in Zephyr v2.3. Now that Zephyr v2.4 has been released, that makes two releases where these macros have been deprecated, so it's OK to remove them. This leaves support for legacy binding syntax in place. Removing that is left to future work. We need to update various pieces of documentation related to flash partitions that never got updated when the new API was introduced. Consolidate this information in the flash_map.h API reference page, since that's really where users will run into it. This also gives us the opportunity to improve this documentation. Adjust a couple of kconfigfunctions.py and sanitycheck bits to use non-legacy edtlib APIs. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
42 lines
883 B
Text
42 lines
883 B
Text
/*
|
|
* Copyright (c) 2020 Nordic Semiconductor ASA
|
|
*/
|
|
/* start-after-here */
|
|
/ {
|
|
soc {
|
|
flashctrl: flash-controller@deadbeef {
|
|
flash0: flash@0 {
|
|
compatible = "soc-nv-flash";
|
|
reg = <0x0 0x100000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <0x1>;
|
|
#size-cells = <0x1>;
|
|
|
|
boot_partition: partition@0 {
|
|
label = "mcuboot";
|
|
reg = <0x0 0x10000>;
|
|
read-only;
|
|
};
|
|
storage_partition: partition@1e000 {
|
|
label = "storage";
|
|
reg = <0x1e000 0x2000>;
|
|
};
|
|
slot0_partition: partition@20000 {
|
|
label = "image-0";
|
|
reg = <0x20000 0x60000>;
|
|
};
|
|
slot1_partition: partition@80000 {
|
|
label = "image-1";
|
|
reg = <0x80000 0x60000>;
|
|
};
|
|
scratch_partition: partition@e0000 {
|
|
label = "image-scratch";
|
|
reg = <0xe0000 0x20000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|