File tree Expand file tree Collapse file tree 4 files changed +54
-1
lines changed
tests/drivers/build_all/stepper Expand file tree Collapse file tree 4 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 31
31
32
32
#include "spi.dtsi"
33
33
};
34
+
35
+ test_uart: uart@55556666 {
36
+ compatible = "vnd,serial";
37
+ reg = <0x55556666 0x1000>;
38
+ status = "okay";
39
+
40
+ #include "uart.dtsi"
41
+ };
34
42
};
35
43
};
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ CONFIG_LOG=y
4
4
CONFIG_STEPPER_LOG_LEVEL_DBG=y
5
5
CONFIG_GPIO=y
6
6
CONFIG_SPI=y
7
+ CONFIG_SERIAL=y
7
8
CONFIG_STEPPER=y
8
9
CONFIG_EMUL=y
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ adi_tmc51xx_1: adi_tmc51xx@1 {
124
124
adi_tmc51xx_2: adi_tmc51xx@2 {
125
125
compatible = "adi,tmc51xx";
126
126
status = "okay";
127
- reg = <0x01 >;
127
+ reg = <0x02 >;
128
128
spi-max-frequency = <8000000>;
129
129
label = "tmc5160_2";
130
130
Original file line number Diff line number Diff line change
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2025 Dipak Shetty
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /****************************************
6
+ * PLEASE KEEP REG ADDRESSES SEQUENTIAL *
7
+ ***************************************/
8
+
9
+ adi_tmc51xx_uart: adi_tmc51xx {
10
+ compatible = "adi,tmc51xx";
11
+ status = "okay";
12
+
13
+ label = "tmc5160_uart_1";
14
+
15
+ en-pwm-mode; test-mode; /* ADI TMC Global configuration flags */
16
+ clock-frequency = <16000000>; /* Internal/External Clock frequency */
17
+
18
+ /* common stepper controller settings */
19
+ invert-direction;
20
+ micro-step-res = <256>;
21
+
22
+ /* ADI TMC stallguard settings specific to TMC5160 */
23
+ activate-stallguard2;
24
+ stallguard-velocity-check-interval-ms = <100>;
25
+ stallguard2-threshold = <9>;
26
+ stallguard-threshold-velocity = <50000>;
27
+
28
+ /* ADI TMC ramp generator as well as current settings */
29
+ vstart = <10>;
30
+ a1 = <20>;
31
+ v1 = <30>;
32
+ d1 = <40>;
33
+ vmax = <50>;
34
+ amax = <60>;
35
+ dmax = <70>;
36
+ tzerowait = <80>;
37
+ thigh = <90>;
38
+ tcoolthrs = <100>;
39
+ tpwmthrs = <110>;
40
+ tpowerdown = <120>;
41
+ ihold = <1>;
42
+ irun = <2>;
43
+ iholddelay = <3>;
44
+ };
You can’t perform that action at this time.
0 commit comments