zephyr,gpio-stepper
Vendor: Zephyr-specific binding
Note
An implementation of a driver matching this compatible is available in drivers/stepper/gpio_stepper_controller.c.
Description
GPIO Stepper Controller for darlington transistor arrays or dual H-bridge
Example:
/* Lead A is connected Lead C and Lead B is connected to Lead D*/
stepper: stepper {
compatible = "zephyr,gpio-stepper";
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>, /* Lead A1/A */
<&gpioc 7 GPIO_ACTIVE_HIGH>, /* Lead B1/B */
<&gpiob 0 GPIO_ACTIVE_HIGH>, /* Lead A2/C */
<&gpioa 7 GPIO_ACTIVE_HIGH>; /* Lead B2/D */
};
Properties
Properties not inherited from the base binding file.
Name |
Type |
Details |
---|---|---|
|
|
The gpio pin array on which the stepper inputs are to be connected
This property is required. |
|
|
Invert motor direction.
|
|
|
micro-step resolution to be set while initializing the device driver.
Default value: Legal values: |
Deprecated properties not inherited from the base binding file.
(None)
Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “zephyr,gpio-stepper” compatible.
(None)