From 007c8539f69f43a26e479ed8ad9db7e583f3fc89 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Fri, 12 Feb 2021 16:34:46 +0100 Subject: [PATCH] dts: arm: nordic: add QDEC nodes for nrf5340 Add device tree nodes for QDEC peripheral instances for nRF5340 Application core. Signed-off-by: Ioannis Glaropoulos --- dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi | 16 ++++++++++++++++ modules/hal_nordic/nrfx/Kconfig | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi b/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi index f1c8017cc08..ef0bd1f497e 100644 --- a/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi +++ b/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi @@ -112,6 +112,22 @@ pdm0: pdm@26000 { label = "PDM_0"; }; +qdec0: qdec@33000 { + compatible = "nordic,nrf-qdec"; + reg = <0x33000 0x1000>; + interrupts = <51 NRF_DEFAULT_IRQ_PRIORITY>; + status = "disabled"; + label = "QDEC_0"; +}; + +qdec1: qdec@34000 { + compatible = "nordic,nrf-qdec"; + reg = <0x34000 0x1000>; + interrupts = <52 NRF_DEFAULT_IRQ_PRIORITY>; + status = "disabled"; + label = "QDEC_1"; +}; + regulators: regulator@4000 { compatible = "nordic,nrf-regulators"; reg = <0x4000 0x1000>; diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 7a9016d8b5c..4d34f6c73a2 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -129,7 +129,7 @@ config NRFX_PWM3 config NRFX_QDEC bool "Enable QDEC driver" - depends on HAS_HW_NRF_QDEC + depends on HAS_HW_NRF_QDEC || HAS_HW_NRF_QDEC0 config NRFX_QSPI bool "Enable QSPI driver"