dts: arm: ambiq: add flash controller instance for Apollo3 Blue SOC

This commit adds flash controller instance for Ambiq Apollo3 Blue SOC
and Apollo3 Blue Plus SOC.
Also create the partitions on this flash controller node for apollo3_evb
and apollo3p_evb.

Signed-off-by: Aaron Ye <aye@ambiq.com>
This commit is contained in:
Aaron Ye 2024-05-08 15:26:02 +08:00 committed by Carles Cufí
commit e32c2ee296
4 changed files with 64 additions and 12 deletions

View file

@ -14,6 +14,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-pipe = &uart0;
zephyr,flash-controller = &flash;
};
aliases {
@ -21,6 +22,23 @@
};
};
&flash0 {
erase-block-size = <8192>;
write-block-size = <4>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 16KB of storage at the end of the 976KB of flash */
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 0x4000>;
};
};
};
&uart0 {
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;

View file

@ -14,6 +14,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-pipe = &uart0;
zephyr,flash-controller = &flash;
};
aliases {
@ -21,6 +22,23 @@
};
};
&flash0 {
erase-block-size = <8192>;
write-block-size = <4>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 16KB of storage at the end of the 2000KB of flash */
storage_partition: partition@1f0000 {
label = "storage";
reg = <0x001f0000 0x4000>;
};
};
};
&uart0 {
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;

View file

@ -25,12 +25,6 @@
};
};
/* Flash region */
flash0: flash@C000 {
compatible = "soc-nv-flash";
reg = <0x0000C000 0xF4000>;
};
/* TCM */
tcm: tcm@10000000 {
compatible = "zephyr,memory-region";
@ -47,6 +41,20 @@
soc {
compatible = "ambiq,apollo3-blue", "ambiq,apollo3x", "simple-bus";
flash: flash-controller@c000 {
compatible = "ambiq,flash-controller";
reg = <0x0000c000 0xf4000>;
#address-cells = <1>;
#size-cells = <1>;
/* Flash region */
flash0: flash@c000 {
compatible = "soc-nv-flash";
reg = <0x0000c000 0xf4000>;
};
};
pwrcfg: pwrcfg@40021000 {
compatible = "ambiq,pwrctrl";
reg = <0x40021000 0x400>;

View file

@ -25,12 +25,6 @@
};
};
/* Flash region */
flash0: flash@C000 {
compatible = "soc-nv-flash";
reg = <0x0000C000 0x1F4000>;
};
/* TCM */
tcm: tcm@10000000 {
compatible = "zephyr,memory-region";
@ -47,6 +41,20 @@
soc {
compatible = "ambiq,apollo3p-blue", "ambiq,apollo3x", "simple-bus";
flash: flash-controller@c000 {
compatible = "ambiq,flash-controller";
reg = <0x0000c000 0x1f4000>;
#address-cells = <1>;
#size-cells = <1>;
/* Flash region */
flash0: flash@c000 {
compatible = "soc-nv-flash";
reg = <0x0000c000 0x1f4000>;
};
};
pwrcfg: pwrcfg@40021000 {
compatible = "ambiq,pwrctrl";
reg = <0x40021000 0x400>;