Skip to content

Commit 33524e9

Browse files
Damian-Nordicrlubos
authored andcommitted
samples: ps_server: define GPIOs for "ot diag gpio"
Define "openthread_config" DTS node with the definition of GPIOs to be used by the "ot diag gpio" commands. Btw, remove a leftover file for nRF54L15 PDK. Signed-off-by: Damian Krolik <[email protected]>
1 parent b6c93e1 commit 33524e9

File tree

6 files changed

+47
-38
lines changed

6 files changed

+47
-38
lines changed

samples/nrf_rpc/protocols_serialization/server/snippets/log_rpc/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

Lines changed: 0 additions & 35 deletions
This file was deleted.

samples/nrf_rpc/protocols_serialization/server/snippets/log_rpc/snippet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ boards:
1212
nrf52840dk/nrf52840:
1313
append:
1414
EXTRA_DTC_OVERLAY_FILE: boards/nrf52840dk_nrf52840.overlay
15-
nrf54l15pdk/nrf54l15/cpuapp:
16-
append:
17-
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15pdk_nrf54l15_cpuapp.overlay
1815
nrf54l15dk/nrf54l15/cpuapp:
1916
append:
2017
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/ {
7+
openthread_config: openthread {
8+
compatible = "openthread,config";
9+
diag-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>, // LED 1
10+
<&gpio0 14 GPIO_ACTIVE_LOW>, // LED 2
11+
<&gpio0 15 GPIO_ACTIVE_LOW>, // LED 3
12+
<&gpio0 16 GPIO_ACTIVE_LOW>, // LED 4
13+
<&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 1
14+
<&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 2
15+
<&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 3
16+
<&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; // Button 4
17+
};
18+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/ {
7+
openthread_config: openthread {
8+
compatible = "openthread,config";
9+
diag-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>, // LED 0
10+
<&gpio1 10 GPIO_ACTIVE_HIGH>, // LED 1
11+
<&gpio2 7 GPIO_ACTIVE_HIGH>, // LED 2
12+
<&gpio1 14 GPIO_ACTIVE_HIGH>, // LED 3
13+
<&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 0
14+
<&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 1
15+
<&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, // Button 2
16+
<&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; // Button 3
17+
};
18+
};

samples/nrf_rpc/protocols_serialization/server/snippets/openthread/openthread.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ CONFIG_OPENTHREAD_RPC_SERVER=y
1717
CONFIG_OPENTHREAD_MANUAL_START=y
1818
CONFIG_NET_BUF_RX_COUNT=80
1919
CONFIG_NET_BUF_TX_COUNT=80
20+
21+
# OpenThread "diag" command dependencies
22+
CONFIG_GPIO_GET_DIRECTION=y

samples/nrf_rpc/protocols_serialization/server/snippets/openthread/snippet.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@
77
name: openthread
88
append:
99
EXTRA_CONF_FILE: openthread.conf
10+
11+
boards:
12+
nrf54l15dk/nrf54l15/cpuapp:
13+
append:
14+
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay
15+
nrf52840dk/nrf52840:
16+
append:
17+
EXTRA_DTC_OVERLAY_FILE: boards/nrf52840dk_nrf52840.overlay

0 commit comments

Comments
 (0)