Hello,
I'm trying to run the QDEC example I find in the nRF Connect SDK.
I'm having issues in setting up the device tree:
/dts-v1/; #include <nordic/nrf52833_qiaa.dtsi> / { model = "Nordic nRF52833 Dongle NRF52833"; compatible = "nordic,nrf52833-dongle-nrf52833"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; nordic,nrf-qdec = &qdec0; }; aliases { qdec0 = &qdec; }; nrf-qdec@0 { compatible = "nordic,nrf-qdec"; reg = <0x0 1>; interrupts = <18 NRF_DEFAULT_IRQ_PRIORITY>; pinctrl-0 = <&qdec0_default>; led-pre = <0>; steps = <24>; interrupt-parent = <&nvic>; }; }; &pinctrl { qdec0_default: qdec0_default{ group1{ psels = <NRF_PSEL(QDEC_A, 0, 30)>, <NRF_PSEL(QDEC_B, 0, 29)>; }; }; };
The problem is that qdec0 is not found from the C code, even though it is present as an alias in the device tree file:
What is wrong with my device tree?
Thanks