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:
parent
5a2c6bf66c
commit
d5ae99a551
4 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ struct step_dir_stepper_common_config {
|
||||||
#define STEP_DIR_STEPPER_DT_COMMON_CONFIG_INIT(node_id) \
|
#define STEP_DIR_STEPPER_DT_COMMON_CONFIG_INIT(node_id) \
|
||||||
{ \
|
{ \
|
||||||
.step_pin = GPIO_DT_SPEC_GET(node_id, step_gpios), \
|
.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), \
|
.dual_edge = DT_PROP_OR(node_id, dual_edge_step, false), \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ description: |
|
||||||
msx-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>,
|
msx-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>,
|
||||||
<&gpio0 2 GPIO_ACTIVE_HIGH>;
|
<&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||||
step-gpios = <&gpio0 3 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;
|
dual-edge-step;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ include:
|
||||||
property-allowlist:
|
property-allowlist:
|
||||||
- micro-step-res
|
- micro-step-res
|
||||||
- step-gpios
|
- step-gpios
|
||||||
- direction-gpios
|
- dir-gpios
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
enable-gpios:
|
enable-gpios:
|
||||||
|
|
|
@ -30,7 +30,7 @@ properties:
|
||||||
description: |
|
description: |
|
||||||
The GPIO pins used to send step signals to the stepper motor.
|
The GPIO pins used to send step signals to the stepper motor.
|
||||||
|
|
||||||
direction-gpios:
|
dir-gpios:
|
||||||
type: phandle-array
|
type: phandle-array
|
||||||
description: |
|
description: |
|
||||||
The GPIO pins used to send direction signals to the stepper motor.
|
The GPIO pins used to send direction signals to the stepper motor.
|
||||||
|
|
|
@ -21,5 +21,5 @@ test_tmc2209: tmc2209_motor {
|
||||||
<&test_gpio 0 0>;
|
<&test_gpio 0 0>;
|
||||||
enable-gpios = <&test_gpio 0 0>;
|
enable-gpios = <&test_gpio 0 0>;
|
||||||
step-gpios = <&test_gpio 0 0>;
|
step-gpios = <&test_gpio 0 0>;
|
||||||
direction-gpios = <&test_gpio 0 0>;
|
dir-gpios = <&test_gpio 0 0>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue