Skip to content

arch/tricore: use chip family tc3xx/tc4xx as ARCH_CHIP - #21305

Merged
acassis merged 1 commit into
apache:masterfrom
zhangyu981027:tricore_tc4xx_chip
Nov 1, 2026
Merged

acassis merged 1 commit into
apache:masterfrom
zhangyu981027:tricore_tc4xx_chip

Conversation

@zhangyu981027

@zhangyu981027 zhangyu981027 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Note: Please adhere to Contributing Guidelines.

Summary

Use the chip family (tc3xx/tc4xx) as ARCH_CHIP instead of the single part name (tc397/tc4da):

  • make ARCH_CHIP_TC3XX/TC4XX selectable, drop ARCH_CHIP_TC397/TC4DA and select the concrete part (TC39X/TC4DX) via a choice in the family Kconfig
  • merge src/{tc397,tc4da} into src/{tc3xx,tc4xx}, move include/{tc397,tc4da} to include/{tc3xx,tc4xx}, and drop the ARCH_SUBDIR indirection from CMake and Makefile
  • move boards/tricore/{tc397,tc4da} and the related documentation to {tc3xx,tc4xx}, update defconfigs and board Kconfig
  • add CONFIG_CPU_CLOCK_FREQUENCY to replace the iLLD IFX_CFG_CPU_CLOCK_FREQUENCY in up_perf_init()
  • move the TASKING fake libc_fpu stubs to common/tricore_libc.c and drop the empty libos dummy library

These changes are kept in one commit since they have to land together to keep the tree buildable.

This is the first PR of the TriCore series: #21305 (this PR) -> #21150 -> #21306 -> #21151 -> #21307 -> #21308 -> #21309.

Impact

TriCore architecture and boards only (arch/tricore, boards/tricore, Documentation). Board directories and Kconfig symbols are renamed (ARCH_CHIP_TC397/TC4DA -> ARCH_CHIP_TC3XX/TC4XX), out-of-tree TriCore boards need to update their defconfig. No impact on other architectures.

Testing

Built triboard_tc4x9_com:nsh (TC4xx, cmake) and a2g-tc397-5v-tft:nsh (TC3xx, both make and cmake) with tricore-elf-gcc on Ubuntu host. Each commit passes checkpatch and builds on its own.

Tested on both TC4xx (TC4x9) and TC3xx (TC397) boards: system boots normally and ostest passes.

nsh> uname -a
NuttX 13.1.0 c49abcfca40 Oct 31 2026 21:23:37 tricore triboard_tc4x9_com
nsh> ostest
...
ostest_main: Exiting with status 0

Use the chip family (tc3xx/tc4xx) as ARCH_CHIP instead of the single
part name (tc397/tc4da). This commit groups the following changes,
which have to land together to keep the tree buildable:

1. Chip/family layout: make ARCH_CHIP_TC3XX/TC4XX selectable, drop
   ARCH_CHIP_TC397/TC4DA and select the concrete part (TC39X/TC4DX)
   via a choice in the family Kconfig.
2. Directory merge: merge src/{tc397,tc4da} into src/{tc3xx,tc4xx},
   move include/{tc397,tc4da} to include/{tc3xx,tc4xx}, and drop the
   ARCH_SUBDIR indirection from CMake and Makefile.
3. Boards: move boards/tricore/{tc397,tc4da} and the related
   documentation to {tc3xx,tc4xx}, update defconfigs and board Kconfig.
4. Clock: add CONFIG_CPU_CLOCK_FREQUENCY to replace the iLLD
   IFX_CFG_CPU_CLOCK_FREQUENCY in up_perf_init().
5. Toolchain libs: move the TASKING fake libc_fpu stubs to
   common/tricore_libc.c and drop the empty libos dummy library.

[skip-cmake-parity]: board scripts/Make.defs are only renamed together
with their boards, both CMake and Make builds are updated.

Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
@github-actions github-actions Bot added Area: Build system Arch: tricore Issues related to the TriCore architecture from Infineon Size: M The size of the change in this PR is medium Board: tricore labels Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

qemu-armv8a

  • Code: .rodata -24 B, .text.mqueue_test +60 B, .text.wakeup_action +28 B (+0.0%, 354,228 B)
  • Data: +20 B (+0.0%, 77,583 B)

qemu-intel64

  • Code: .text +109 B (+0.0%, 8,687,686 B)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@acassis
acassis merged commit aa5b743 into apache:master Nov 1, 2026
107 of 108 checks passed
@parthitce

parthitce commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.

Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!

NACK for these from my side!

@parthitce

Copy link
Copy Markdown
Contributor

#19041 conflicts fully again. Too impossible to cleanup and split when you have this fast ratio of mergin the wrong codes. I don't understand how to colloborate when it already feels like race!

@xiaoxiang781216

xiaoxiang781216 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.

Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!

NACK for these from my side!

The official document name tc4xx too:
https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459.
tc4xx or tc4x should be fine.

@parthitce

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce

@parthitce

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce

#19041 was already addressing it and plan is to split. Yes, we can again rebase the cahnges and send another PR. But my question remains, why there is not enough time given for review?

@xiaoxiang781216

xiaoxiang781216 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce

#19041 was already addressing it and plan is to split. Yes, we can again rebase the cahnges and send another PR. But my question remains, why there is not enough time given for review?

It isn't just rebased. I said many time from June that you need split the huge PR into small and reviewable pr, otherwise nobody could review and approve your change.
Why do you request the maintainer take time to review the poor-quality PR (one PR contain 15000+ lines change)?
For example, #21039 is reviewed and merged quickly.

@parthitce

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce

#19041 was already addressing it and plan is to split. Yes, we can again rebase the cahnges and send another PR. But my question remains, why there is not enough time given for review?

It isn't just rebased. I said many time from June that you need split the huge PR into small and reviewable pr, otherwise nobody could review and approve your change. Why do you request the maintainer take time to review the poor-quality PR (one PR contain 15000+ lines change)? For example, #21039 is reviewed and merged quickly.

Split is agreed and I asked until this week to clear it. But you haven't answered my question.

Why there is not enough time given for review of this PR?

@xiaoxiang781216

xiaoxiang781216 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged.
Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend!
NACK for these from my side!

The official document name tc4xx too: https://documentation.infineon.com/aurixtc4xx/docs/ukk1718002103459. tc4xx or tc4x should be fine.

NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages.

if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce

#19041 was already addressing it and plan is to split. Yes, we can again rebase the cahnges and send another PR. But my question remains, why there is not enough time given for review?

It isn't just rebased. I said many time from June that you need split the huge PR into small and reviewable pr, otherwise nobody could review and approve your change. Why do you request the maintainer take time to review the poor-quality PR (one PR contain 15000+ lines change)? For example, #21039 is reviewed and merged quickly.

Split is agreed and I asked until this week to clear it. But you haven't answered my question.

Why there is not enough time given for review of this PR?

For simple change like this (rename without changing functionality), one day is enough. Anyway, the difference between tc4xx and tc4x is minor, if you think tc3x is better, please create a patch.

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

Labels

Arch: tricore Issues related to the TriCore architecture from Infineon Area: Build system Board: tricore Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants