Skip to content

Add NXP S32K5 Cortex-R52 machine#3

Merged
zevorn merged 5 commits into
develfrom
codex/s32k5-zephyr-qemu
Jul 7, 2026
Merged

Add NXP S32K5 Cortex-R52 machine#3
zevorn merged 5 commits into
develfrom
codex/s32k5-zephyr-qemu

Conversation

@zevorn

@zevorn zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a registerinfo-based NXP S32 MC_ME subset for the Zephyr startup flow.
  • Add a registerinfo-based NXP LPUART model for the polling console path.
  • Add the s32k566-cvb-r52 Cortex-R52 machine, qtest coverage, and system documentation.

Validation

  • git diff --check origin/devel..HEAD
  • ninja -C build qemu-system-arm tests/qtest/s32k5-test
  • meson test -C build qtest-arm/s32k5-test --print-errorlogs

Notes

This PR covers the verified Zephyr/RTOS S32K566 model. Public NXP S32K566 Linux and firmware-chain inputs were not found, so firmware boot and Linux boot are documented as unsupported in this version.

@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codexreview

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@zevorn zevorn force-pushed the codex/s32k5-zephyr-qemu branch from c80b5e4 to 2c760ec Compare July 7, 2026 17:21
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@zevorn zevorn marked this pull request as ready for review July 7, 2026 17:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2c760ecb79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hw/arm/s32k5.c
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@zevorn zevorn force-pushed the codex/s32k5-zephyr-qemu branch from c2ea476 to 5ff500f Compare July 7, 2026 17:36
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

1 similar comment
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: acc74e47f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hw/arm/Kconfig
zevorn added 4 commits July 8, 2026 01:49
Signed-off-by: Chao Liu <chao.liu@processmission.com>
Signed-off-by: Chao Liu <chao.liu@processmission.com>
Signed-off-by: Chao Liu <chao.liu@processmission.com>
Signed-off-by: Chao Liu <chao.liu@processmission.com>
@zevorn zevorn force-pushed the codex/s32k5-zephyr-qemu branch from acc74e4 to d027c51 Compare July 7, 2026 17:55
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: d027c51f94

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Document the S32K566 Cortex-R52 machine, including the implemented devices, memory map, direct RTOS boot command, LPUART console wiring, test command, and current firmware/Linux limitations.

Signed-off-by: Chao Liu <chao.liu@processmission.com>
@zevorn zevorn force-pushed the codex/s32k5-zephyr-qemu branch from d027c51 to 36bdcdc Compare July 7, 2026 19:19
@zevorn

zevorn commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@zevorn zevorn merged commit b801cb7 into devel Jul 7, 2026
46 of 47 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36bdcdc706

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hw/arm/s32k5.c
Comment on lines +126 to +130
const int timer_irq[] = {
[GTIMER_PHYS] = ARCH_TIMER_NS_EL1_IRQ,
[GTIMER_VIRT] = ARCH_TIMER_VIRT_IRQ,
[GTIMER_HYP] = ARCH_TIMER_NS_EL2_IRQ,
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire the secure architected timer PPI

For S32K5 Zephyr/R52 images that use the secure physical architected timer (the board DTS exposes PPI 13 / INTID 29 as the first arm,armv8-timer interrupt), this table never connects the CPU's GTIMER_SEC output to the GIC. The guest can program CNTPS and enable IRQ 29, but QEMU will never raise it, so the system tick stalls even though the counter and GIC are present; add the GTIMER_SEC mapping to ARCH_TIMER_S_EL1_IRQ here.

Useful? React with 👍 / 👎.

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.

1 participant