Skip to content

Commit 007c853

Browse files
committed
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 <[email protected]>
1 parent ce134a7 commit 007c853

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,22 @@ pdm0: pdm@26000 {
112112
label = "PDM_0";
113113
};
114114

115+
qdec0: qdec@33000 {
116+
compatible = "nordic,nrf-qdec";
117+
reg = <0x33000 0x1000>;
118+
interrupts = <51 NRF_DEFAULT_IRQ_PRIORITY>;
119+
status = "disabled";
120+
label = "QDEC_0";
121+
};
122+
123+
qdec1: qdec@34000 {
124+
compatible = "nordic,nrf-qdec";
125+
reg = <0x34000 0x1000>;
126+
interrupts = <52 NRF_DEFAULT_IRQ_PRIORITY>;
127+
status = "disabled";
128+
label = "QDEC_1";
129+
};
130+
115131
regulators: regulator@4000 {
116132
compatible = "nordic,nrf-regulators";
117133
reg = <0x4000 0x1000>;

modules/hal_nordic/nrfx/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ config NRFX_PWM3
129129

130130
config NRFX_QDEC
131131
bool "Enable QDEC driver"
132-
depends on HAS_HW_NRF_QDEC
132+
depends on HAS_HW_NRF_QDEC || HAS_HW_NRF_QDEC0
133133

134134
config NRFX_QSPI
135135
bool "Enable QSPI driver"

0 commit comments

Comments
 (0)