-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: bluetooth: radio_coex_1wire: Add support for nRF54H20
This commit adds support for nRF54H20 for this sample. Explicit binding and extra node is needed because nrf-regtool doesn't pick up properties from the zephyr,user node. Because of this, it doesn't add to the UICR of the radio core the gpio that sample needs. Other platforms don't have such security mechanism and thus don't need this workaround. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
- Loading branch information
Showing
5 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
samples/bluetooth/radio_coex_1wire/boards/nrf54h20dk_nrf54h20_cpurad.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
zephyr,user { | ||
coex-pta-grant-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
coex_pta_node { | ||
status = "okay"; | ||
coex-pta-grant-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; | ||
compatible = "coex-pta-grant-gpios"; | ||
}; | ||
|
||
nrf_radio_coex: radio_coex_one_wire { | ||
status = "okay"; | ||
compatible = "sdc-radio-coex-one-wire"; | ||
grant-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; | ||
concurrency-mode = <0>; | ||
}; | ||
|
||
aliases { | ||
egu = &egu020; | ||
}; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote130 { | ||
status = "okay"; | ||
owned-channels = <0>; | ||
}; | ||
|
||
&radio { | ||
coex = <&nrf_radio_coex>; | ||
}; |
17 changes: 17 additions & 0 deletions
17
samples/bluetooth/radio_coex_1wire/dts/bindings/coex-pta-grant-gpios.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
description: | | ||
Coexistence PTA (Power Transmitter Amplifier) grant GPIOs | ||
include: base.yaml | ||
|
||
properties: | ||
coex-pta-grant-gpios: | ||
type: phandle-array | ||
description: | | ||
A phandle to the GPIO controller that provides the GRANT signal. | ||
The GPIO controller must be defined in the device tree. | ||
required: true | ||
|
||
compatible: "coex-pta-grant-gpios" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters