Re: [PATCH 2/7] pmdomain: st: add STM32MP power domain
From: Ulf Hansson
Date: Fri Nov 27 2026 - 09:59:57 EST
[...]
> >
> >>> However, there is a fallback option as well. I think it should be
> >>> possible to drop the D1 PM domain altogether and instead hook up
> >>> "usart2" (and similar devices) directly to the cluster PM domain. To
> >>> allow deeper states for the cluster PM domain even if there is a
> >>> system wakeup configured for the usart2 device, the corresponding
> >>> driver can call device_set_out_band_wakeup(). This informs genpd that
> >>> it's perfectly fine to do a power off during system suspend, see also
> >>> genpd_finish_suspend().
> >>
> >> If the device are move in cluster power domain, it is OK for S2Idle but
> >> it is not valid for CpuIdle
> >>
> >> For example when UART/SDCARD is not suspended, the domain cluster will
> >> be powerered-off
> > No it will not. If UART is active from a runtime PM point of view,
> > that will prevent the cluster from being turned off.
>
>
> Sorry, I misunderstood your earlier point. I have now looked at
> device_set_out_band_wakeup(), added in v6.19, and I understand
> your suggestion better.
>
> For devices whose system-wakeup signal is routed through EXTI1, this
> API could let genpd power off the relevant domain during system
> suspend. It seems straightforward for STM32-specific drivers,
> but may be less suitable for generic drivers such as EHCI and OHCI
> if they also need changes.
Right, good point!
So we may need to add corresponding dt property to allow us to
describe an "out-band" wakeup. Maybe something already exists, I don't
know at this point.
>
> My reason for keeping the D1 domain was to describe the SoC-specific
> power-domain topology in DT, rather than requiring individual drivers
> to know about this hardware restriction.
Yep, as I said, I am perfectly fine with this approach.
>
> Nevertheless, I will use this API if the D1 power-domain binding is
> not acceptable and the devices are attached directly to the PSCI
> cluster domain.
>
Makes sense!
Kind regards
Uffe