Rework Arduino IO hardware - #691
Open
BaochengSu wants to merge 5 commits into
Open
Conversation
Detect the board revision from system information and select the matching device tree for revised Advanced PG2 and M2 boards during SPL and U-Boot boot. Add the revised board device trees to the U-Boot build and include the support patch in the IOT2050 recipe. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
Add DTBs for the revised Arduino connector on Advanced M2 and PG2 boards. Share the M2 board configuration between the original and revised variants while keeping the existing DTB names unchanged. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
Add GPIO character device v2 support to mraa and select the appropriate IOT2050 pinmux configuration based on the board revision. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
Add the revised Advanced PG2 and Advanced M2 board names to the firmware update package configuration. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
Allow users to prevent selected Arduino I/O pins from being configured during boot. Add configuration persistence and an interactive selection menu, and support revised Advanced M2 board names in the M.2 connector menu. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
BaochengSu
force-pushed
the
su/dio-rework-pr
branch
from
September 2, 2026 06:57
b8bd8de to
520f5c1
Compare
huaqianli
reviewed
Sep 3, 2026
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&mcu_spi0 { |
Collaborator
There was a problem hiding this comment.
Shall we also add status = "okay"?
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.
The hardware design of the Arduino IO will be changed in next revision of the hardware of the PG2 Advanced & M.2 variants.
The new hardware will use the I2C IO expander directly to single the GPIO. Only GPIO is changed.
This requires the new SEBoot with the new "rev" field of the boardinfo to be workable, which is in the backlog and will be submitted soon.