fix(boards): Base config/overlay for rp2040 boards
Baseline config and overlay for the following: * `rpi_pico` * `adafruit_kb2040` * `sparkfun_pro_micro_rp2040` * `adafruit_qt_py_rp2040` * `seeeduino_xiao_rp2040` * `boardsource_blok` * `01space_rp2040_042lcd` Co-authored-by: Joel Spadin <joelspadin@gmail.com>
This commit is contained in:
parent
4ff1a4d3ea
commit
31f664ffec
20 changed files with 158 additions and 0 deletions
6
app/boards/01space_rp2040_042lcd.conf
Normal file
6
app/boards/01space_rp2040_042lcd.conf
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
CONFIG_LV_FONT_UNSCII_8=n
|
||||||
|
CONFIG_ZMK_USB=y
|
||||||
|
CONFIG_I2C=y
|
||||||
|
CONFIG_I2C_DW=y
|
||||||
|
CONFIG_LV_Z_VDB_SIZE=50
|
9
app/boards/01space_rp2040_042lcd.overlay
Normal file
9
app/boards/01space_rp2040_042lcd.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&xiao_serial { status = "disabled"; };
|
4
app/boards/adafruit_kb2040.conf
Normal file
4
app/boards/adafruit_kb2040.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_ZMK_USB=y
|
9
app/boards/adafruit_kb2040.overlay
Normal file
9
app/boards/adafruit_kb2040.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&pro_micro_serial { status = "disabled"; };
|
4
app/boards/adafruit_qt_py_rp2040.conf
Normal file
4
app/boards/adafruit_qt_py_rp2040.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_ZMK_USB=y
|
9
app/boards/adafruit_qt_py_rp2040.overlay
Normal file
9
app/boards/adafruit_qt_py_rp2040.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&xiao_serial { status = "disabled"; };
|
9
app/boards/arm/adafruit_kb2040/adafruit_kb2040.zmk.yml
Normal file
9
app/boards/arm/adafruit_kb2040/adafruit_kb2040.zmk.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: adafruit_kb2040
|
||||||
|
name: Adafruit KB2040
|
||||||
|
type: board
|
||||||
|
arch: arm
|
||||||
|
outputs:
|
||||||
|
- usb
|
||||||
|
url: https://www.adafruit.com/product/5302
|
||||||
|
exposes: [pro_micro]
|
|
@ -0,0 +1,9 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: adafruit_qt_py_rp2040
|
||||||
|
name: Adafruit QT Py RP2040
|
||||||
|
type: board
|
||||||
|
arch: arm
|
||||||
|
outputs:
|
||||||
|
- usb
|
||||||
|
url: https://www.adafruit.com/product/4900
|
||||||
|
exposes: [seeed_xiao]
|
9
app/boards/arm/boardsource_blok/boardsource_blok.zmk.yml
Normal file
9
app/boards/arm/boardsource_blok/boardsource_blok.zmk.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: boardsource_blok
|
||||||
|
name: BoardSource blok
|
||||||
|
type: board
|
||||||
|
arch: arm
|
||||||
|
outputs:
|
||||||
|
- usb
|
||||||
|
url: https://peg.software/docs/blok
|
||||||
|
exposes: [pro_micro]
|
|
@ -0,0 +1,9 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: seeeduino_xiao_rp2040
|
||||||
|
name: Seeeduino XIAO RP2040
|
||||||
|
type: board
|
||||||
|
arch: arm
|
||||||
|
outputs:
|
||||||
|
- usb
|
||||||
|
url: https://wiki.seeedstudio.com/XIAO-RP2040/
|
||||||
|
exposes: [seeed_xiao]
|
|
@ -0,0 +1,9 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: sparkfun_pro_micro_rp2040
|
||||||
|
name: SparkFun Pro Micro RP2040
|
||||||
|
type: board
|
||||||
|
arch: arm
|
||||||
|
outputs:
|
||||||
|
- usb
|
||||||
|
url: https://www.sparkfun.com/products/18288
|
||||||
|
exposes: [pro_micro]
|
4
app/boards/boardsource_blok.conf
Normal file
4
app/boards/boardsource_blok.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_ZMK_USB=y
|
9
app/boards/boardsource_blok.overlay
Normal file
9
app/boards/boardsource_blok.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&pro_micro_serial { status = "disabled"; };
|
5
app/boards/rpi_pico.conf
Normal file
5
app/boards/rpi_pico.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||||
|
CONFIG_ZMK_USB=y
|
8
app/boards/rpi_pico.overlay
Normal file
8
app/boards/rpi_pico.overlay
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
4
app/boards/seeeduino_xiao_rp2040.conf
Normal file
4
app/boards/seeeduino_xiao_rp2040.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_ZMK_USB=y
|
9
app/boards/seeeduino_xiao_rp2040.overlay
Normal file
9
app/boards/seeeduino_xiao_rp2040.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&xiao_serial { status = "disabled"; };
|
4
app/boards/sparkfun_pro_micro_rp2040.conf
Normal file
4
app/boards/sparkfun_pro_micro_rp2040.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_UART_CONSOLE=n
|
||||||
|
CONFIG_ZMK_USB=y
|
9
app/boards/sparkfun_pro_micro_rp2040.overlay
Normal file
9
app/boards/sparkfun_pro_micro_rp2040.overlay
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "usb_console.dtsi"
|
||||||
|
|
||||||
|
&pro_micro_serial { status = "disabled"; };
|
20
app/boards/usb_console.dtsi
Normal file
20
app/boards/usb_console.dtsi
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,console = &cdc_acm_uart;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbd {
|
||||||
|
cdc_acm_uart: cdc_acm_uart {
|
||||||
|
compatible = "zephyr,cdc-acm-uart";
|
||||||
|
label = "CDC_ACM_0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue