From e5ea3d72831a38f4df0f768c4f7c65c714078ef1 Mon Sep 17 00:00:00 2001 From: digger vermont Date: Sat, 6 May 2023 14:39:23 -0400 Subject: [PATCH] Add usb_device to tofu65_v2.yaml this is likely the cause of no USB earlier * edit column 14 in the transform for the proper rows --- app/boards/arm/tofu/tofu65_v2.dts | 8 ++++---- app/boards/arm/tofu/tofu65_v2.yaml | 1 + app/boards/arm/tofu/tofu65_v2.zmk.yml | 2 +- app/boards/arm/tofu/tofu65_v2_defconfig | 7 +++++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/boards/arm/tofu/tofu65_v2.dts b/app/boards/arm/tofu/tofu65_v2.dts index b7a0f8cb..268b8286 100644 --- a/app/boards/arm/tofu/tofu65_v2.dts +++ b/app/boards/arm/tofu/tofu65_v2.dts @@ -56,10 +56,10 @@ // map = < RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) -RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11) RC(1,12) RC(1,13) RC(0,14) -RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2,12) RC(0,14) -RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) RC(3,13) RC(0,14) -RC(4,0) RC(4,1) RC(4,2) RC(4,6) RC(4,8) RC(4,9) RC(4,10) RC(4,12) RC(4,13) RC(0,14) +RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11) RC(1,12) RC(1,13) RC(1,14) +RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2,12) RC(2,14) +RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) RC(3,13) RC(3,14) +RC(4,0) RC(4,1) RC(4,2) RC(4,6) RC(4,8) RC(4,9) RC(4,10) RC(4,12) RC(4,13) RC(4,14) >; }; diff --git a/app/boards/arm/tofu/tofu65_v2.yaml b/app/boards/arm/tofu/tofu65_v2.yaml index e1752af3..4adf1484 100644 --- a/app/boards/arm/tofu/tofu65_v2.yaml +++ b/app/boards/arm/tofu/tofu65_v2.yaml @@ -13,6 +13,7 @@ supported: - gpio - adc - i2c + - usb_device - spi - hwinfo - watchdog diff --git a/app/boards/arm/tofu/tofu65_v2.zmk.yml b/app/boards/arm/tofu/tofu65_v2.zmk.yml index 78f47346..ec53e7f0 100644 --- a/app/boards/arm/tofu/tofu65_v2.zmk.yml +++ b/app/boards/arm/tofu/tofu65_v2.zmk.yml @@ -7,4 +7,4 @@ features: - keys outputs: - usb -url: https://olkb.com/collections/planck +url: diff --git a/app/boards/arm/tofu/tofu65_v2_defconfig b/app/boards/arm/tofu/tofu65_v2_defconfig index 03c4b4a6..2664ba98 100644 --- a/app/boards/arm/tofu/tofu65_v2_defconfig +++ b/app/boards/arm/tofu/tofu65_v2_defconfig @@ -6,14 +6,17 @@ CONFIG_BOARD_TOFU65_V2=y CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000 -# enable uart driver +# Enable uart driver CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y -# enable console +# Enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y +# Enable USB CDC ACM logging for debugging +CONFIG_ZMK_USB_LOGGING=y + # Enable reset by default CONFIG_RESET=y