Adds a timing source api which is used by the step-dir stepper common code. This allows the reusable common code to configure different timing sources, since the initial delayable work implementation was inacurate for higher maximum velocities. Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
46 lines
1 KiB
YAML
46 lines
1 KiB
YAML
# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: Stepper Controller
|
|
|
|
properties:
|
|
invert-direction:
|
|
type: boolean
|
|
description: |
|
|
Invert motor direction.
|
|
|
|
micro-step-res:
|
|
type: int
|
|
default: 1
|
|
enum:
|
|
- 1
|
|
- 2
|
|
- 4
|
|
- 8
|
|
- 16
|
|
- 32
|
|
- 64
|
|
- 128
|
|
- 256
|
|
description: |
|
|
micro-step resolution to be set while initializing the device driver.
|
|
|
|
en-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
GPIO pins used to control the enable signal of the motor driver.
|
|
|
|
step-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
The GPIO pins used to send step signals to the stepper motor.
|
|
|
|
dir-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
The GPIO pins used to send direction signals to the stepper motor.
|
|
Pin will be driven high for forward direction and low for reverse direction.
|
|
|
|
counter:
|
|
type: phandle
|
|
description: Counter used for generating step-accurate pulse signals.
|