Align ADSP SC5XX gpio DTS and driver with Linux - #104
Open
jiez wants to merge 2 commits into
Open
Conversation
Replace the single gpio0 node (covering all ports via stride calculation)
with individual per-port nodes gpa–gpi, matching the Linux DTS binding.
Each port node has its own reg covering one 0x80-byte block, adi,bank-name
for the U-Boot gpio command label, and adi,ngpios for port width. The
gpio-adi-adsp driver is simplified accordingly: pin is now a local 0–15
index, no port calculation or stride needed, and bank_name ("A"–"I") is
read directly from the adi,bank-name property. Use dev_read_addr_ptr()
rather than dev_remap_addr() since pinctrl and GPIO share overlapping
physical register ranges.
All gpio-hog consumers are updated to reference the correct per-port node
with local pin indices.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Replace the ADI-specific adi,ngpios with the standard ngpios property, aligning U-Boot DTS with Linux DTS for future CONFIG_OF_UPSTREAM adoption. Signed-off-by: Jie Zhang <jie.zhang@analog.com>
8 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is for aligning ADSP SC5XX gpio DTS and driver with Linux. It does two things:
Replace the single gpio0 node (covering all ports via stride calculation) with individual per-port nodes gpa–gpi, matching the Linux DTS binding.
Replace the ADI-specific adi,ngpios with the standard ngpios property