Skip to content

Commit b9ba0d2

Browse files
dipakgmxkartben
authored andcommitted
dts: bindings: stepper: adi: add diag0-gpios property to tmc51xx
This diag0-gpios property allows configuring the diag0 diagnostic pin, which can be used to indicate position reached, stall detection, and other status information from the controller. Signed-off-by: Dipak Shetty <shetty.dipak@gmx.com>
1 parent 3f3b04e commit b9ba0d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dts/bindings/stepper/adi/adi,tmc51xx.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description: |
1414
compatible = "adi,tmc51xx";
1515
reg = <0>;
1616
spi-max-frequency = <DT_FREQ_M(8)>; /* Maximum SPI bus frequency */
17+
diag0-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* Diag0 pin */
1718
1819
#address-cells = <1>;
1920
#size-cells = <0>;
@@ -106,3 +107,11 @@ properties:
106107
107108
Hint: µstep velocity v[Hz] µsteps / s v[Hz] = v[51xx] * ( fCLK[Hz]/2 / 2^23 )
108109
where v[51xx] is the value written to the TMC51XX.
110+
111+
diag0-gpios:
112+
type: phandle-array
113+
description: |
114+
Diagnostics output DIAG0 pin. This pin enables interrupt-based
115+
rampstat handling, allowing the driver to respond to motor events
116+
like position reached or stall detection without polling.
117+
Should be configured as push-pull output (active high).

0 commit comments

Comments
 (0)