Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
move UHK 80 boards into a single directory to eliminate duplicate files
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Nov 20, 2024
1 parent d8b0a62 commit 3e632c5
Show file tree
Hide file tree
Showing 30 changed files with 120 additions and 183 deletions.
6 changes: 0 additions & 6 deletions boards/ugl/uhk-80-left/Kconfig.board

This file was deleted.

29 changes: 0 additions & 29 deletions boards/ugl/uhk-80-left/Kconfig.defconfig

This file was deleted.

5 changes: 0 additions & 5 deletions boards/ugl/uhk-80-left/board.yml

This file was deleted.

29 changes: 0 additions & 29 deletions boards/ugl/uhk-80-right/Kconfig.defconfig

This file was deleted.

12 changes: 0 additions & 12 deletions boards/ugl/uhk-80-right/board.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions boards/ugl/uhk-80-right/board.yml

This file was deleted.

7 changes: 0 additions & 7 deletions boards/ugl/uhk-80-right/pre_dt_board.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config BOARD_UHK_80_LEFT
bool "UHK 80 left"
depends on SOC_NRF52840_QIAA

config BOARD_UHK_80_RIGHT
bool "UHK 80 right"
depends on SOC_NRF52840_QIAA

config BOARD_UHK_DONGLE
bool "UHK dongle"
depends on SOC_NRF52840_QIAA
68 changes: 68 additions & 0 deletions boards/ugl/uhk-80/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# SPDX-License-Identifier: Apache-2.0
# used for both zephyr and mcuboot -> no custom kconfig symbols here

if SHELL_BACKEND_RTT
if BOARD_UHK_80_LEFT
config SHELL_PROMPT_RTT
default "uhk80:left$ "
endif
if BOARD_UHK_80_RIGHT
config SHELL_PROMPT_RTT
default "uhk80:right$ "
endif
if BOARD_UHK_DONGLE
config SHELL_PROMPT_RTT
default "uhk-dongle$ "
endif
endif # SHELL_BACKEND_RTT

if SHELL_BACKEND_SERIAL
if BOARD_UHK_80_LEFT
config SHELL_PROMPT_UART
default "uhk80:left$ "
endif
if BOARD_UHK_80_RIGHT
config SHELL_PROMPT_UART
default "uhk80:right$ "
endif
if BOARD_UHK_DONGLE
config SHELL_PROMPT_UART
default "uhk-dongle$ "
endif
endif # SHELL_BACKEND_SERIAL

if BOARD_UHK_80_LEFT
config USB_DEVICE_PRODUCT
default "UHK 80 left half"
config USB_DEVICE_PID
default 0x0007
if BT_DIS && BT_DIS_PNP
config BT_DIS_PNP_PID
default 0x8007
endif # BT_DIS && BT_DIS_PNP
endif

if BOARD_UHK_80_RIGHT
config USB_DEVICE_PRODUCT
default "UHK 80 right half"
config USB_DEVICE_PID
default 0x0009
if BT_DIS && BT_DIS_PNP
config BT_DIS_PNP_PID
default 0x8009
endif # BT_DIS && BT_DIS_PNP
endif

if BOARD_UHK_DONGLE
config USB_DEVICE_PRODUCT
default "UHK dongle"
config USB_DEVICE_PID
default 0x0005
if BT_DIS && BT_DIS_PNP
config BT_DIS_PNP_PID
default 0x8005
endif # BT_DIS && BT_DIS_PNP
endif

config BT_CTLR
default BT
File renamed without changes.
13 changes: 13 additions & 0 deletions boards/ugl/uhk-80/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
boards:
- name: uhk-80-left
vendor: ugl
socs:
- name: nrf52840
- name: uhk-80-right
vendor: ugl
socs:
- name: nrf52840
- name: uhk-dongle
vendor: ugl
socs:
- name: nrf52840
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "../shared.dtsi"
#include "shared.dtsi"

&gpio1 {
status = "okay";
Expand Down Expand Up @@ -53,7 +53,7 @@
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 24)>,
<NRF_PSEL(UART_TX, 0, 25)>;
<NRF_PSEL(UART_TX, 0, 25)>;
low-power-enable;
};
};
Expand All @@ -71,7 +71,7 @@
uart1_sleep: uart1_sleep {
group1 {
psels = <NRF_PSEL(UART_RX, 1, 8)>,
<NRF_PSEL(UART_TX, 0, 7)>;
<NRF_PSEL(UART_TX, 0, 7)>;
low-power-enable;
};
};
Expand All @@ -93,18 +93,18 @@

i2c2_default: i2c2_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
bias-pull-up;
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
bias-pull-up;
};
};
i2c2_sleep: i2c2_sleep {
};
i2c2_sleep: i2c2_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
low-power-enable;
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
low-power-enable;
};
};
};
};

&spi1 {
Expand Down Expand Up @@ -171,8 +171,8 @@
};

col1: col1 {
gpios = <&gpio0 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
label = "col1";
gpios = <&gpio0 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
label = "col1";
};
col2: col2 {
gpios = <&gpio0 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "../shared.dtsi"
#include "shared.dtsi"

&gpio1 {
status = "okay";
Expand Down Expand Up @@ -53,7 +53,7 @@
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 23)>,
<NRF_PSEL(UART_TX, 0, 21)>;
<NRF_PSEL(UART_TX, 0, 21)>;
low-power-enable;
};
};
Expand All @@ -71,7 +71,7 @@
uart1_sleep: uart1_sleep {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 11)>,
<NRF_PSEL(UART_TX, 0, 12)>;
<NRF_PSEL(UART_TX, 0, 12)>;
low-power-enable;
};
};
Expand All @@ -92,16 +92,16 @@
};
i2c2_default: i2c2_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 0, 25)>;
bias-pull-up;
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 0, 25)>;
bias-pull-up;
};
};
i2c2_sleep: i2c2_sleep {
};
i2c2_sleep: i2c2_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 0, 25)>;
low-power-enable;
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 0, 25)>;
low-power-enable;
};
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "../shared.dtsi"
#include "shared.dtsi"

&pwm0 {
status = "okay";
Expand All @@ -23,25 +23,25 @@
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 29)>,
<NRF_PSEL(UART_TX, 0, 22)>;
<NRF_PSEL(UART_TX, 0, 22)>;
low-power-enable;
};
};

pwm0_default: pwm0_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 8)>,
<NRF_PSEL(PWM_OUT1, 1, 9)>,
<NRF_PSEL(PWM_OUT2, 0, 12)>;
<NRF_PSEL(PWM_OUT1, 1, 9)>,
<NRF_PSEL(PWM_OUT2, 0, 12)>;
nordic,invert;
};
};

pwm0_sleep: pwm0_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 8)>,
<NRF_PSEL(PWM_OUT1, 1, 9)>,
<NRF_PSEL(PWM_OUT2, 0, 12)>;
<NRF_PSEL(PWM_OUT1, 1, 9)>,
<NRF_PSEL(PWM_OUT2, 0, 12)>;
low-power-enable;
};
};
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions boards/ugl/uhk-dongle/Kconfig.board

This file was deleted.

29 changes: 0 additions & 29 deletions boards/ugl/uhk-dongle/Kconfig.defconfig

This file was deleted.

Loading

0 comments on commit 3e632c5

Please sign in to comment.