From c96e61640eb0449a0ff80ef2aed9f6ff73e70915 Mon Sep 17 00:00:00 2001 From: Darryldh Date: Thu, 16 Jun 2022 16:15:36 -0400 Subject: [PATCH] initial files --- app/boards/arm/corne-ish_zen/Kconfig.board | 12 ++ .../arm/corne-ish_zen/Kconfig.defconfig | 111 ++++++++++++++++++ app/boards/arm/corne-ish_zen/board.cmake | 5 + .../arm/corne-ish_zen/corne-ish_zen.dtsi | 0 .../arm/corne-ish_zen/corne-ish_zen.yaml | 20 ++++ .../corne-ish_zen/corne-ish_zen_v2.zmk.yml | 16 +++ 6 files changed, 164 insertions(+) create mode 100644 app/boards/arm/corne-ish_zen/Kconfig.board create mode 100644 app/boards/arm/corne-ish_zen/Kconfig.defconfig create mode 100644 app/boards/arm/corne-ish_zen/board.cmake create mode 100644 app/boards/arm/corne-ish_zen/corne-ish_zen.dtsi create mode 100644 app/boards/arm/corne-ish_zen/corne-ish_zen.yaml create mode 100644 app/boards/arm/corne-ish_zen/corne-ish_zen_v2.zmk.yml diff --git a/app/boards/arm/corne-ish_zen/Kconfig.board b/app/boards/arm/corne-ish_zen/Kconfig.board new file mode 100644 index 00000000..4a935e26 --- /dev/null +++ b/app/boards/arm/corne-ish_zen/Kconfig.board @@ -0,0 +1,12 @@ +# +# Copyright (c) 2021 Darryl deHaan +# SPDX-License-Identifier: MIT +# + +config BOARD_CORNEISH_ZEN_V2_LEFT + bool "corneish_zen_left" + depends on SOC_NRF52840_QIAA + +config BOARD_CORNEISH_ZEN_V2_RIGHT + bool "corneish_zen_right" + depends on SOC_NRF52840_QIAA \ No newline at end of file diff --git a/app/boards/arm/corne-ish_zen/Kconfig.defconfig b/app/boards/arm/corne-ish_zen/Kconfig.defconfig new file mode 100644 index 00000000..6bf954c7 --- /dev/null +++ b/app/boards/arm/corne-ish_zen/Kconfig.defconfig @@ -0,0 +1,111 @@ +# +# Copyright (c) 2021 Darryl deHaan +# SPDX-License-Identifier: MIT +# + +if BOARD_CORNEISH_ZEN_V2_LEFT + + config ZMK_KEYBOARD_NAME + default "Corne-ish Zen" + +endif # BOARD_CORNEISH_ZEN_V2_LEFT + +if BOARD_CORNEISH_ZEN_V2_RIGHT + + config ZMK_KEYBOARD_NAME + default "Corne-ish Zen rt" + +endif # BOARD_CORNEISH_ZEN_V2_RIGHT + + +if BOARD_CORNEISH_ZEN_V2_LEFT || BOARD_CORNEISH_ZEN_V2_RIGHT + +config BOARD + default "corne-ish_zen" + +config ZMK_SPLIT + default y + +#config I2C +# bool +# default y + +#config I2C_0 +# bool +# default y +# depends on I2C + +menuconfig SENSOR + bool "Sensor Drivers" + +#config BQ274XX +# bool "BQ274xx Fuel Gauge" +# depends on I2C && SENSOR + +config SENSOR_CAN_FETCH_ALL + bool "Can the fuel gauge fetch all channels at once" + default y + +config SPI + bool + default y + +config BT_CTLR + default BT + +config ZMK_BLE + default y + +config ZMK_USB + default y + +if USB + +config USB_NRFX + default y + +config USB_DEVICE_STACK + default y + +endif # USB + +config ZMK_DISPLAY + select LVGL_USE_CONT + select LVGL_FONT_MONTSERRAT_26 + select LVGL_FONT_MONTSERRAT_20 + select LVGL_FONT_MONTSERRAT_16 + select LVGL_USE_LABEL + select LVGL_USE_IMG + +choice ZMK_DISPLAY_STATUS_SCREEN + default ZMK_DISPLAY_STATUS_SCREEN_CUSTOM +endchoice + +if ZMK_DISPLAY + +config SPI + default y + +config IL0323 + bool + default y + +#config DISPLAY_WOB +# bool "White on Black Display" +# default n + +endif # ZMK_DISPLAY + +menuconfig CUSTOM_WIDGET_BATTERY_STATUS + bool "custom battery status widget" + +menuconfig CUSTOM_WIDGET_OUTPUT_STATUS + bool "custom output status widget" + +menuconfig CUSTOM_WIDGET_LAYER_STATUS + bool "custom layer status widget" + +# config CORNE_ISH_ZEN_20 +# bool + +endif # BOARD_CORNEISH_ZEN_V2_LEFT || BOARD_CORNEISH_ZEN_V2_RIGHT \ No newline at end of file diff --git a/app/boards/arm/corne-ish_zen/board.cmake b/app/boards/arm/corne-ish_zen/board.cmake new file mode 100644 index 00000000..fa847d50 --- /dev/null +++ b/app/boards/arm/corne-ish_zen/board.cmake @@ -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) diff --git a/app/boards/arm/corne-ish_zen/corne-ish_zen.dtsi b/app/boards/arm/corne-ish_zen/corne-ish_zen.dtsi new file mode 100644 index 00000000..e69de29b diff --git a/app/boards/arm/corne-ish_zen/corne-ish_zen.yaml b/app/boards/arm/corne-ish_zen/corne-ish_zen.yaml new file mode 100644 index 00000000..7975b262 --- /dev/null +++ b/app/boards/arm/corne-ish_zen/corne-ish_zen.yaml @@ -0,0 +1,20 @@ +identifier: corne-ish_zen_v2 +name: Corne-ish Zen v2 +url: https://lowprokb.ca/collections/keyboards/products/corne-ish-zen +type: mcu +arch: arm +toolchain: + - zephyr + - gnuarmemb + - xtools +ram: 40 +supported: + - adc + - usb_device + - ble + - ieee802154 + - pwm + - watchdog + - gpio + - i2c + - spi diff --git a/app/boards/arm/corne-ish_zen/corne-ish_zen_v2.zmk.yml b/app/boards/arm/corne-ish_zen/corne-ish_zen_v2.zmk.yml new file mode 100644 index 00000000..facc9eb9 --- /dev/null +++ b/app/boards/arm/corne-ish_zen/corne-ish_zen_v2.zmk.yml @@ -0,0 +1,16 @@ +file_format: "1" +id: corne-ish_zen_v2 +name: Corne-ish Zen v2 +url: https://lowprokb.ca/collections/keyboards/products/corne-ish-zen +type: board +arch: arm +features: + - keys + - display +outputs: + - usb + - ble +siblings: + - corneish_zen_left + - corneish_zen_right +