Skip to content

Commit a051f34

Browse files
committed
ports: zephyr: Add board support for APARD32690 & MAX32666FTHR
Signed-off-by: Brandon Hurst <brandon.hurst97@gmail.com>
1 parent ac9e846 commit a051f34

4 files changed

Lines changed: 89 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# For debugging Zephyr integrations
2+
CONFIG_DISK_LOG_LEVEL_DBG=y
3+
CONFIG_USBD_LOG_LEVEL_DBG=y
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
/ {
3+
/delete-node/ pmod-header;
4+
5+
cp_disk {
6+
compatible = "zephyr,flash-disk";
7+
partition = <&circuitpy_partition>;
8+
disk-name = "CP";
9+
cache-size = <4096>;
10+
};
11+
};
12+
13+
// TODO: Fix this in upstream! JEDEC ID appears backwards
14+
&mx25u64 {
15+
jedec-id = [25 37 c2];
16+
};
17+
18+
&flash0 {
19+
partitions {
20+
compatible = "fixed-partitions";
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
24+
m4_flash: partition@0 {
25+
reg = <0x0 DT_SIZE_M(2)>;
26+
};
27+
28+
circuitpy_partition: partition@200000 {
29+
label = "circuitpy";
30+
reg = <0x200000 DT_SIZE_M(1)>;
31+
};
32+
};
33+
};
34+
35+
#include "../app.overlay"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# For debugging Zephyr integrations
2+
CONFIG_DISK_LOG_LEVEL_DBG=y
3+
CONFIG_USBD_LOG_LEVEL_DBG=y
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
/ {
3+
cp_disk {
4+
compatible = "zephyr,flash-disk";
5+
partition = <&circuitpy_partition>;
6+
disk-name = "circuitpy";
7+
cache-size = <4096>;
8+
};
9+
10+
/* TODO: Add to MAX32666 soc dts */
11+
soc {
12+
usbhs: usbhs@400b1000 {
13+
compatible = "adi,max32-usbhs";
14+
reg = <0x400b1000 0x1000>;
15+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 3>;
16+
interrupts = <2 0>;
17+
num-bidir-endpoints = <0>;
18+
num-in-endpoints = <6>;
19+
num-out-endpoints = <6>;
20+
maximum-speed = "high-speed";
21+
status = "disabled";
22+
};
23+
};
24+
};
25+
26+
&flash0 {
27+
partitions {
28+
compatible = "fixed-partitions";
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
m4_flash: partition@0 {
33+
reg = <0x0 DT_SIZE_K(384)>;
34+
};
35+
36+
circuitpy_partition: partition@60000 {
37+
label = "circuitpy";
38+
reg = <0x60000 DT_SIZE_K(128)>;
39+
};
40+
};
41+
};
42+
43+
/* TODO: Add to MAX32666FTHR board dts */
44+
zephyr_udc0: &usbhs {
45+
status = "okay";
46+
};
47+
48+
#include "../app.overlay"

0 commit comments

Comments
 (0)