zephyr/dts/bindings/sensor/nordic,nrf-qdec.yaml
Gerard Marull-Paretas 401334446d drivers: sensor: qdec_nrfx: drop -pin support
QDEC driver will only use pinctrl now.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-02-28 08:42:05 -08:00

44 lines
948 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
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