allegro,a4979

Vendor: Allegro DVT

Note

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

Description

Allegro A4979 microstepping stepper motor driver.
A4979 is a flexible microstepping motor driver with built-in translator for easy operation.
It is designed to operate bipolar stepper motors in full-, half-, quarter-, and sixteenth-step
modes.

Example:
a4979: a4979 {
    status = "okay";
    compatible = "allegro,a4979";
    micro-step-res = <2>;
    reset-gpios = <&gpiod 10 GPIO_ACTIVE_HIGH>;
    dir-gpios = <&gpiod 14 GPIO_ACTIVE_HIGH>;
    step-gpios = <&gpiod 15 GPIO_ACTIVE_HIGH>;
    en-gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
    m0-gpios = <&gpiod 13 0>;
    m1-gpios = <&gpiod 12 0>;
    counter = <&counter5>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

m0-gpios

phandle-array

Microstep configuration pin 0.

This property is required.

m1-gpios

phandle-array

Microstep configuration pin 1.

This property is required.

reset-gpios

phandle-array

Reset pin

This property is required.

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.