Skip to content

Commit 02d91a6

Browse files
hfakkizfabiobaltieri
authored andcommitted
boards: adi: Enable new nodes of MAX32650 boards
This commit enables dma, i2c, spi, wdt and rtc_counter nodes for MAX32650EVKIT and MAX32650FTHR boards. Initial parts of the SRAM is used during the boot process, this causes problems for some tests (e.g. tests/drivers/watchdog/wdt_basic_api). To avoid these problems, this commit changes choosen SRAM to SRAM4. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com> Signed-off-by: Burak Babaoglu <burak.babaoglu@analog.com>
1 parent 40a60a6 commit 02d91a6

File tree

4 files changed

+58
-2
lines changed

4 files changed

+58
-2
lines changed

boards/adi/max32650evkit/max32650evkit.dts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
chosen {
1919
zephyr,console = &uart0;
2020
zephyr,shell-uart = &uart0;
21-
zephyr,sram = &sram0;
21+
zephyr,sram = &sram4;
2222
zephyr,flash = &flash0;
2323
};
2424

@@ -56,6 +56,7 @@
5656
aliases {
5757
led0 = &led1;
5858
led1 = &led2;
59+
watchdog0 = &wdt0;
5960
};
6061
};
6162

@@ -87,3 +88,27 @@
8788
&gpio3 {
8889
status = "okay";
8990
};
91+
92+
&dma0 {
93+
status = "okay";
94+
};
95+
96+
&i2c0 {
97+
pinctrl-0 = <&i2c0_scl_p2_8 &i2c0_sda_p2_7>;
98+
pinctrl-names = "default";
99+
status = "okay";
100+
};
101+
102+
&spi2 {
103+
status = "okay";
104+
pinctrl-0 = <&spi2_mosi_p2_4 &spi2_miso_p2_3 &spi2_sck_p2_2 &spi2_ss0_p2_5>;
105+
pinctrl-names = "default";
106+
};
107+
108+
&wdt0 {
109+
status = "okay";
110+
};
111+
112+
&rtc_counter {
113+
status = "okay";
114+
};

boards/adi/max32650evkit/max32650evkit.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ toolchain:
99
supported:
1010
- gpio
1111
- serial
12+
- spi
13+
- i2c
14+
- dma
15+
- watchdog
16+
- counter
17+
- rtc_counter
1218
ram: 1024
1319
flash: 3072

boards/adi/max32650fthr/max32650fthr.dts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
chosen {
1919
zephyr,console = &uart0;
2020
zephyr,shell-uart = &uart0;
21-
zephyr,sram = &sram0;
21+
zephyr,sram = &sram4;
2222
zephyr,flash = &flash0;
2323
};
2424

@@ -56,6 +56,7 @@
5656
aliases {
5757
led0 = &led1;
5858
led1 = &led2;
59+
watchdog0 = &wdt0;
5960
};
6061
};
6162

@@ -87,3 +88,21 @@
8788
&gpio3 {
8889
status = "okay";
8990
};
91+
92+
&dma0 {
93+
status = "okay";
94+
};
95+
96+
&spi1 {
97+
status = "okay";
98+
pinctrl-0 = <&spi1_mosi_p1_29 &spi1_miso_p1_28 &spi1_sck_p1_26 &spi1_ss0_p1_23>;
99+
pinctrl-names = "default";
100+
};
101+
102+
&wdt0 {
103+
status = "okay";
104+
};
105+
106+
&rtc_counter {
107+
status = "okay";
108+
};

boards/adi/max32650fthr/max32650fthr.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ toolchain:
99
supported:
1010
- gpio
1111
- serial
12+
- spi
13+
- i2c
14+
- dma
15+
- watchdog
16+
- counter
17+
- rtc_counter
1218
ram: 1024
1319
flash: 3072

0 commit comments

Comments
 (0)