From 893c4ed4f9fbae0f96bf475c0d4186e5ea226e99 Mon Sep 17 00:00:00 2001 From: Rubin Gerritsen Date: Mon, 15 Jul 2024 09:08:12 +0200 Subject: [PATCH] modules: hal_nordic: Support EGU130 driver instance Adds the glue code to enable this. Signed-off-by: Rubin Gerritsen --- dts/common/nordic/nrf54h20.dtsi | 7 +++++++ modules/hal_nordic/nrfx/Kconfig | 5 +++++ modules/hal_nordic/nrfx/nrfx_config.h | 3 +++ soc/nordic/validate_base_addresses.c | 1 + 4 files changed, 16 insertions(+) diff --git a/dts/common/nordic/nrf54h20.dtsi b/dts/common/nordic/nrf54h20.dtsi index 02dfb43d27e..66e11babdf1 100644 --- a/dts/common/nordic/nrf54h20.dtsi +++ b/dts/common/nordic/nrf54h20.dtsi @@ -584,6 +584,13 @@ interrupts = <300 NRF_DEFAULT_IRQ_PRIORITY>; }; + egu130: egu@92d000 { + compatible = "nordic,nrf-egu"; + reg = <0x92d000 0x1000>; + status = "disabled"; + interrupts = <301 NRF_DEFAULT_IRQ_PRIORITY>; + }; + gpiote130: gpiote@934000 { compatible = "nordic,nrf-gpiote"; reg = <0x934000 0x1000>; diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 76afc65fd6e..cf9f0b33f8f 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -77,6 +77,11 @@ config NRFX_EGU020 depends on $(dt_nodelabel_has_compat,egu020,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU +config NRFX_EGU130 + bool "EGU130 driver instance" + depends on $(dt_nodelabel_has_compat,egu130,$(DT_COMPAT_NORDIC_NRF_EGU)) + select NRFX_EGU + config NRFX_GPIOTE bool diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index f8f311691bd..792b5946ea4 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -118,6 +118,9 @@ #ifdef CONFIG_NRFX_EGU020 #define NRFX_EGU020_ENABLED 1 #endif +#ifdef CONFIG_NRFX_EGU130 +#define NRFX_EGU130_ENABLED 1 +#endif #ifdef CONFIG_NRFX_GRTC #define NRFX_GRTC_ENABLED 1 diff --git a/soc/nordic/validate_base_addresses.c b/soc/nordic/validate_base_addresses.c index abcc214c54a..5bd559cd516 100644 --- a/soc/nordic/validate_base_addresses.c +++ b/soc/nordic/validate_base_addresses.c @@ -173,6 +173,7 @@ CHECK_DT_REG(egu5, NRF_EGU5); CHECK_DT_REG(egu10, NRF_EGU10); CHECK_DT_REG(egu20, NRF_EGU20); CHECK_DT_REG(egu020, NRF_RADIOCORE_EGU020); +CHECK_DT_REG(egu130, NRF_EGU130); CHECK_DT_REG(ficr, NRF_FICR); CHECK_DT_REG(flash_controller, NRF_NVMC); CHECK_DT_REG(gpio0, NRF_P0);