feat(boards): Preliminary update for mikoto board definition
This commit is contained in:
parent
4fd32718e1
commit
ef19be9d27
15 changed files with 101 additions and 16 deletions
|
@ -2,11 +2,11 @@ config BOARD_ENABLE_DCDC
|
||||||
bool "Enable DCDC mode"
|
bool "Enable DCDC mode"
|
||||||
select SOC_DCDC_NRF52X
|
select SOC_DCDC_NRF52X
|
||||||
default y
|
default y
|
||||||
depends on (BOARD_MIKOTO_520)
|
depends on (BOARD_MIKOTO)
|
||||||
|
|
||||||
choice BOARD_MIKOTO_CHARGER_CURRENT
|
choice BOARD_MIKOTO_CHARGER_CURRENT
|
||||||
prompt "Charge current to supply to attached batteries"
|
prompt "Charge current to supply to attached batteries"
|
||||||
depends on (BOARD_MIKOTO_520)
|
depends on (BOARD_MIKOTO)
|
||||||
|
|
||||||
config BOARD_MIKOTO_CHARGER_CURRENT_40MA
|
config BOARD_MIKOTO_CHARGER_CURRENT_40MA
|
||||||
bool "40mA charge current, for battery capacity 40mAh or higher"
|
bool "40mA charge current, for battery capacity 40mAh or higher"
|
||||||
|
@ -26,4 +26,4 @@ config BOARD_MIKOTO_CHARGER_CURRENT_350MA
|
||||||
config BOARD_MIKOTO_CHARGER_CURRENT_NONE
|
config BOARD_MIKOTO_CHARGER_CURRENT_NONE
|
||||||
bool "Disable charge current"
|
bool "Disable charge current"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
# Copyright (c) 2020 The ZMK Contributors
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
config BOARD_MIKOTO_520
|
config BOARD_MIKOTO
|
||||||
bool "mikoto_520"
|
bool "mikoto"
|
||||||
depends on SOC_NRF52840_QIAA
|
depends on SOC_NRF52840_QIAA
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Copyright (c) 2020 The ZMK Contributors
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
if BOARD_MIKOTO_520
|
if BOARD_MIKOTO
|
||||||
|
|
||||||
config BOARD
|
config BOARD
|
||||||
default "mikoto"
|
default "mikoto"
|
||||||
|
@ -25,4 +25,4 @@ choice BOARD_MIKOTO_CHARGER_CURRENT
|
||||||
default BOARD_MIKOTO_CHARGER_CURRENT_100MA
|
default BOARD_MIKOTO_CHARGER_CURRENT_100MA
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
endif # BOARD_MIKOTO_520
|
endif # BOARD_MIKOTO
|
||||||
|
|
59
app/boards/arm/mikoto/arduino_pro_micro_pins_6_1_0.dtsi
Normal file
59
app/boards/arm/mikoto/arduino_pro_micro_pins_6_1_0.dtsi
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* 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 4 0> /* D0 */
|
||||||
|
, <1 0 &gpio0 8 0> /* D1 */
|
||||||
|
, <2 0 &gpio0 17 0> /* D2 */
|
||||||
|
, <3 0 &gpio0 20 0> /* D3 */
|
||||||
|
, <4 0 &gpio0 22 0> /* D4/A6 */
|
||||||
|
, <5 0 &gpio0 24 0> /* D5 */
|
||||||
|
, <6 0 &gpio1 8 0> /* D6/A7 */
|
||||||
|
, <7 0 &gpio1 2 0> /* D7 */
|
||||||
|
, <8 0 &gpio1 4 0> /* D8/A8 */
|
||||||
|
, <9 0 &gpio1 6 0> /* D9/A9 */
|
||||||
|
, <10 0 &gpio0 9 0> /* D10/A10 */
|
||||||
|
, <16 0 &gpio0 10 0> /* D16 */
|
||||||
|
, <14 0 &gpio1 13 0> /* D14 */
|
||||||
|
, <15 0 &gpio0 2 0> /* D15 */
|
||||||
|
, <18 0 &gpio0 29 0> /* D18/A0 */
|
||||||
|
, <19 0 &gpio0 31 0> /* D19/A1 */
|
||||||
|
, <20 0 &gpio0 25 0> /* D20/A2 */
|
||||||
|
, <21 0 &gpio0 11 0> /* D21/A3 */
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
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 &gpio0 29 0> /* D18/A0 */
|
||||||
|
, <1 0 &gpio0 31 0> /* D19/A1 */
|
||||||
|
, <2 0 &gpio0 25 0> /* D20/A2 */
|
||||||
|
, <3 0 &gpio0 11 0> /* D21/A3 */
|
||||||
|
, <6 0 &gpio0 22 0> /* D4/A6 */
|
||||||
|
, <7 0 &gpio1 8 0> /* D6/A7 */
|
||||||
|
, <8 0 &gpio1 4 0> /* D8/A8 */
|
||||||
|
, <9 0 &gpio1 6 0> /* D9/A9 */
|
||||||
|
, <10 0 &gpio0 9 0> /* D10/A10 */
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
pro_micro_d: &pro_micro {};
|
||||||
|
pro_micro_i2c: &i2c0 {};
|
||||||
|
pro_micro_spi: &spi0 {};
|
||||||
|
pro_micro_serial: &uart0 {};
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include <nordic/nrf52840_qiaa.dtsi>
|
#include <nordic/nrf52840_qiaa.dtsi>
|
||||||
#include "arduino_pro_micro_pins.dtsi"
|
#include "arduino_pro_micro_pins_5_20_0.dtsi"
|
||||||
#include "mikoto_520-pinctrl.dtsi"
|
#include "mikoto_5_20_0-pinctrl.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "mikoto";
|
model = "mikoto";
|
|
@ -1,5 +1,5 @@
|
||||||
identifier: mikoto_520
|
identifier: mikoto
|
||||||
name: mikoto_520
|
name: mikoto
|
||||||
type: mcu
|
type: mcu
|
||||||
arch: arm
|
arch: arm
|
||||||
toolchain:
|
toolchain:
|
|
@ -1,6 +1,6 @@
|
||||||
file_format: "1"
|
file_format: "1"
|
||||||
id: mikoto_520
|
id: mikoto
|
||||||
name: Mikoto 5.20
|
name: Mikoto
|
||||||
type: board
|
type: board
|
||||||
arch: arm
|
arch: arm
|
||||||
outputs:
|
outputs:
|
7
app/boards/arm/mikoto/mikoto_5_20_0.overlay
Normal file
7
app/boards/arm/mikoto/mikoto_5_20_0.overlay
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "arduino_pro_micro_pins_5_20_0.dtsi"
|
7
app/boards/arm/mikoto/mikoto_6_1_0.overlay
Normal file
7
app/boards/arm/mikoto/mikoto_6_1_0.overlay
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "arduino_pro_micro_pins_6_1_0.dtsi"
|
7
app/boards/arm/mikoto/mikoto_7_1_0.overlay
Normal file
7
app/boards/arm/mikoto/mikoto_7_1_0.overlay
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "arduino_pro_micro_pins_6_1_0.dtsi"
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
CONFIG_SOC_SERIES_NRF52X=y
|
CONFIG_SOC_SERIES_NRF52X=y
|
||||||
CONFIG_SOC_NRF52840_QIAA=y
|
CONFIG_SOC_NRF52840_QIAA=y
|
||||||
CONFIG_BOARD_MIKOTO_520=y
|
CONFIG_BOARD_MIKOTO=y
|
||||||
|
|
||||||
# Enable MPU
|
# Enable MPU
|
||||||
CONFIG_ARM_MPU=y
|
CONFIG_ARM_MPU=y
|
||||||
|
|
||||||
CONFIG_PINCTRL=y
|
CONFIG_PINCTRL=y
|
||||||
|
|
||||||
# enable GPIO
|
# enable GPIO
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
static int pinmux_mikoto_init(void) {
|
static int pinmux_mikoto_init(void) {
|
||||||
|
|
||||||
#if CONFIG_BOARD_MIKOTO_520
|
#if CONFIG_BOARD_MIKOTO
|
||||||
const struct device *p0 = DEVICE_DT_GET(DT_NODELABEL(gpio0));
|
const struct device *p0 = DEVICE_DT_GET(DT_NODELABEL(gpio0));
|
||||||
const struct device *p1 = DEVICE_DT_GET(DT_NODELABEL(gpio1));
|
const struct device *p1 = DEVICE_DT_GET(DT_NODELABEL(gpio1));
|
||||||
#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_40MA
|
#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_40MA
|
||||||
|
|
6
app/boards/arm/mikoto/revision.cmake
Normal file
6
app/boards/arm/mikoto/revision.cmake
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
board_check_revision(FORMAT MAJOR.MINOR.PATCH
|
||||||
|
VALID_REVISIONS
|
||||||
|
5.20.0 # first public release
|
||||||
|
6.1.0 6.3.0 # incompatible pinout change from v5+
|
||||||
|
7.1.0 # addition of MAX17048; compatible pinout with v6+
|
||||||
|
)
|
Loading…
Add table
Reference in a new issue