fix(boards): Retore bootloader support on XIAO BLE.

Set up necessary boot mode/retention to properly set GPREGRET to trigger
Adafruit bootloader to run on the XIAO BLE.
This commit is contained in:
Peter Johanson 2025-07-09 00:58:31 -06:00
parent d02908e245
commit 5fd46f4598
2 changed files with 29 additions and 1 deletions

View File

@ -12,4 +12,9 @@ CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y CONFIG_SETTINGS_NVS=y
CONFIG_FLASH=y CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y CONFIG_FLASH_MAP=y
CONFIG_RETAINED_MEM=y
CONFIG_RETENTION=y
CONFIG_RETENTION_BOOT_MODE=y
CONFIG_ZMK_BOOTMODE_MAGIC_VALUE_BOOTLOADER_TYPE_ADAFRUIT_NRF52=y

View File

@ -4,10 +4,33 @@
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
*/ */
&gpregret1 {
adafruit_boot_retention: retention@0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x0 0x1>;
};
};
/ { / {
chosen { chosen {
zmk,battery = &vbatt; zmk,battery = &vbatt;
zephyr,boot-mode = &boot_retention;
zmk,magic-boot-mode = &adafruit_boot_retention;
};
magic_mapper {
compatible = "zmk,bootmode-to-magic-mapper";
status = "okay";
#address-cells = <1>;
#size-cells = <1>;
boot_retention: retention@0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x0 0x1>;
};
}; };
vbatt: vbatt { vbatt: vbatt {