gpio-steppers

Vendor: Generic or vendor-independent

Description

GPIO Stepper Controller cluster for darlington transistor arrays or dual H-bridge

Example:
  /* Lead A is connected Lead C and Lead B is connected to Lead D*/
  stepper {
      compatible = "gpio-steppers";
      motor: motor {
          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

Top level properties

No top-level properties.

Child node properties

Name

Type

Details

micro-step-res

int

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

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

gpios

phandle-array

The gpio pin array on which the stepper inputs are to be connected

This property is required.