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	 zephyr,user {
10		 stepper-motors = <&motor_1 0>;
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		 #address-cells = <1>;
30		 #size-cells = <0>;
31		 #stepper-motor-cells = <0>;
32
33	 };
34};
35
36&timers2 {
37	 status = "okay";
38	 counter2: counter {
39		 status = "okay";
40	 };
41};
42