From b2c50380aa96a2053eb27c904ec900ccb35ff467 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 20 Sep 2017 15:47:45 -0400 Subject: [PATCH] dts: stm32l4: add flash write-block-size This makes the SoC flash compatible with the common nonvolatile flash YAML schema, and provides a write alignment. It mirrors work done on nRF chips for the DFU subsystem. Signed-off-by: Marti Bolivar --- dts/arm/st/stm32l4.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dts/arm/st/stm32l4.dtsi b/dts/arm/st/stm32l4.dtsi index 4f15603e7f6..641eb7272c3 100644 --- a/dts/arm/st/stm32l4.dtsi +++ b/dts/arm/st/stm32l4.dtsi @@ -24,7 +24,10 @@ }; flash0: flash@8000000 { + compatible = "soc-nv-flash"; reg = <0x08000000 DT_FLASH_SIZE>; + + write-block-size = <8>; }; sram0: memory@20000000 {