drivers: stepper: step_dir: rename direction_gpios to dir_gpios

for the brevity renaming direction_gpios to dir_gpios since STEP/DIR
interface is quite an established term in context of stepper controllers.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
This commit is contained in:
Jilay Pandya 2024-12-08 21:00:41 +01:00 committed by Benjamin Cabé
commit d5ae99a551
4 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ struct step_dir_stepper_common_config {
#define STEP_DIR_STEPPER_DT_COMMON_CONFIG_INIT(node_id) \
{ \
.step_pin = GPIO_DT_SPEC_GET(node_id, step_gpios), \
.dir_pin = GPIO_DT_SPEC_GET(node_id, direction_gpios), \
.dir_pin = GPIO_DT_SPEC_GET(node_id, dir_gpios), \
.dual_edge = DT_PROP_OR(node_id, dual_edge_step, false), \
}

View file

@ -11,7 +11,7 @@ description: |
msx-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>,
<&gpio0 2 GPIO_ACTIVE_HIGH>;
step-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
direction-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
dir-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
dual-edge-step;
}
@ -22,7 +22,7 @@ include:
property-allowlist:
- micro-step-res
- step-gpios
- direction-gpios
- dir-gpios
properties:
enable-gpios:

View file

@ -30,7 +30,7 @@ properties:
description: |
The GPIO pins used to send step signals to the stepper motor.
direction-gpios:
dir-gpios:
type: phandle-array
description: |
The GPIO pins used to send direction signals to the stepper motor.

View file

@ -21,5 +21,5 @@ test_tmc2209: tmc2209_motor {
<&test_gpio 0 0>;
enable-gpios = <&test_gpio 0 0>;
step-gpios = <&test_gpio 0 0>;
direction-gpios = <&test_gpio 0 0>;
dir-gpios = <&test_gpio 0 0>;
};