Skip to content

Create generic gpio in device tree. #33307

Discussion options

You must be logged in to vote

As @drojf wrote, there are multiple options. Either use the inferred bindings (see https://docs.zephyrproject.org/latest/guides/dts/bindings.html#inferred-bindings) or create a custom, board specific devicetree binding (see https://docs.zephyrproject.org/latest/application/index.html#custom-board-devicetree-and-soc-definitions for how to add it, https://docs.zephyrproject.org/latest/guides/dts/bindings.html for bindings syntax, and https://docs.zephyrproject.org/latest/guides/dts/intro.html#devicetree-intro for an intro on the bindings are used).

The Arty board definition uses a board specific DTS binding containing GPIO pin(s). You might find some inspiration there: https://github.com/ze…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants