I'm trying to set up a FAT FS on external flash on the 5340 DK. It looks like the correct way to do this is to include a "zephyr,flash-disk" compat disk in my device tree, like this:
chosen { nordic,pm-ext-flash = &mx25r64; }; msc_disk0 { compatible = "zephyr,flash-disk"; partition = <&external_flash>; disk-name = "NAND"; cache-size = <4096>; };
Unfortunately, this doesn't work as my mutli-image build partitioning is owned by the PM. So despite the fact that this partition exists in the final build, it can't be referenced here. Is there a workaround for this or better approach?
EDIT: To be clear, I do not want to delete the partition node (which is what every single example does), I want to reference the PM-generated partition.