1# Copyright (c) 2018, Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4description: Nordic nRF quadrature decoder (QDEC) node 5 6compatible: "nordic,nrf-qdec" 7 8include: [sensor-device.yaml, pinctrl-device.yaml] 9 10properties: 11 reg: 12 required: true 13 14 interrupts: 15 required: true 16 17 pinctrl-0: 18 required: true 19 20 pinctrl-names: 21 required: true 22 23 enable-pin: 24 type: int 25 description: | 26 The enable pin to use, to enable a connected QDEC device 27 28 For pins P0.0 through P0.31, use the pin number. For example, 29 to use P0.16 for the A pin, set: 30 31 enable-pin = <16>; 32 33 For pins P1.0 through P1.31, add 32 to the pin number. For 34 example, to use P1.2 for the A pin, set: 35 36 enable-pin = <34>; /* 32 + 2 */ 37 38 led-pre: 39 type: int 40 description: Time LED is enabled prior to sampling event (in us) 41 required: true 42 43 steps: 44 type: int 45 description: Number of steps on the rotating wheel 46 required: true 47