-
Notifications
You must be signed in to change notification settings - Fork 8.1k
include: devicetree: Generate defines for map property #87595
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
Open
soburi
wants to merge
7
commits into
zephyrproject-rtos:main
Choose a base branch
from
soburi:dt_map_properties
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,541
−27
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1a91f92
sys: util: Add `GET_ARGS_FIRST_N` to get the first N of the args
soburi f6af6de
tests: unit: util: Add test for `GET_ARGS_FIRST_N`
soburi 4730057
dts: bindings: Change `*-map-mask` and `*-map-pass-thru` as array type.
soburi 71b9134
dts: bindings: Add interrupt-nexus and io-channel-nexus base bindings
soburi 81c33ad
scripts: dts: Add handling for `*-map` property
soburi 0da9709
scripts: dts: devicetree: tests: Add a map property test
soburi 6974b3c
tests: lib: devicetree: api: Add map property tests
soburi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Copyright (c) 2025 TOKITA Hiroshi | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Common fields for io-channel nexus | ||
| # | ||
| # see 2.5 Nexus Nodes and Specifier Mapping | ||
| # https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#nexus-nodes-and-specifier-mapping | ||
| # in the Devicetree Specification | ||
|
|
||
| properties: | ||
| io-channel-map: | ||
| type: compound | ||
| required: true | ||
|
|
||
| io-channel-map-mask: | ||
| type: array | ||
|
|
||
| io-channel-map-pass-thru: | ||
| type: array | ||
|
|
||
| "#io-channel-cells": | ||
| type: int | ||
| required: true | ||
| description: Number of items to expect in the io-channel specifier, such as ADC channels. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Copyright (c) 2025 TOKITA Hiroshi | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Common fields for interrupt nexus nodes | ||
mbolivar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # | ||
| # See 2.4 Interrupts and Interrupt Mapping | ||
| # https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#interrupts-and-interrupt-mapping | ||
| # in the Devicetree Specification | ||
|
|
||
| properties: | ||
| interrupt-map: | ||
| type: compound | ||
| required: true | ||
|
|
||
| interrupt-map-mask: | ||
| type: array | ||
|
|
||
| interrupt-map-pass-thru: | ||
| type: array | ||
|
|
||
| "#interrupt-cells": | ||
| type: int | ||
| required: true | ||
| description: Number of items to expect in a interrupt specifier | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright (c) 2025, TOKITA Hiroshi | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| description: VND GPIO nexus | ||
|
|
||
| include: [gpio-nexus.yaml] | ||
|
|
||
| compatible: "vnd,gpio-nexus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright (c) 2025, TOKITA Hiroshi | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| description: VND interrupt nexus | ||
|
|
||
| include: [interrupt-nexus.yaml] | ||
|
|
||
| compatible: "vnd,intr-nexus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.