Skip to content

Commit 367f853

Browse files
jilaypandyahenrikbrixandersen
authored andcommitted
drivers: stepper: rename compatible of gpio-stepper
This commit fixes minor copyright issues and corrects the compatible of gpio-stepper with the vendor name as zephyr Signed-off-by: Jilay Pandya <[email protected]>
1 parent 9a50c10 commit 367f853

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

drivers/stepper/Kconfig.gpio

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
2+
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
23
# SPDX-License-Identifier: Apache-2.0
34

45
menu "GPIO stepper driver"
56

67
config GPIO_STEPPER
78
bool "Activate driver for gpio stepper control"
8-
depends on DT_HAS_GPIO_STEPPERS_ENABLED
9+
depends on DT_HAS_ZEPHYR_GPIO_STEPPERS_ENABLED
910
default y
1011
help
1112
GPIO Stepper driver for stepper motor control with darlington arrays or dual H-bridge.

drivers/stepper/gpio_stepper_controller.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/*
22
* SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
3+
* SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
34
* SPDX-License-Identifier: Apache-2.0
45
*/
56

6-
#define DT_DRV_COMPAT gpio_steppers
7+
#define DT_DRV_COMPAT zephyr_gpio_steppers
78

89
#include <zephyr/drivers/gpio.h>
910
#include <zephyr/kernel.h>

dts/bindings/stepper/gpio-stepper-controller.yaml renamed to dts/bindings/stepper/zephyr,gpio-stepper.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
2+
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
23
# SPDX-License-Identifier: Apache-2.0
34

45
description: |
@@ -7,7 +8,7 @@ description: |
78
Example:
89
/* Lead A is connected Lead C and Lead B is connected to Lead D*/
910
stepper {
10-
compatible = "gpio-steppers";
11+
compatible = "zephyr,gpio-steppers";
1112
motor: motor {
1213
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>, /* Lead A1/A */
1314
<&gpioc 7 GPIO_ACTIVE_HIGH>, /* Lead B1/B */
@@ -16,7 +17,7 @@ description: |
1617
};
1718
};
1819
19-
compatible: "gpio-steppers"
20+
compatible: "zephyr,gpio-steppers"
2021

2122
child-binding:
2223
description: GPIO Controller for stepper motor

tests/drivers/stepper/stepper_api/boards/nucleo_g071rb.overlay

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
/ {
27
uln2003_motor: uln2003_1 {
3-
compatible = "gpio-steppers";
8+
compatible = "zephyr,gpio-steppers";
49
status = "okay";
510
motor_1: motor_1 {
611
micro-step-res = <1>;

tests/drivers/stepper/stepper_api/boards/qemu_x86_64.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Jilay Sandeep Pandya
2+
* SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -20,7 +20,7 @@
2020

2121
/ {
2222
test_uln2003_motor_cluster: uln2003_motor_cluster {
23-
compatible = "gpio-steppers";
23+
compatible = "zephyr,gpio-steppers";
2424
status = "okay";
2525

2626
motor_1: motor_1 {

0 commit comments

Comments
 (0)