Commit e32c2ee2 authored by Aaron Ye's avatar Aaron Ye Committed by Carles Cufi
Browse files

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: default avatarAaron Ye <aye@ambiq.com>
parent 6d4ed7e1
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -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>;
+18 −0
Original line number Diff line number Diff line
@@ -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>;
+14 −6
Original line number Diff line number Diff line
@@ -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>;
+14 −6
Original line number Diff line number Diff line
@@ -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>;