blob: 35480e08f61f7369e9cc9aaf64e27c10e9dfe8b9 [file] [log] [blame]
/*
* SPDX-FileCopyrightText: Copyright (c) 2025 Dipak Shetty
* SPDX-License-Identifier: Apache-2.0
*/
/****************************************
* PLEASE KEEP REG ADDRESSES SEQUENTIAL *
**************************************
*/
adi_tmc51xx_uart: adi_tmc51xx {
compatible = "adi,tmc51xx";
status = "okay";
label = "tmc5160_uart_1";
en-pwm-mode;
test-mode; /* ADI TMC Global configuration flags */
clock-frequency = <16000000>; /* Internal/External Clock frequency */
/* common stepper controller settings */
invert-direction;
micro-step-res = <256>;
/* ADI TMC stallguard settings specific to TMC5160 */
activate-stallguard2;
stallguard-velocity-check-interval-ms = <100>;
stallguard2-threshold = <9>;
stallguard-threshold-velocity = <50000>;
/* ADI TMC ramp generator as well as current settings */
vstart = <10>;
a1 = <20>;
v1 = <30>;
d1 = <40>;
vmax = <50>;
amax = <60>;
dmax = <70>;
tzerowait = <80>;
thigh = <90>;
tcoolthrs = <100>;
tpwmthrs = <110>;
tpowerdown = <120>;
ihold = <1>;
irun = <2>;
iholddelay = <3>;
};