Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
worldsemi,ws2812-(gpio|rpi_pico-pio) pin property change into
gpios
#68514worldsemi,ws2812-(gpio|rpi_pico-pio) pin property change into
gpios
#68514Changes from all commits
af0a407
25e8d00
20c16e4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this really be a
phandle
rather than aphandle-array
? At least at the quick glance, in order to have a system with multiple LED chains, you already need to have multiple entries in the device tree for each chain. I guess it may not make sense to take in multiple GPIO pins here if the code is only going to use the first one.Then isn't this compounded by the fact that the PIO code can only operate on a single GPIO pin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
gpios
name may be treated specially during devicetree processing.In particular, since it includes processing to link with
*-names
, even when specifying a single GPIO pin, there are many places where the name is*gpios
in the phandle-array type. It also follows this convention.zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py
Lines 1752 to 1757 in 40b53d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats good enough for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify:
phandle-array
is not for storing an array of phandles (that would betype: phandles
), it is for storing a list of phandles and specifiers (e.g. GPIO port, pin, and flags).Using a
phandle-array
type here seems correct to me.See https://docs.zephyrproject.org/latest/build/dts/bindings-syntax.html#type for further information of the various devicetree types.