1# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
2# SPDX-License-Identifier: Apache-2.0
3
4description: Stepper Controller
5
6properties:
7  invert-direction:
8    type: boolean
9    description: |
10      Invert motor direction.
11
12  micro-step-res:
13    type: int
14    default: 1
15    enum:
16      - 1
17      - 2
18      - 4
19      - 8
20      - 16
21      - 32
22      - 64
23      - 128
24      - 256
25    description: |
26      micro-step resolution to be set while initializing the device driver.
27
28  en-gpios:
29    type: phandle-array
30    description: |
31      GPIO pins used to control the enable signal of the motor driver.
32
33  step-gpios:
34    type: phandle-array
35    description: |
36      The GPIO pins used to send step signals to the stepper motor.
37
38  dir-gpios:
39    type: phandle-array
40    description: |
41      The GPIO pins used to send direction signals to the stepper motor.
42      Pin will be driven high for forward direction and low for reverse direction.
43
44  counter:
45    type: phandle
46    description: Counter used for generating step-accurate pulse signals.
47