mirror of https://github.com/zmkfirmware/zmk.git
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:
parent
d02908e245
commit
5fd46f4598
|
|
@ -13,3 +13,8 @@ CONFIG_SETTINGS_NVS=y
|
|||
CONFIG_FLASH=y
|
||||
CONFIG_FLASH_PAGE_LAYOUT=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
|
||||
|
|
|
|||
|
|
@ -4,10 +4,33 @@
|
|||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
&gpregret1 {
|
||||
adafruit_boot_retention: retention@0 {
|
||||
compatible = "zephyr,retention";
|
||||
status = "okay";
|
||||
reg = <0x0 0x1>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue