Skip to content

Add TMU device class and imx8mq implementation#666

Draft
omeh-a wants to merge 2 commits intomainfrom
imx_tmu
Draft

Add TMU device class and imx8mq implementation#666
omeh-a wants to merge 2 commits intomainfrom
imx_tmu

Conversation

@omeh-a
Copy link
Copy Markdown
Member

@omeh-a omeh-a commented Mar 11, 2026

This PR adds a thermal management unit device class and an implementation for the imx8mq.

The TMU class allows clients to get the current CPU/SoC temperature, and also offers functionality for setting trippoints and enabling interrupt forwarding to a client for those trippoints.

Sadly, the Maaxboard already uses that interrupt for system management so we can't actually use it in this example. Sad.

To do:

  • sdfgen support
  • CI tests
  • zig build

omeh-a added 2 commits March 10, 2026 16:31
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
@omeh-a
Copy link
Copy Markdown
Member Author

omeh-a commented Mar 11, 2026

note: the maaxboard seems to report all average temp readings as wrong for some reason (valid=0), but the numbers make sense. Unsure why this is.

Read successfully!
TMU_CLIENT|INFO: 	Avg. valid: 0
TMU_CLIENT|INFO: 	Avg. temp: 72.000000
TMU_CLIENT|INFO: 	Inst. valid: 1
TMU_CLIENT|INFO: 	Inst. temp: 73.000000

@omeh-a omeh-a mentioned this pull request Mar 13, 2026
10 tasks
Comment thread examples/tmu/meta.py
)
from board import BOARDS

assert version("sdfgen").split(".")[1] == "28", "Unexpected sdfgen version"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove #709

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