36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
|
|
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
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 = "zephyr,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 */
|
|
};
|
|
};
|
|
|
|
compatible: "zephyr,gpio-steppers"
|
|
|
|
child-binding:
|
|
description: GPIO Controller for stepper motor
|
|
include:
|
|
- name: stepper-controller.yaml
|
|
property-allowlist:
|
|
- micro-step-res
|
|
- invert-direction
|
|
|
|
properties:
|
|
gpios:
|
|
type: phandle-array
|
|
required: true
|
|
description: |
|
|
The gpio pin array on which the stepper inputs are to be connected
|