Skip to content

devicetree: support generating symbols for -gpios properties w/o compatible #25945

@pabigot

Description

@pabigot

A recent change to devicetree tooling allowed generation of nodes for which there was no compatible, but that generation did not include any properties on such nodes (which I still think is weird).

Do we have enough special-casing in the tooling to support something like:

/ {
  app {
    power-gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
  };
};

then look it up by DT_PATH(app, power_gpios)? At least for GPIO we can reasonably say that if the property ends in -gpios we can assume it's a GPIO phandle+specifier. @galak?

Originally posted by @pabigot in #25596

Metadata

Metadata

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: Devicetree ToolingPR modifies or adds a Device Tree tooling

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions