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

NCD-822: Support nRF-9161-DK r1.0.0 #85

Merged
merged 3 commits into from
Mar 21, 2024
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
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## NEXT - UNRELEASED

EXPERIMENTAL RELEASE

### Added

- Support for nRF9161-DK r1.0.0

## 0.1.12 - 2024-03-20

EXPERIMENTAL RELEASE
Expand Down
2 changes: 1 addition & 1 deletion doc/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Board Configurator is installed and updated using [nRF Connect for Desktop](http

## Supported devices

- nRF9161 DK (v0.9.1)
- nRF9161 DK
- nRF9151 DK
153 changes: 153 additions & 0 deletions src/common/boards/nrf_PCA10153_1.0.0_9161.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"board": {
"boardVersion": "PCA10153",
"boardRevision": "1.0.0",
"boardName": "nRF9161-DK v1.0.0"
},
"pins": [
{
"type": "vcom",
"id": "vcom0",
"name": "VCOM0",
"enable": {
"pin": 42,
"invert": true
},
"hwfc": {
"pin": 20,
"invert": true
}
},
{
"type": "vcom",
"id": "vcom1",
"name": "VCOM1",
"enable": {
"pin": 22,
"invert": true
},
"hwfc": {
"pin": 23,
"invert": true
}
},
{
"type": "switch",
"id": "swd-control",
"title": "Software Debugger (SWD)",
"label": "Disable to use an external debugger on the target chip.",
"tooltip": "When enabled, the SWD is connected and the IMCU is acting as the debugger. When disabled, the SWD is disconnected and you can use an external debugger connected to the Debug In header.",
"enable": {
"pin": 6,
"invert": true
}
},
{
"type": "switch",
"id": "shield-reset-in",
"title": "Shield Reset In",
"label": "Connect reset line coming from a connected DK shield.",
"enable": {
"pin": 7
}
},
{
"type": "switch",
"id": "shield-reset-out",
"title": "Shield Reset Out",
"label": "Connect reset line going to a connected DK shield.",
"enable": {
"pin": 8
}
},
{
"type": "slide",
"id": "sim-select",
"title": "SIM Option",
"enable": {
"pin": 14
},
"alternatives": ["eSIM", "SIM Card"]
},
{
"type": "switch",
"id": "modem-coexistence-interface",
"title": "Modem coexistence interface",
"label": "Enable or disable the GPIO pin connection to the coexistence interface. This is done so that the GPIO pins can be used for other use cases.",
"enable": {
"pin": 18,
"invert": true
}
},
{
"type": "slide",
"id": "io-expander",
"title": "LED and button connection",
"label": "Connect directly using GPIO pins or through I²C using the IO Expander module. Using IO Expander frees up LED and button GPIO pins on nRF9161.",
"enable": {
"pin": 45
},
"alternatives": ["GPIO", "IO Expander"]
},
{
"type": "switch",
"id": "external-memory",
"title": "External memory",
"label": "Enable or disable the external memory chip.",
"enable": {
"pin": 47,
"invert": true
}
}
],
"pmicPorts": [],
"defaults": {
"pins": [
{
"pin": 42,
"state": false
},
{
"pin": 20,
"state": false
},
{
"pin": 22,
"state": false
},
{
"pin": 23,
"state": false
},
{
"pin": 6,
"state": false
},
{
"pin": 7,
"state": false
},
{
"pin": 8,
"state": false
},
{
"pin": 14,
"state": false
},
{
"pin": 18,
"state": false
},
{
"pin": 45,
"state": false
},
{
"pin": 47,
"state": true
}
],
"pmicPorts": []
}
}
5 changes: 5 additions & 0 deletions src/features/Configuration/boardDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import BoardControllerConfigDefinition from '../../common/boards/BoardController
import nrf54h20json from '../../common/boards/nrf_PCA10145_54H20.json';
import nrf9161v091json from '../../common/boards/nrf_PCA10153_0.9.1_9161.json';
import nrf9161v0100json from '../../common/boards/nrf_PCA10153_0.10.0_9161.json';
import nrf9161v100json from '../../common/boards/nrf_PCA10153_1.0.0_9161.json';
import nrf54l15v020json from '../../common/boards/nrf_PCA10156_0.2.0.json';
import nrf54l15v030json from '../../common/boards/nrf_PCA10156_0.3.0.json';
import nrf9151v020json from '../../common/boards/nrf_PCA10171_0.2.0_9151.json';
Expand All @@ -26,6 +27,7 @@ export type BoardDefinition = {

const typednrf9161json = nrf9161v0100json as BoardControllerConfigDefinition;
const typednrf9161v091 = nrf9161v091json as BoardControllerConfigDefinition;
const typednrf9161v100 = nrf9161v100json as BoardControllerConfigDefinition;
const typednrf54l15v020json =
nrf54l15v020json as BoardControllerConfigDefinition;
const typednrf54l15v030json =
Expand Down Expand Up @@ -59,6 +61,9 @@ export function getBoardDefinition(
if (boardRevision === '0.9.0' || boardRevision === '0.9.1') {
return { boardControllerConfigDefinition: typednrf9161v091 };
}
if (boardRevision === '1.0.0') {
return { boardControllerConfigDefinition: typednrf9161v100 };
}

if (!boardRevision) {
return { controlFlag: { noRevision: true } };
Expand Down