Skip to content

Commit

Permalink
dts: bindings: stepper: use hyphens instead of underscore
Browse files Browse the repository at this point in the history
This commit replaces hyphens with underscore in order to comply with
devicetree standards

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
  • Loading branch information
jilaypandya committed Jan 11, 2025
1 parent d4deeeb commit 458d326
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions dts/bindings/stepper/adi/adi,tmc5041.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ description: |
#address-cells = <1>;
#size-cells = <0>;
poscmp_enable; test_mode; lock_gconf; /* ADI TMC Global configuration flags */
poscmp-enable; test-mode; lock-gconf; /* ADI TMC Global configuration flags */
clock-frequency = <DT_FREQ_M(16)>; /* Internal/External Clock frequency */
motor: motor@0 {
Expand Down Expand Up @@ -62,11 +62,11 @@ include:
- name: spi-device.yaml
- name: adi,trinamic-gconf.yaml
property-allowlist:
- poscmp_enable
- poscmp-enable
- shaft1
- shaft2
- test_mode
- lock_gconf
- test-mode
- lock-gconf

properties:
"#address-cells":
Expand Down
24 changes: 12 additions & 12 deletions dts/bindings/stepper/adi/adi,trinamic-gconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,61 @@
description: Global configuration flags for Trinamic stepper controller.

properties:
en_spreadcycle:
en-spreadcycle:
type: boolean
description: |
A high level on the pin SPREAD inverts this flag to switch between both chopper modes.
0: StealthChop mode
1: SpreadCycle mode enabled
i_scale_analog:
i-scale-analog:
type: boolean
description: |
0: Use internal reference derived from 5VOUT
1: Use voltage supplied to VREF as current reference
internal_rsense:
internal-rsense:
type: boolean
description: |
0: Operation with external sense resistors
1: Internal sense resistors. Use current supplied into VREF as reference for internal
sense resistor. VREF pin internally is driven to GND in this mode.
index_otpw:
index-otpw:
type: boolean
description: |
0: INDEX shows the first microstep position of sequencer
1: INDEX output shows step pulses from internal pulse generator (toggle upon each step)
index_step:
index-step:
type: boolean
description: |
0: INDEX output as selected by index_otpw
0: INDEX output as selected by index-otpw
1: INDEX pin shows the current step position of sequencer
pdn_disable:
pdn-disable:
type: boolean
description: |
0: Normal operation
1: Power down mode
mstep_reg_select:
mstep-reg-select:
type: boolean
description: |
0: Microstep resolution selected by pins MS1, MS2
1: Microstep resolution selected by MRES register
poscmp_enable:
poscmp-enable:
type: boolean
description: |
Enable position compare feature
0: Outputs INT and PP are tristated.
1: Position compare pulse (PP) and interrupt output (INT) are available
Attention – do not leave the outputs floating in tristate condition, provide an external
pull-up or set poscmp_enable=1
pull-up or set poscmp-enable=1
test_mode:
test-mode:
type: boolean
description: |
Enable test mode
Expand All @@ -68,7 +68,7 @@ properties:
Attention: Not for user, set to 0 for normal operation!
lock_gconf:
lock-gconf:
type: boolean
description: |
1: GCONF is locked against further write access.

0 comments on commit 458d326

Please sign in to comment.