Skip to content

Commit c9a16e8

Browse files
VynDragondpgeorge
authored andcommitted
zephyr: Add boards files for rp2350's m33 on pico 2.
Adds overlay and conf for RPi Pico2 ARM cpu on the zephyr port. Signed-off-by: Vdragon <[email protected]>
1 parent 01448d0 commit c9a16e8

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configure serial console over USB CDC ACM.
2+
CONFIG_USB_DEVICE_STACK_NEXT=y
3+
CONFIG_USBD_CDC_ACM_CLASS=y
4+
CONFIG_UART_LINE_CTRL=y
5+
6+
# Disable networking.
7+
CONFIG_NETWORKING=n
8+
9+
# Hardware features.
10+
CONFIG_FLASH=y
11+
CONFIG_FLASH_MAP=y
12+
CONFIG_I2C=y
13+
CONFIG_I2C_TARGET=y
14+
CONFIG_SPI=y
15+
16+
# MicroPython config.
17+
CONFIG_MICROPY_HEAP_SIZE=458752
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
/* Use USB CDC ACM as the console. */
10+
zephyr,console = &cdc_acm_uart0;
11+
};
12+
};
13+
14+
&flash0 {
15+
partitions {
16+
compatible = "fixed-partitions";
17+
#address-cells = <1>;
18+
#size-cells = <1>;
19+
20+
second_stage_bootloader: partition@0 {
21+
label = "second_stage_bootloader";
22+
reg = <0x00000000 0x100>;
23+
read-only;
24+
};
25+
26+
code_partition: partition@100 {
27+
label = "code-partition";
28+
reg = <0x0000100 (DT_SIZE_M(1) - 0x100)>;
29+
read-only;
30+
};
31+
32+
storage_partition: partition@100000 {
33+
label = "storage";
34+
reg = <0x00100000 DT_SIZE_M(3)>;
35+
};
36+
};
37+
};
38+
39+
&zephyr_udc0 {
40+
cdc_acm_uart0: cdc_acm_uart0 {
41+
compatible = "zephyr,cdc-acm-uart";
42+
};
43+
};
44+
45+
&i2c1 {
46+
clock-frequency = <I2C_BITRATE_STANDARD>;
47+
status = "okay";
48+
pinctrl-0 = <&i2c1_default>;
49+
pinctrl-names = "default";
50+
};

0 commit comments

Comments
 (0)