47 lines
985 B
YAML
47 lines
985 B
YAML
# Copyright (c) 2018, Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: Nordic nRF quadrature decoder (QDEC) node
|
|
|
|
compatible: "nordic,nrf-qdec"
|
|
|
|
include: [sensor-device.yaml, pinctrl-device.yaml]
|
|
|
|
properties:
|
|
reg:
|
|
required: true
|
|
|
|
interrupts:
|
|
required: true
|
|
|
|
pinctrl-0:
|
|
required: true
|
|
|
|
pinctrl-names:
|
|
required: true
|
|
|
|
enable-pin:
|
|
type: int
|
|
description: |
|
|
The enable pin to use, to enable a connected QDEC device
|
|
|
|
For pins P0.0 through P0.31, use the pin number. For example,
|
|
to use P0.16 for the A pin, set:
|
|
|
|
enable-pin = <16>;
|
|
|
|
For pins P1.0 through P1.31, add 32 to the pin number. For
|
|
example, to use P1.2 for the A pin, set:
|
|
|
|
enable-pin = <34>; /* 32 + 2 */
|
|
|
|
led-pre:
|
|
type: int
|
|
description: Time LED is enabled prior to sampling event (in us)
|
|
required: true
|
|
|
|
steps:
|
|
type: int
|
|
description: Number of steps on the rotating wheel
|
|
required: true
|