feat(boards): Add BlueMicro833 V1 board definition
This commit is contained in:
parent
bc179b1030
commit
00533e0543
10 changed files with 283 additions and 0 deletions
8
app/boards/arm/bluemicro833/CMakeLists.txt
Normal file
8
app/boards/arm/bluemicro833/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py
|
||||
-c
|
||||
-b 0x26000
|
||||
-f 0xADA52840
|
||||
-o ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.uf2
|
||||
${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
|
||||
)
|
9
app/boards/arm/bluemicro833/Kconfig
Normal file
9
app/boards/arm/bluemicro833/Kconfig
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Copyright (c) 2021 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config BOARD_ENABLE_DCDC
|
||||
bool "Enable DCDC mode"
|
||||
select SOC_DCDC_NRF52X
|
||||
default y
|
||||
depends on BOARD_BLUEMICRO833_V1
|
||||
|
8
app/boards/arm/bluemicro833/Kconfig.board
Normal file
8
app/boards/arm/bluemicro833/Kconfig.board
Normal file
|
@ -0,0 +1,8 @@
|
|||
# BlueMicro833 board configuration
|
||||
|
||||
# Copyright (c) 2021 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config BOARD_BLUEMICRO833_V1
|
||||
bool "BlueMicro833_V1"
|
||||
depends on SOC_NRF52833_QIAA
|
33
app/boards/arm/bluemicro833/Kconfig.defconfig
Normal file
33
app/boards/arm/bluemicro833/Kconfig.defconfig
Normal file
|
@ -0,0 +1,33 @@
|
|||
# BlueMicro833 board configuration
|
||||
|
||||
# Copyright (c) 2020 Pete Johanson, Derek Schmell
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if BOARD_BLUEMICRO833_V1
|
||||
|
||||
config BOARD
|
||||
default "bluemicro833_v1"
|
||||
|
||||
if USB
|
||||
|
||||
config USB_NRFX
|
||||
default y
|
||||
|
||||
config USB_DEVICE_STACK
|
||||
default y
|
||||
|
||||
endif # USB
|
||||
|
||||
config BT_CTLR
|
||||
default BT
|
||||
|
||||
config ZMK_BLE
|
||||
default y
|
||||
|
||||
config ZMK_USB
|
||||
default y
|
||||
|
||||
config ZMK_BATTERY_NRF_VDDH
|
||||
default y
|
||||
|
||||
endif # BOARD_BLUEMICRO833_V1
|
57
app/boards/arm/bluemicro833/arduino_pro_micro_pins.dtsi
Normal file
57
app/boards/arm/bluemicro833/arduino_pro_micro_pins.dtsi
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Derek Schmell
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/ {
|
||||
pro_micro: connector {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &gpio0 8 0> /* D0 D2 */
|
||||
, <1 0 &gpio0 6 0> /* D1 D3*/
|
||||
, <2 0 &gpio0 15 0> /* D2 D1*/
|
||||
, <3 0 &gpio0 17 0> /* D3 D0*/
|
||||
, <4 0 &gpio0 20 0> /* D4/A6 D4*/
|
||||
, <5 0 &gpio0 13 0> /* D5 C6*/
|
||||
, <6 0 &gpio0 24 0> /* D6/A7 D7*/
|
||||
, <7 0 &gpio0 9 0> /* D7 E6*/
|
||||
, <8 0 &gpio0 10 0> /* D8/A8 B4*/
|
||||
, <9 0 &gpio1 6 0> /* D9/A9 B5*/
|
||||
, <10 0 &gpio1 0 0> /* D10/A10 B6*/
|
||||
, <16 0 &gpio0 28 0> /* D16 B2*/
|
||||
, <14 0 &gpio0 3 0> /* D14 B3*/
|
||||
, <15 0 &gpio1 5 0> /* D15 B1*/
|
||||
, <18 0 &gpio0 2 0> /* D18/A0 F7*/
|
||||
, <19 0 &gpio0 29 0> /* D19/A1 F6*/
|
||||
, <20 0 &gpio0 26 0> /* D20/A2 F5*/
|
||||
, <21 0 &gpio0 30 0> /* D21/A3 F4*/
|
||||
;
|
||||
};
|
||||
|
||||
pro_micro_a: connector_a {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &pro_micro 18 0> /* D18/A0 F7*/
|
||||
, <1 0 &pro_micro 19 0> /* D19/A1 F6*/
|
||||
, <2 0 &pro_micro 20 0> /* D20/A2 F5*/
|
||||
, <3 0 &pro_micro 21 0> /* D21/A3 F4*/
|
||||
, <6 0 &pro_micro 4 0> /* D4/A6 D4*/
|
||||
, <7 0 &pro_micro 6 0> /* D6/A7 D7*/
|
||||
, <8 0 &pro_micro 8 0> /* D8/A8 B4*/
|
||||
, <9 0 &pro_micro 9 0> /* D9/A9 B5*/
|
||||
, <10 0 &pro_micro 10 0> /* D10/A10 B6*/
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
pro_micro_d: &pro_micro {};
|
||||
pro_micro_i2c: &i2c0 {};
|
||||
pro_micro_spi: &spi0 {};
|
||||
pro_micro_serial: &uart0 {};
|
118
app/boards/arm/bluemicro833/bluemicro833_v1.dts
Normal file
118
app/boards/arm/bluemicro833/bluemicro833_v1.dts
Normal file
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Pete Johanson, Derek Schmell
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf52833_qiaa.dtsi>
|
||||
#include "arduino_pro_micro_pins.dtsi"
|
||||
|
||||
/ {
|
||||
model = "BlueMicro833_V1";
|
||||
compatible = "bluemicro833,v1";
|
||||
|
||||
chosen {
|
||||
zephyr,code-partition = &code_partition;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_led: led_0 {
|
||||
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
|
||||
label = "Blue LED";
|
||||
};
|
||||
red_led: led_1 {
|
||||
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
|
||||
label = "Red LED";
|
||||
};
|
||||
};
|
||||
|
||||
ext-power {
|
||||
compatible = "zmk,ext-power-generic";
|
||||
label = "EXT_POWER";
|
||||
init-delay-ms = <20>;
|
||||
control-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
vbatt {
|
||||
compatible = "zmk,battery-nrf-vddh";
|
||||
label = "BATTERY";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&adc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpiote {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
compatible = "nordic,nrf-twi";
|
||||
sda-pin = <15>;
|
||||
scl-pin = <17>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
compatible = "nordic,nrf-uarte";
|
||||
tx-pin = <6>;
|
||||
rx-pin = <8>;
|
||||
};
|
||||
|
||||
&usbd {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&flash0 {
|
||||
/*
|
||||
* For more information, see:
|
||||
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
|
||||
*/
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
sd_partition: partition@0 {
|
||||
label = "softdevice";
|
||||
reg = <0x00000000 0x00026000>;
|
||||
};
|
||||
code_partition: partition@26000 {
|
||||
label = "code_partition";
|
||||
reg = <0x00026000 0x00046000>;
|
||||
};
|
||||
|
||||
/*
|
||||
* The flash starting at 0x0006c000 and ending at
|
||||
* 0x00073fff is reserved for use by the application.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Storage partition will be used by FCB/LittleFS/NVS
|
||||
* if enabled.
|
||||
*/
|
||||
storage_partition: partition@6c000 {
|
||||
label = "storage";
|
||||
reg = <0x0006c000 0x00008000>;
|
||||
};
|
||||
|
||||
boot_partition: partition@74000 {
|
||||
label = "adafruit_boot";
|
||||
reg = <0x00074000 0x0000c000>;
|
||||
};
|
||||
};
|
||||
};
|
15
app/boards/arm/bluemicro833/bluemicro833_v1.yaml
Normal file
15
app/boards/arm/bluemicro833/bluemicro833_v1.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
identifier: bluemicro833_v1
|
||||
name: BlueMicro833_V1
|
||||
type: mcu
|
||||
arch: arm
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- adc
|
||||
- usb_device
|
||||
- ble
|
||||
- ieee802154
|
||||
- pwm
|
||||
- watchdog
|
10
app/boards/arm/bluemicro833/bluemicro833_v1.zmk.yml
Normal file
10
app/boards/arm/bluemicro833/bluemicro833_v1.zmk.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
file_format: "1"
|
||||
id: bluemicro833_v1
|
||||
name: BlueMicro833 v1
|
||||
type: board
|
||||
arch: arm
|
||||
outputs:
|
||||
- usb
|
||||
- ble
|
||||
url: https://github.com/jpconstantineau/BlueMicro833_hardware
|
||||
exposes: [pro_micro]
|
20
app/boards/arm/bluemicro833/bluemicro833_v1_defconfig
Normal file
20
app/boards/arm/bluemicro833/bluemicro833_v1_defconfig
Normal file
|
@ -0,0 +1,20 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
CONFIG_SOC_SERIES_NRF52X=y
|
||||
CONFIG_SOC_NRF52833_QIAA=y
|
||||
CONFIG_BOARD_BLUEMICRO833_V1=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
# enable GPIO
|
||||
CONFIG_GPIO=y
|
||||
|
||||
CONFIG_USE_DT_CODE_PARTITION=y
|
||||
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
||||
CONFIG_NVS=y
|
||||
CONFIG_SETTINGS_NVS=y
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_FLASH_PAGE_LAYOUT=y
|
||||
CONFIG_FLASH_MAP=y
|
5
app/boards/arm/bluemicro833/board.cmake
Normal file
5
app/boards/arm/bluemicro833/board.cmake
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset")
|
||||
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
Loading…
Add table
Reference in a new issue