Skip to content

Commit d5ae99a

Browse files
jilaypandyakartben
authored andcommitted
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 <[email protected]>
1 parent 5a2c6bf commit d5ae99a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/stepper/step_dir_stepper_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct step_dir_stepper_common_config {
3737
#define STEP_DIR_STEPPER_DT_COMMON_CONFIG_INIT(node_id) \
3838
{ \
3939
.step_pin = GPIO_DT_SPEC_GET(node_id, step_gpios), \
40-
.dir_pin = GPIO_DT_SPEC_GET(node_id, direction_gpios), \
40+
.dir_pin = GPIO_DT_SPEC_GET(node_id, dir_gpios), \
4141
.dual_edge = DT_PROP_OR(node_id, dual_edge_step, false), \
4242
}
4343

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: |
1111
msx-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>,
1212
<&gpio0 2 GPIO_ACTIVE_HIGH>;
1313
step-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
14-
direction-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
14+
dir-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
1515
dual-edge-step;
1616
}
1717
@@ -22,7 +22,7 @@ include:
2222
property-allowlist:
2323
- micro-step-res
2424
- step-gpios
25-
- direction-gpios
25+
- dir-gpios
2626

2727
properties:
2828
enable-gpios:

dts/bindings/stepper/stepper-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ properties:
3030
description: |
3131
The GPIO pins used to send step signals to the stepper motor.
3232
33-
direction-gpios:
33+
dir-gpios:
3434
type: phandle-array
3535
description: |
3636
The GPIO pins used to send direction signals to the stepper motor.

tests/drivers/build_all/stepper/gpio.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ test_tmc2209: tmc2209_motor {
2121
<&test_gpio 0 0>;
2222
enable-gpios = <&test_gpio 0 0>;
2323
step-gpios = <&test_gpio 0 0>;
24-
direction-gpios = <&test_gpio 0 0>;
24+
dir-gpios = <&test_gpio 0 0>;
2525
};

0 commit comments

Comments
 (0)