1/* 2 * Copyright (c) 2024 Navimatix GmbH 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #include <zephyr/dt-bindings/gpio/gpio.h> 7 8/ { 9 aliases { 10 stepper = &motor_1; 11 }; 12}; 13 14/ { 15 16 motor_1: motor_1 { 17 status = "okay"; 18 compatible = "ti,drv8424"; 19 20 21 dir-gpios = <&arduino_header 18 0>; /* D12 */ 22 step-gpios = <&arduino_header 19 0>; /* D13 */ 23 sleep-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 24 en-gpios = <&arduino_header 14 0>; /* D8 */ 25 m0-gpios = <&arduino_header 16 0>; 26 m1-gpios = <&arduino_header 17 0>; 27 counter = <&counter2>; 28 }; 29}; 30 31&timers2 { 32 status = "okay"; 33 counter2: counter { 34 status = "okay"; 35 }; 36}; 37