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

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

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
This commit is contained in:
Krishna Mohan Dani 2021-04-07 00:33:54 +05:30 committed by Anas Nashif
commit de2978d0f7

View file

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