drivers: flash: replace DT_FLASH_DEV_NAME with DT macro

Replace DT_FLASH_DEV_NAME with DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL.
We now set zephyr,flash-controller in the chosen node of the device
tree to the flash controller device.

NOTE: For a SoCs with on die flash, this points to the controller and
      not the 'soc-nv-flash' node.  Typically the controller is the
      parent of the 'soc-nv-flash' node).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-22 13:46:15 -05:00 committed by Kumar Gala
commit 7a15afc1d4
68 changed files with 237 additions and 71 deletions

View file

@ -44,6 +44,7 @@
chosen {
zephyr,entropy = &rnga;
zephyr,flash-controller = &ftfe;
};
cpus {
@ -140,7 +141,7 @@
#clock-cells = <3>;
};
flash-controller@40020000 {
ftfe: flash-controller@40020000 {
compatible = "nxp,kinetis-ftfe";
label = "FLASH_CTRL";
reg = <0x40020000 0x18>;