Repository navigation
sstar: gpio dump walks the per-pad GPIO registers on Infinity6C - #292
Merged
Merged
Conversation
`gpio dump` refused every SigmaStar part, although `gpio get`, `scan` and the IR-cut guess already read the per-pad registers there. The per-pin output moves into gpio_dump_pin(), shared by the PL061 bank walk and a SigmaStar walk over sstar_gpio_read(); HiSilicon output is unchanged. Pins are named GPIO<pad>, the number sysfs uses, and the level is the one `gpio get` reports. Verified on an SSC378DE: 82 pads, valid JSON, and pad 13 reads out 1, out 0 and in 0 as sysfs drives it.
PR Summary by QodoSupport GPIO dumps on SigmaStar Infinity6C
AI Description
Merge Risk
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link |
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.
ipctool gpio dumprefused every SigmaStar part with "not supported on this SoC yet", althoughgpio get,gpio scanand the IR-cut guess already read SigmaStar's per-pad GPIO registers (sstar_gpio_read()).gpio_dump_pin(). The PL061 bank walk and a new SigmaStar walk both call it, so HiSilicon output is unchanged byte for byte.GPIO<pad>, the number sysfs uses. The level is the onegpio getreports: the pin for an input, the driven value for an output.sstar_gpio_supported()is. Other SigmaStar families still answer "not supported" until their register table is added.Verified on an SSC378DE (Infinity6C):
--jsonoutput parses.out 1,out 0andin 0as sysfs drove it, matching the raw register (0x6B / 0x68 / 0x6C).reginfo --pads.*_testpasses.