Files
micropython/ports/zephyr/boards/rpi_pico.overlay
Vdragon a40aba3455 zephyr/boards: Setup rpi_pico to use Zephyr FS instead of MPY FS.
Use new Zephyr FS, and be a demonstration of that configuration.

This is still on-disk compatible with existing filesystems on the internal
flash.

Signed-off-by: Vdragon <mail@massdriver.space>
2025-11-20 14:12:32 +11:00

63 lines
1.3 KiB
Plaintext

/*
* Copyright (c) 2025 Damien P. George
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
/* Use USB CDC ACM as the console. */
zephyr,console = &cdc_acm_uart0;
};
fstab {
compatible = "zephyr,fstab";
lfs: lfs {
compatible = "zephyr,fstab,littlefs";
mount-point = "/flash";
partition = <&storage_partition>;
read-size=<16>;
prog-size=<256>;
cache-size=<1024>;
lookahead-size=<32>;
block-cycles=<4>;
};
};
};
/* Delete defined partitions and make a layout matching the rp2 port RPI_PICO configuration. */
/delete-node/ &code_partition;
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Code slot: 640 KiB - 0x100 placed after second-stage bootloader. */
code_partition: partition@100 {
label = "code-partition";
reg = <0x00000100 (DT_SIZE_K(640) - 0x100)>;
read-only;
};
/* Storage slot: 1408 KiB placed after code_partition. */
storage_partition: partition@a0000 {
label = "storage";
reg = <0x000a0000 DT_SIZE_K(1408)>;
};
};
};
&zephyr_udc0 {
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
};
};
&i2c1 {
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
pinctrl-0 = <&i2c1_default>;
pinctrl-names = "default";
};