dts: bindings: stepper: use hyphens instead of underscore
This commit replaces hyphens with underscore in order to comply with devicetree standards Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
This commit is contained in:
parent
49c6725750
commit
dfdbc77787
2 changed files with 16 additions and 16 deletions
|
|
@ -20,7 +20,7 @@ description: |
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#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 */
|
clock-frequency = <DT_FREQ_M(16)>; /* Internal/External Clock frequency */
|
||||||
|
|
||||||
motor: motor@0 {
|
motor: motor@0 {
|
||||||
|
|
@ -62,11 +62,11 @@ include:
|
||||||
- name: spi-device.yaml
|
- name: spi-device.yaml
|
||||||
- name: adi,trinamic-gconf.yaml
|
- name: adi,trinamic-gconf.yaml
|
||||||
property-allowlist:
|
property-allowlist:
|
||||||
- poscmp_enable
|
- poscmp-enable
|
||||||
- shaft1
|
- shaft1
|
||||||
- shaft2
|
- shaft2
|
||||||
- test_mode
|
- test-mode
|
||||||
- lock_gconf
|
- lock-gconf
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
"#address-cells":
|
"#address-cells":
|
||||||
|
|
|
||||||
|
|
@ -4,51 +4,51 @@
|
||||||
description: Global configuration flags for Trinamic stepper controller.
|
description: Global configuration flags for Trinamic stepper controller.
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
en_spreadcycle:
|
en-spreadcycle:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
A high level on the pin SPREAD inverts this flag to switch between both chopper modes.
|
A high level on the pin SPREAD inverts this flag to switch between both chopper modes.
|
||||||
0: StealthChop mode
|
0: StealthChop mode
|
||||||
1: SpreadCycle mode enabled
|
1: SpreadCycle mode enabled
|
||||||
|
|
||||||
i_scale_analog:
|
i-scale-analog:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
0: Use internal reference derived from 5VOUT
|
0: Use internal reference derived from 5VOUT
|
||||||
1: Use voltage supplied to VREF as current reference
|
1: Use voltage supplied to VREF as current reference
|
||||||
|
|
||||||
internal_rsense:
|
internal-rsense:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
0: Operation with external sense resistors
|
0: Operation with external sense resistors
|
||||||
1: Internal sense resistors. Use current supplied into VREF as reference for internal
|
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.
|
sense resistor. VREF pin internally is driven to GND in this mode.
|
||||||
|
|
||||||
index_otpw:
|
index-otpw:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
0: INDEX shows the first microstep position of sequencer
|
0: INDEX shows the first microstep position of sequencer
|
||||||
1: INDEX output shows step pulses from internal pulse generator (toggle upon each step)
|
1: INDEX output shows step pulses from internal pulse generator (toggle upon each step)
|
||||||
|
|
||||||
index_step:
|
index-step:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
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
|
1: INDEX pin shows the current step position of sequencer
|
||||||
|
|
||||||
pdn_disable:
|
pdn-disable:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
0: Normal operation
|
0: Normal operation
|
||||||
1: Power down mode
|
1: Power down mode
|
||||||
|
|
||||||
mstep_reg_select:
|
mstep-reg-select:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
0: Microstep resolution selected by pins MS1, MS2
|
0: Microstep resolution selected by pins MS1, MS2
|
||||||
1: Microstep resolution selected by MRES register
|
1: Microstep resolution selected by MRES register
|
||||||
|
|
||||||
poscmp_enable:
|
poscmp-enable:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
Enable position compare feature
|
Enable position compare feature
|
||||||
|
|
@ -56,9 +56,9 @@ properties:
|
||||||
1: Position compare pulse (PP) and interrupt output (INT) are available
|
1: Position compare pulse (PP) and interrupt output (INT) are available
|
||||||
|
|
||||||
Attention – do not leave the outputs floating in tristate condition, provide an external
|
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
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
Enable test mode
|
Enable test mode
|
||||||
|
|
@ -68,7 +68,7 @@ properties:
|
||||||
|
|
||||||
Attention: Not for user, set to 0 for normal operation!
|
Attention: Not for user, set to 0 for normal operation!
|
||||||
|
|
||||||
lock_gconf:
|
lock-gconf:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
1: GCONF is locked against further write access.
|
1: GCONF is locked against further write access.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue