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
9adi_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};
45