-
Notifications
You must be signed in to change notification settings - Fork 7k
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
add support to store devicetree phandle+specifier as "foo_dt_spec" structures #23691
Comments
|
I've renamed the issue now that we are using 'foo_dt_spec' (e.g. gpio_dt_spec, i2c_dt_spec, spi_dt_spec) for this type of thing. |
A status update as we head into v3.1: we have
Still not done from the above list: I would argue that |
Hi @mbolivar-nordic, This issue, marked as an Enhancement, was opened a while ago and did not get any traction. Please confirm the issue is correctly assigned and re-assign it otherwise. Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason. @pabigot you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you. Thanks! |
#23245 improves the devicetree access solution significantly, but currently lacks a replacement for
phandle-array
values which are a series of phandle + specifier. Example is a GPIO device reference plus a pin and initial flags; or an ADC device and and an input channel. In the existing access solution a C initializer list is generated that captures the combined values, e.g.{ "GPIO_0", 1, 0" }
.This gap complicates conversions of drivers that use the initializer list, e.g. the following:
requires local addition of the following macro:
to initialize the local definition:
Such a definition has not been standardized because technically different GPIO controllers could use different
cells
in their specifiers.Where we have consistent
cells
for all drivers it would good to have a standard structure that can be used to store a phandle+specifier, and a way to initialize such a structure.See discussion at/around: #23245 (comment)
The text was updated successfully, but these errors were encountered: