1/dts-v1/;
2#include <ambiq/ambiq_apollo3_blue.dtsi>
3
4#include "apollo3_evb-pinctrl.dtsi"
5
6/ {
7	model = "Ambiq Apollo3 Blue evaluation board";
8	compatible = "ambiq,apollo3_evb";
9
10	chosen {
11		zephyr,itcm = &tcm;
12		zephyr,sram = &sram0;
13		zephyr,flash = &flash0;
14		zephyr,console = &uart0;
15		zephyr,shell-uart = &uart0;
16		zephyr,uart-pipe = &uart0;
17		zephyr,flash-controller = &flash;
18		zephyr,bt_hci = &bt_hci_apollo;
19	};
20
21	aliases {
22		watchdog0 = &wdt0;
23		led0 = &led0;
24		led1 = &led1;
25		led2 = &led2;
26		sw0 = &button0;
27		sw1 = &button1;
28	};
29
30	leds {
31		compatible = "gpio-leds";
32		led0: led_0 {
33			gpios = <&gpio0_31 10 GPIO_ACTIVE_LOW>;
34			label = "LED 0";
35		};
36		led1: led_1 {
37			gpios = <&gpio0_31 30 GPIO_ACTIVE_LOW>;
38			label = "LED 1";
39		};
40		led2: led_2 {
41			gpios = <&gpio0_31 15 GPIO_ACTIVE_LOW>;
42			label = "LED 2";
43		};
44		led3: led_3 {
45			gpios = <&gpio0_31 14 GPIO_ACTIVE_LOW>;
46			label = "LED 3";
47		};
48		led4: led_4 {
49			gpios = <&gpio0_31 17 GPIO_ACTIVE_LOW>;
50			label = "LED 4";
51		};
52	};
53
54	buttons {
55		compatible = "gpio-keys";
56		button0: button_0 {
57			gpios = <&gpio0_31 16 GPIO_ACTIVE_LOW>;
58			label = "BTN0";
59		};
60		button1: button_1 {
61			gpios = <&gpio0_31 18 GPIO_ACTIVE_LOW>;
62			label = "BTN1";
63		};
64		button2: button_2 {
65			gpios = <&gpio0_31 19 GPIO_ACTIVE_LOW>;
66			label = "BTN2";
67		};
68	};
69};
70
71&flash0 {
72	erase-block-size = <8192>;
73	write-block-size = <4>;
74
75	partitions {
76		compatible = "fixed-partitions";
77		#address-cells = <1>;
78		#size-cells = <1>;
79
80		/* Set 16KB of storage at the end of the 976KB of flash */
81		storage_partition: partition@f0000 {
82			label = "storage";
83			reg = <0x000f0000 0x4000>;
84		};
85	};
86};
87
88&bleif {
89	pinctrl-0 = <&bleif_default>;
90	pinctrl-names = "default";
91	status = "okay";
92};
93
94&uart0 {
95	current-speed = <115200>;
96	pinctrl-0 = <&uart0_default>;
97	pinctrl-names = "default";
98	status = "okay";
99};
100
101&wdt0 {
102	status = "okay";
103};
104
105&spi0 {
106	compatible = "ambiq,spi";
107	pinctrl-0 = <&spi0_default>;
108	pinctrl-names = "default";
109	cs-gpios = <&gpio0_31 11 GPIO_ACTIVE_LOW>;
110	clock-frequency = <DT_FREQ_M(1)>;
111	status = "okay";
112};
113
114&i2c3 {
115	compatible = "ambiq,i2c";
116	pinctrl-0 = <&i2c3_default>;
117	pinctrl-names = "default";
118	clock-frequency = <I2C_BITRATE_STANDARD>;
119	status = "okay";
120};
121
122&counter0 {
123	status = "okay";
124};
125
126&counter1 {
127	status = "okay";
128};
129
130&counter2 {
131	status = "okay";
132};
133
134&counter3 {
135	status = "okay";
136};
137
138&counter4 {
139	status = "okay";
140};
141
142&counter5 {
143	status = "okay";
144};
145
146&counter6 {
147	status = "okay";
148};
149
150&counter7 {
151	status = "okay";
152};
153
154&gpio0_31 {
155	status = "okay";
156};
157
158&gpio32_63 {
159	status = "okay";
160};
161