Skip to content

Rework Arduino IO hardware - #691

Open
BaochengSu wants to merge 5 commits into
masterfrom
su/dio-rework-pr
Open

Rework Arduino IO hardware#691
BaochengSu wants to merge 5 commits into
masterfrom
su/dio-rework-pr

Conversation

@BaochengSu

Copy link
Copy Markdown
Collaborator

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.

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>
+ status = "okay";
+};
+
+&mcu_spi0 {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we also add status = "okay"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants