In the nRF52840 Product Specification v1.1 (HTML), description of the QDEC peripheral, Table 77 on page 275 (direct content link), it appears to indicate that the LED pin for the QDEC peripheral must be set to Input.
However, reviewing the documentation, it appears that this pin is used to drive an LED (for optical encoders). Therefore, it would appear that this should instead be configured as an Output pin.
Here's a reproduction of the table, , which I've reproduced here:
QDEC signal | QDEC pin | Direction | Output value | Comments |
Phase A | As specified in PSEL.A | Input | Not applicable | |
Phase B | As specified in PSEL.B | Input | Not applicable | |
LED | As specified in PSEL.LED | Input | Not applicable |
Q: Can you confirm this is a defect in the documentation, and that the pin provided as QDEC's PSEL.LED must be configured as Output?