Debian Codegraph @

ports/zephyr/boards/rpi_pico.overlay

raw
1 /*
2 * Copyright (c) 2025 Damien P. George
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 /* Delete defined partitions and make a layout matching the rp2 port RPI_PICO configuration. */
15 /delete-node/ &code_partition;
16 &flash0 {
17 partitions {
18 compatible = "fixed-partitions";
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 /* Code slot: 640 KiB - 0x100 placed after second-stage bootloader. */
23 code_partition: partition@100 {
24 label = "code-partition";
25 reg = <0x00000100 (DT_SIZE_K(640) - 0x100)>;
26 read-only;
27 };
28
29 /* Storage slot: 1408 KiB placed after code_partition. */
30 storage_partition: partition@a0000 {
31 label = "storage";
32 reg = <0x000a0000 DT_SIZE_K(1408)>;
33 };
34 };
35 };
36
37 &zephyr_udc0 {
38 cdc_acm_uart0: cdc_acm_uart0 {
39 compatible = "zephyr,cdc-acm-uart";
40 };
41 };
42
43 &i2c1 {
44 clock-frequency = <I2C_BITRATE_STANDARD>;
45 status = "okay";
46 pinctrl-0 = <&i2c1_default>;
47 pinctrl-names = "default";
48 };