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