Skip to content
Open
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
4 changes: 4 additions & 0 deletions dts/riscv/nordic/nrf54h20_cpuflpr.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ cpusys_vevif: &cpusys_vevif_tx {};
compatible = "nordic,nrf-bellboard-tx";
};

&gpiote130 {
interrupts = <104 NRF_DEFAULT_IRQ_PRIORITY>;
};

&grtc {
interrupts = <108 NRF_DEFAULT_IRQ_PRIORITY>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
aliases {
led0 = &led0;
};

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>;
label = "Green LED 0";
};
};
};

&gpiote130 {
status = "okay";
};

&gpio9 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include "nrf54h20dk_nrf54h20_common.dtsi"

/ {
chosen {
zephyr,console = &uart131;
};
};

&pinctrl {
uart131_default_alt: uart131_default_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
};
};

uart131_sleep_alt: uart131_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
low-power-enable;
};
};
};

&cpuapp_dma_region {
status = "okay";
};

&uart131 {
status = "okay";
memory-regions = <&cpuapp_dma_region>;
pinctrl-0 = <&uart131_default_alt>;
pinctrl-1 = <&uart131_sleep_alt>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
hw-flow-control;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
zephyr,user {
output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
};

&gpio0 {
status = "okay";

hog1 {
gpio-hog;
gpios = <3 GPIO_ACTIVE_LOW>;
output-high;
};

hog2 {
gpio-hog;
gpios = <4 GPIO_ACTIVE_HIGH>;
output-low;
};

hog3 {
gpio-hog;
gpios = <1 GPIO_ACTIVE_LOW>;
input;
};
};

&gpiote130 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include "nrf54h20dk_nrf54h20_common.dtsi"

/ {
chosen {
zephyr,console = &uart131;
};
};

&pinctrl {
uart131_default_alt: uart131_default_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
};
};

uart131_sleep_alt: uart131_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
low-power-enable;
};
};
};

&cpuapp_dma_region {
status = "okay";
};

&uart131 {
status = "okay";
memory-regions = <&cpuapp_dma_region>;
pinctrl-0 = <&uart131_default_alt>;
pinctrl-1 = <&uart131_sleep_alt>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
hw-flow-control;
};
1 change: 1 addition & 0 deletions tests/drivers/gpio/gpio_hogs/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tests:
- nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpuflpr
- nrf54h20dk/nrf54h20/cpuppr
- nucleo_g474re
- nrf52_bsim
Expand Down
24 changes: 24 additions & 0 deletions tests/drivers/gpio/gpio_nrf/boards/nrf54h20dk_nrf54h20_common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
aliases {
led0 = &led0;
};

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>;
label = "Green LED 0";
};
};
};

&gpiote130 {
status = "okay";
};

&gpio9 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include "nrf54h20dk_nrf54h20_common.dtsi"

/ {
chosen {
zephyr,console = &uart131;
};
};

&pinctrl {
uart131_default_alt: uart131_default_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
};
};

uart131_sleep_alt: uart131_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 11)>,
<NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_RTS, 1, 9)>,
<NRF_PSEL(UART_CTS, 1, 7)>;
low-power-enable;
};
};
};

&cpuapp_dma_region {
status = "okay";
};

&uart131 {
status = "okay";
memory-regions = <&cpuapp_dma_region>;
pinctrl-0 = <&uart131_default_alt>;
pinctrl-1 = <&uart131_sleep_alt>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
hw-flow-control;
};