You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Zephyr and digging through all the abstractions that are available. I'm currently attempting to set up a motor control subsystem that consists of an H-Bridge and an encoder on a switched power rail. This seems like a prime use case for a power domain. I am using the included power-domain-gpio. I have this added to my H-Bridge driver in the device tree as such (the encoder has not been added to the device tree yet):
The device runtime power management works as expected for my motor driver. However, the power domain I have set up initializes to PM_DEVICE_STATE_ACTIVE and does not update with my calls to get and put calls unless I specifically enable the power domain elsewhere:
pm_device_runtime_enable(dev->pm->domain);
Is it expected that the power-domain-gpio requires the user to call pm_device_runtime_enable? I see the other implementations of power domains call this in their init functions. Is there a reason power-domain-gpio is any different?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi There!
I'm new to Zephyr and digging through all the abstractions that are available. I'm currently attempting to set up a motor control subsystem that consists of an H-Bridge and an encoder on a switched power rail. This seems like a prime use case for a power domain. I am using the included
power-domain-gpio
. I have this added to my H-Bridge driver in the device tree as such (the encoder has not been added to the device tree yet):The device runtime power management works as expected for my motor driver. However, the power domain I have set up initializes to
PM_DEVICE_STATE_ACTIVE
and does not update with my calls toget
andput
calls unless I specifically enable the power domain elsewhere:pm_device_runtime_enable(dev->pm->domain);
Is it expected that the
power-domain-gpio
requires the user to callpm_device_runtime_enable
? I see the other implementations of power domains call this in theirinit
functions. Is there a reasonpower-domain-gpio
is any different?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions