Skip to content

Commit

Permalink
drivers: stepper: step_dir: rename direction_gpios to dir_gpios
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jilaypandya committed Dec 10, 2024
1 parent d6375bd commit 6e69d36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/stepper/step_dir_stepper_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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), \
}

Expand Down
4 changes: 2 additions & 2 deletions dts/bindings/stepper/adi/adi,tmc2209.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -22,7 +22,7 @@ include:
property-allowlist:
- micro-step-res
- step-gpios
- direction-gpios
- dir-gpios

properties:
enable-gpios:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/stepper/stepper-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/build_all/stepper/gpio.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};

0 comments on commit 6e69d36

Please sign in to comment.