Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: GPIO Stepper Driver #80646

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jilaypandya
Copy link
Contributor

@jilaypandya jilaypandya commented Oct 30, 2024

  • Singularize instantiation of gpio-stepper driver
  • Add missing SPDX headers
  • Document set_event_callback function in steppers.rst
  • Use the correct dtcompatible in release notes
  • Rename tests from stepper_api to gpio_steppers
  • Add collaborators in stepper drivers

doc/hardware/peripherals/stepper.rst Outdated Show resolved Hide resolved
doc/releases/release-notes-4.0.rst Outdated Show resolved Hide resolved
@jilaypandya jilaypandya changed the title Update Stepper Documentation Update GPIO Stepper Driver Oct 30, 2024
@jilaypandya jilaypandya marked this pull request as draft October 30, 2024 21:31
@jilaypandya jilaypandya force-pushed the feature/update-stepper-doc branch 2 times, most recently from 5fa717b to d1097a4 Compare October 30, 2024 21:33
@jilaypandya jilaypandya marked this pull request as ready for review October 31, 2024 05:53
@jilaypandya jilaypandya force-pushed the feature/update-stepper-doc branch 2 times, most recently from 7490f6c to 9a3e26f Compare October 31, 2024 14:54
- name: stepper-controller.yaml
property-allowlist:
- micro-step-res
- invert-direction
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know if this is common practice for drivers generally or if it's fine that if more fields are added they simply go unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right atleast in this case all the properties are used. hence have removed property_allowlist

@jilaypandya jilaypandya removed the backport v4.0-branch Backport to the v4.0-branch label Nov 15, 2024
power down coils when gpio stepper is disabled

Signed-off-by: Jilay Pandya <[email protected]>
This commit changes compatible of gpio-stepper in driver

Signed-off-by: Jilay Pandya <[email protected]>
…nition

This commit fixes incorrect c prototype and defintion of
stepper_set_callback to stepper_set_event_callback

Signed-off-by: Jilay Pandya <[email protected]>
This commit introduces null pointer check in print_callback

Signed-off-by: Jilay Pandya <[email protected]>
- bjarki-andreasen
- dipakgmx
- fabiobaltieri
- faxe1008

This commit adds dipakgmx as collaborator in stepper drivers

Signed-off-by: Jilay Pandya <[email protected]>
@jilaypandya
Copy link
Contributor Author

jilaypandya commented Nov 15, 2024

release notes will need to be moved to 4.1, and migraiton guide entry added to indicate the rename of the compatible

Yep i have dropped the backport label and the release notes change. These fixes can come in with 4.1

@jilaypandya jilaypandya removed the Release Notes To be mentioned in the release notes label Nov 15, 2024
dipakgmx
dipakgmx previously approved these changes Nov 15, 2024
@kartben
Copy link
Collaborator

kartben commented Nov 16, 2024

release notes will need to be moved to 4.1, and migraiton guide entry added to indicate the rename of the compatible

Yep i have dropped the backport label and the release notes change. These fixes can come in with 4.1

Migration guide entry is missing. Renaming the compatible means people will need to update their code

@jilaypandya
Copy link
Contributor Author

release notes will need to be moved to 4.1, and migraiton guide entry added to indicate the rename of the compatible

Yep i have dropped the backport label and the release notes change. These fixes can come in with 4.1

Migration guide entry is missing. Renaming the compatible means people will need to update their code

added

add entry in migration guide 4.1 about renaming of compatible from
zephyr,gpio-steppers to zephyr,gpio-stepper

Signed-off-by: Jilay Pandya <[email protected]>
@zephyrbot zephyrbot added the Release Notes To be mentioned in the release notes label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree area: Process area: Stepper bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stepper API: stepper.h and stepper_shell.c