Skip to content

Commit

Permalink
dts: nxp: Rename nxp,iap-msf1 to nxp,msf1
Browse files Browse the repository at this point in the history
IAP is a reference to the method of software interaction with the flash
used in the current driver implementing support for this flash. The
DT compatible should not be named like this.

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny committed Sep 25, 2024
1 parent 50720f8 commit 9041297
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion drivers/flash/Kconfig.mcux
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ config SOC_FLASH_MCUX
DT_HAS_NXP_KINETIS_FTFL_ENABLED || \
DT_HAS_NXP_IAP_FMC55_ENABLED || \
DT_HAS_NXP_IAP_FMC553_ENABLED || \
DT_HAS_NXP_IAP_MSF1_ENABLED
DT_HAS_NXP_MSF1_ENABLED
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_EXPLICIT_ERASE
Expand Down
8 changes: 4 additions & 4 deletions drivers/flash/soc_flash_mcux.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ LOG_MODULE_REGISTER(flash_mcux);
#elif DT_NODE_HAS_STATUS(DT_INST(0, nxp_iap_fmc553), okay)
#define DT_DRV_COMPAT nxp_iap_fmc553
#define SOC_HAS_IAP 1
#elif DT_NODE_HAS_STATUS(DT_INST(0, nxp_iap_msf1), okay)
#define DT_DRV_COMPAT nxp_iap_msf1
#define SOC_HAS_IAP_MSF1 1
#elif DT_NODE_HAS_STATUS(DT_INST(0, nxp_msf1), okay)
#define DT_DRV_COMPAT nxp_msf1
#define SOC_HAS_MSF1 1
#else

Check notice on line 40 in drivers/flash/soc_flash_mcux.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

drivers/flash/soc_flash_mcux.c:40 -#define SOC_HAS_MSF1 1 +#define SOC_HAS_MSF1 1
#error No matching compatible for soc_flash_mcux.c
#endif
Expand Down Expand Up @@ -300,7 +300,7 @@ static const struct flash_driver_api flash_mcux_api = {
#endif
};

#if (defined(SOC_HAS_IAP) || defined(SOC_HAS_IAP_MSF1)) && !defined(CONFIG_MCUX_FLASH_K4_API)
#if (defined(SOC_HAS_IAP) || defined(SOC_HAS_MSF1)) && !defined(CONFIG_MCUX_FLASH_K4_API)
#define FLASH_PROP_BLOCK_BASE kFLASH_PropertyPflashBlockBaseAddr
#else
#define FLASH_PROP_BLOCK_BASE kFLASH_PropertyPflash0BlockBaseAddr
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/nxp/nxp_mcxa156.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
};

fmu: flash-controller@40095000 {
compatible = "nxp,iap-msf1";
compatible = "nxp,msf1";
reg = <0x40095000 0x1000>;
interrupts = <12 0>;

Expand Down
2 changes: 1 addition & 1 deletion dts/arm/nxp/nxp_mcxn23x_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
};

fmu: flash-controller@43000 {
compatible = "nxp,iap-msf1";
compatible = "nxp,msf1";
reg = <0x43000 0x1000>;
interrupts = <138 0>;
status = "disabled";
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/nxp/nxp_mcxn94x_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@
};

fmu: flash-controller@43000 {
compatible = "nxp,iap-msf1";
compatible = "nxp,msf1";
reg = <0x43000 0x1000>;
interrupts = <138 0>;
status = "disabled";
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/nxp/nxp_mcxw71.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#address-cells = <1>;
#size-cells = <1>;

compatible = "nxp,iap-msf1";
compatible = "nxp,msf1";
reg = <0x20000 0x1000>;
interrupts = <27 0>;
status = "disabled";
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/flash_controller/nxp,iap-msf1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

description: NXP MSF1 Flash Memory Module (FMU)

compatible: "nxp,iap-msf1"
compatible: "nxp,msf1"

include: flash-controller.yaml

0 comments on commit 9041297

Please sign in to comment.