boards/arm: nucleo_l152re: Enabling flash support in device tree.

Enabling flash support for nucleo-l152re in device tree.
This has been tested with flash sample application on
nucleo-l152re platform.
Documentation has been updated.

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
This commit is contained in:
Krishna Mohan Dani 2021-04-07 00:43:46 +05:30 committed by Anas Nashif
commit 70b25ab698
2 changed files with 16 additions and 0 deletions

View file

@ -88,6 +88,8 @@ The Zephyr nucleo_l152re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | independent watchdog | | WATCHDOG | on-chip | independent watchdog |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtc | | COUNTER | on-chip | rtc |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| ADC | on-chip | ADC Controller | | ADC | on-chip | ADC Controller |

View file

@ -75,3 +75,17 @@
status = "okay"; status = "okay";
pinctrl-0 = <&dac_out1_pa4>; pinctrl-0 = <&dac_out1_pa4>;
}; };
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 2KB of storage at the end of 512KB flash */
storage_partition: partition@7f800 {
label = "storage";
reg = <0x0007f800 0x00000800>;
};
};
};