1# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 2# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 3# SPDX-License-Identifier: Apache-2.0 4 5description: | 6 GPIO Stepper Controller for darlington transistor arrays or dual H-bridge 7 8 Example: 9 /* Lead A is connected Lead C and Lead B is connected to Lead D*/ 10 stepper: stepper { 11 compatible = "zephyr,h-bridge-stepper"; 12 en-gpios = <&gpioa 6 GPIO_ACTIVE_HIGH>; 13 gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>, /* Lead A1/A */ 14 <&gpioc 7 GPIO_ACTIVE_HIGH>, /* Lead B1/B */ 15 <&gpiob 0 GPIO_ACTIVE_HIGH>, /* Lead A2/C */ 16 <&gpioa 7 GPIO_ACTIVE_HIGH>; /* Lead B2/D */ 17 }; 18 19compatible: "zephyr,h-bridge-stepper" 20 21include: stepper-controller.yaml 22 23properties: 24 gpios: 25 type: phandle-array 26 required: true 27 description: | 28 The gpio pin array on which the stepper inputs are to be connected 29