refactor(boards): Move MakerDiary M2 board to HWMv2.

Run the HWMv2 script to convert the MakerDiary M2 board.
This commit is contained in:
Peter Johanson 2025-05-29 17:15:51 -06:00
parent 8f61f3349e
commit 5729006ac4
11 changed files with 14 additions and 16 deletions

View File

@ -1,9 +0,0 @@
# Maker Diary nrf52840 M.2 board configuration
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
config BOARD_NRF52840_M2
bool "nrf52480_m2"
depends on SOC_NRF52840_QIAA

View File

@ -3,9 +3,6 @@
if BOARD_NRF52840_M2
config BOARD
default "nrf52480_m2"
if USB_DEVICE_STACK
config USB_NRFX

View File

@ -0,0 +1,8 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52840_M2
select SOC_NRF52840_QIAA
imply RETAINED_MEM
imply RETENTION
imply RETENTION_BOOT_MODE

View File

@ -0,0 +1,5 @@
board:
name: nrf52840_m2
vendor: makerdiary
socs:
- name: nrf52840

View File

@ -6,6 +6,7 @@
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include <common/nordic/nrf52840_uf2_boot_mode.dtsi>
/ {
model = "Makerdiary nRF52840 M.2 module";

View File

@ -1,10 +1,6 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_NRF52840_M2=y
# Enable MPU
CONFIG_ARM_MPU=y