Skip to content

Commit

Permalink
Fix pinctrl (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
yumagulovrn authored Mar 6, 2024
1 parent 9df2db2 commit 491c6c7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
5 changes: 1 addition & 4 deletions config/boards/arm/dao/board.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
#

board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset")
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
20 changes: 8 additions & 12 deletions config/boards/arm/dao/dao.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


/ {
model = "dao";
model = "Dao";
compatible = "dao";

chosen {
Expand Down Expand Up @@ -71,6 +71,13 @@
;
};

leds {
compatible = "gpio-leds";
blue_led: led_0 {
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
};

vbatt: vbatt {
compatible = "zmk,battery-voltage-divider";
label = "VBATT";
Expand Down Expand Up @@ -102,17 +109,6 @@
status = "okay";
};

&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <115200>;
tx-pin = <19>;
rx-pin = <21>;
rts-pin = <23>;
cts-pin = <25>;
};


&flash0 {
/*
* For more information, see:
Expand Down
2 changes: 2 additions & 0 deletions config/boards/arm/dao/dao_left_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

CONFIG_ZMK_USB=y
CONFIG_ZMK_BLE=y

CONFIG_PINCTRL=n
4 changes: 3 additions & 1 deletion config/boards/arm/dao/dao_right_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ CONFIG_BUILD_OUTPUT_UF2=y
# Increase transmit power level
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

CONFIG_ZMK_USB=y
CONFIG_ZMK_USB=n
CONFIG_ZMK_BLE=y

CONFIG_PINCTRL=n

0 comments on commit 491c6c7

Please sign in to comment.