zephyr,fake-stepper

Vendor: Zephyr-specific binding

Note

An implementation of a driver matching this compatible is available in drivers/stepper/fake_stepper_controller.c.

Description

This binding provides a fake stepper controller for use as either a stub or a mock in
Zephyr testing.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

invert-direction

boolean

Invert motor direction.

micro-step-res

int

micro-step resolution to be set while initializing the device driver.

Default value: 1

Legal values: 1, 2, 4, 8, 16, 32, 64, 128, 256

en-gpios

phandle-array

GPIO pins used to control the enable signal of the motor driver.

step-gpios

phandle-array

The GPIO pins used to send step signals to the stepper motor.

dir-gpios

phandle-array

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

phandle

Counter used for generating step-accurate pulse signals.