Skip to content

Conversation

@RoyAc6
Copy link
Contributor

@RoyAc6 RoyAc6 commented Nov 10, 2025

Adds low-power mode support for STM32F7 series
Implements basic sleep and stop modes integrated
with the power management subsystem, similar to
the STM32F4 implementation.

Added Mode:
STOP low-power mode, exposed as Zephyr PM state
"suspend-to-idle".

Tested on: NUCLEO-F722ZE board.
Signed-off-by: Roy Jamil roy.jamil@ac6.fr

@RoyAc6 RoyAc6 force-pushed the stm32f7_pm_support branch 2 times, most recently from 3faf095 to 80311ed Compare November 11, 2025 12:36
@RoyAc6 RoyAc6 force-pushed the stm32f7_pm_support branch from a03342c to f9cd6d0 Compare November 11, 2025 16:45
Adds low-power mode support for STM32F7 series
Implements basic sleep and stop modes integrated
with the power management subsystem, similar to
the STM32F4 implementation.

Added Mode:
STOP low-power mode, exposed as Zephyr PM state
"suspend-to-idle".

Tested on: NUCLEO-F722ZE board.

Signed-off-by: Roy Jamil <roy.jamil@ac6.fr>
@RoyAc6 RoyAc6 force-pushed the stm32f7_pm_support branch from f9cd6d0 to b813643 Compare November 12, 2025 15:39
@sonarqubecloud
Copy link

compatible = "arm,armv7m-mpu";
reg = <0xe000ed90 0x40>;
};
};
Copy link
Member

Choose a reason for hiding this comment

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

This is suspicious...

Comment on lines +53 to +59
power-states {
stop: stop {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
min-residency-us = <400>;
exit-latency-us = <300>;
};
Copy link
Member

Choose a reason for hiding this comment

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

Indentation issue + missing };

Copy link
Contributor

Choose a reason for hiding this comment

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

@erwango If there are missing }; the dts-linter would complain so I do not believe we have any missing };

Copy link
Contributor

Choose a reason for hiding this comment

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

It's rather the indentation that is fuzzy. Indeed compiling this DTS is valid. But CI DTS linter compliance test obviously complains.

Comment on lines +10 to +13
#include <stm32f7xx_ll_bus.h>
#include <stm32f7xx_ll_cortex.h>
#include <stm32f7xx_ll_pwr.h>
#include <stm32f7xx.h>
Copy link
Member

Choose a reason for hiding this comment

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

See #99012

Comment on lines +15 to +21
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/pm.h>
#include <zephyr/init.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion

-#include <zephyr/drivers/clock_control/stm32_clock_control.h>
-#include <zephyr/drivers/counter.h>
-#include <zephyr/drivers/interrupt_controller/gic.h>
 #include <zephyr/kernel.h>
 #include <zephyr/logging/log.h>
 #include <zephyr/pm/pm.h>
-#include <zephyr/init.h>

Comment on lines +53 to +59
power-states {
stop: stop {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
min-residency-us = <400>;
exit-latency-us = <300>;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

It's rather the indentation that is fuzzy. Indeed compiling this DTS is valid. But CI DTS linter compliance test obviously complains.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants