dts: stm32h7: flash-controller: Add default STM32 as compatible

Add "st,stm32-flash-controller" as compatible for STM32H7 so that
what is defined for STM32 in general  is also defined for STM32H7.
Already most of the other STM32 versions have this addition.

Also removed the specific STM32H7 flag check in
/flash/driver/Kconfig.stm32.

Signed-off-by: Stefan Petersen <spe@ciellt.se>
This commit is contained in:
Stefan Petersen 2023-09-11 11:46:19 +02:00 committed by Carles Cufí
commit 58ca047fa7
2 changed files with 2 additions and 3 deletions

View file

@ -8,8 +8,7 @@
config SOC_FLASH_STM32
bool "STM32 flash driver"
depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED || \
DT_HAS_ST_STM32H7_FLASH_CONTROLLER_ENABLED
depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED
select FLASH_HAS_DRIVER_ENABLED
default y
select FLASH_PAGE_LAYOUT

View file

@ -129,7 +129,7 @@
soc {
flash: flash-controller@52002000 {
compatible = "st,stm32h7-flash-controller";
compatible = "st,stm32-flash-controller", "st,stm32h7-flash-controller";
reg = <0x52002000 0x400>;
interrupts = <4 0>;
clocks = <&rcc STM32_CLOCK_BUS_AHB3 0x00000100>;