Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards: nrf9160dk: Add support for newer revisions (0.14.0+) of the DK #31624

Merged
merged 3 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion boards/arm/nrf9160dk_nrf52840/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

zephyr_library()
zephyr_library_sources(board.c)
zephyr_library_sources(integrity.c)
238 changes: 0 additions & 238 deletions boards/arm/nrf9160dk_nrf52840/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,244 +10,6 @@ config BOARD_ENABLE_DCDC
select SOC_DCDC_NRF52X
default y

choice
prompt "nRF9160 UART0 routing"
default BOARD_NRF9160DK_UART0_VCOM

config BOARD_NRF9160DK_UART0_VCOM
bool "Route to VCOM0"

config BOARD_NRF9160DK_UART0_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "nRF9160 UART1 routing"
default BOARD_NRF9160DK_UART1_VCOM

config BOARD_NRF9160DK_UART1_VCOM
bool "Route to VCOM2"

config BOARD_NRF9160DK_UART1_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "LED 1 routing"
default BOARD_NRF9160DK_LED0_PHY

config BOARD_NRF9160DK_LED0_PHY
bool "Route to LED on the kit"

config BOARD_NRF9160DK_LED0_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "LED 2 routing"
default BOARD_NRF9160DK_LED1_PHY

config BOARD_NRF9160DK_LED1_PHY
bool "Route to LED on the kit"

config BOARD_NRF9160DK_LED1_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "LED 3 routing"
default BOARD_NRF9160DK_LED2_PHY

config BOARD_NRF9160DK_LED2_PHY
bool "Route to LED on the kit"

config BOARD_NRF9160DK_LED2_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "LED 4 routing"
default BOARD_NRF9160DK_LED3_PHY

config BOARD_NRF9160DK_LED3_PHY
bool "Route to LED on the kit"

config BOARD_NRF9160DK_LED3_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "Button 1 routing"
default BOARD_NRF9160DK_BUTTON0_PHY

config BOARD_NRF9160DK_BUTTON0_PHY
bool "Route to buttons on the kit"

config BOARD_NRF9160DK_BUTTON0_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "Button 2 routing"
default BOARD_NRF9160DK_BUTTON1_PHY

config BOARD_NRF9160DK_BUTTON1_PHY
bool "Route to buttons on the kit"

config BOARD_NRF9160DK_BUTTON1_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "Switch 1 routing"
default BOARD_NRF9160DK_SWITCH0_PHY

config BOARD_NRF9160DK_SWITCH0_PHY
bool "Route to switches on the kit"

config BOARD_NRF9160DK_SWITCH0_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "Switch 2 routing"
default BOARD_NRF9160DK_SWITCH1_PHY

config BOARD_NRF9160DK_SWITCH1_PHY
bool "Route to switches on the kit"

config BOARD_NRF9160DK_SWITCH1_ARDUINO
bool "Route to Arduino pins"

endchoice

choice
prompt "Interface pins 0-2"
default BOARD_NRF9160DK_INTERFACE0_ARDUINO

config BOARD_NRF9160DK_INTERFACE0_ARDUINO
bool "Route to Arduino pins"
help
Pin 0: nRF9160 P0.17 connects to A3
Pin 1: nRF9160 P0.18 connects to A4
Pin 2: nRF9160 P0.19 connects to A5

config BOARD_NRF9160DK_INTERFACE0_MCU
bool "Route to nRF52840"
help
This connects the following pins on the nRF9160 to pins on the nRF52840:
Pin 0: nRF9160 P0.17 connects to nRF52840 P0.17
Pin 1: nRF9160 P0.18 connects to nRF52840 P0.20
Pin 2: nRF9160 P0.19 connects to nRF52840 P0.15

endchoice

choice
prompt "Interface pins 3-5"
default BOARD_NRF9160DK_INTERFACE1_TRACE

config BOARD_NRF9160DK_INTERFACE1_TRACE
bool "Route to TRACE interface"
help
Pin 3: nRF9160 P0.21 connects to TRACECLK
Pin 4: nRF9160 P0.22 connects to TRACEDATA0
Pin 5: nRF9160 P0.23 connects to TRACEDATA1

config BOARD_NRF9160DK_INTERFACE1_MCU
bool "Route to nRF52840"
help
Pin 3: nRF9160 P0.21 connects to nRF52840 P0.22
Pin 4: nRF9160 P0.22 connects to nRF52840 P1.04
Pin 5: nRF9160 P0.23 connects to nRF52840 P1.02

endchoice

choice
prompt "Interface pins 6-8"
default BOARD_NRF9160DK_INTERFACE2_COEX

config BOARD_NRF9160DK_INTERFACE2_COEX
bool "Route to COEX interface"
help
Pin 6: nRF9160 COEX0 connects to COEX0_PH
Pin 7: nRF9160 COEX1 connects to COEX1_PH
Pin 8: nRF9160 COEX2 connects to COEX2_PH

config BOARD_NRF9160DK_INTERFACE2_MCU
bool "Route to nRF52840"
help
Pin 6: nRF9160 COEX0 connects to nRF52840 P1.13
Pin 7: nRF9160 COEX1 connects to nRF52840 P1.11
Pin 8: nRF9160 COEX2 connects to nRF52840 P1.15

endchoice

config BOARD_NRF9160DK_NRF52840_RESET
bool "Enable GPIO reset line"
help
Let the nRF52840 be reset from the nRF9160 via a GPIO line.
The GPIO line may only be one of the first 6 MCU interface pins.
The line is active high.

choice
prompt "Pin used for reset"
depends on BOARD_NRF9160DK_NRF52840_RESET

comment "nRF52840 pins"

config BOARD_NRF9160DK_NRF52840_RESET_P0_17
bool "P0.17"
depends on BOARD_NRF9160DK_INTERFACE0_MCU
help
Pin P0.17 on nRF52840,
connected to P0.17 on the nRF9160.

config BOARD_NRF9160DK_NRF52840_RESET_P0_20
bool "P0.20"
depends on BOARD_NRF9160DK_INTERFACE0_MCU
help
Pin P0.20 on nRF52840,
connected to P0.18 on the nRF9160.

config BOARD_NRF9160DK_NRF52840_RESET_P0_15
bool "P0.15"
depends on BOARD_NRF9160DK_INTERFACE0_MCU
help
Pin P0.15 on nRF52840,
connected to P0.19 on the nRF9160.

config BOARD_NRF9160DK_NRF52840_RESET_P0_22
bool "P0.22"
depends on BOARD_NRF9160DK_INTERFACE1_MCU
help
Pin P0.22 on nRF52840,
connected to P0.21 on the nRF9160.

config BOARD_NRF9160DK_NRF52840_RESET_P1_04
bool "P1.04"
depends on BOARD_NRF9160DK_INTERFACE1_MCU
help
Pin P1.04 on nRF52840,
connected to P0.22 on the nRF9160.

config BOARD_NRF9160DK_NRF52840_RESET_P1_02
bool "P1.02"
depends on BOARD_NRF9160DK_INTERFACE1_MCU
help
Pin P1.02 on nRF52840,
connected to P0.23 on the nRF9160.

endchoice

module = BOARD_NRF9160DK
module-str = Board Control
source "subsys/logging/Kconfig.template.log_config"
Expand Down
3 changes: 3 additions & 0 deletions boards/arm/nrf9160dk_nrf52840/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ config BOARD
config BT_CTLR
default BT

config BT_WAIT_NOP
default BT && $(dt_nodelabel_enabled,reset_input)

endif # BOARD_NRF9160DK_NRF52840
Loading