Skip to content

Add TMU device class and imx8mq implementation#666

Open
omeh-a wants to merge 15 commits into
mainfrom
imx_tmu
Open

Add TMU device class and imx8mq implementation#666
omeh-a wants to merge 15 commits into
mainfrom
imx_tmu

Conversation

@omeh-a

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

Copy link
Copy Markdown
Member

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

omeh-a commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

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 Outdated
omeh-a added 2 commits July 3, 2026 09:20
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>

Timer tests out with acacia

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>

Serial tests out with Acacia

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>

Refactor: acacia_sddf is now a python module that inherits all subfiles, sDDF itself is a python module for import! Needed for SDK

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>

Fix issues with i2c.py - maps were swapped.

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>

Further fixes to keep up with Acacia PR request changes

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
@omeh-a
omeh-a force-pushed the imx_tmu branch 2 times, most recently from 2b69711 to 07d1144 Compare July 3, 2026 02:18
@omeh-a
omeh-a marked this pull request as ready for review July 3, 2026 02:27
@omeh-a

omeh-a commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

This is blocked on Acacia being merged under this. Tests broken for the same reason, but CI tests are added.

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
@omeh-a
omeh-a force-pushed the imx_tmu branch 2 times, most recently from b2e5ad9 to 3093da2 Compare July 8, 2026 00:13
omeh-a added 8 commits July 13, 2026 09:39
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
omeh-a added 3 commits July 14, 2026 14:21
… fwd channel. Fixed a few minor bugs

Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
Signed-off-by: Lesley Rossouw <lesley.rossouw@unsw.edu.au>
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