Repository navigation
Shikra swctrl wake rfc - #1266
linghuiwu (linghuiwu-star) wants to merge 3 commits into
Conversation
Some WCN3990-family designs connect SW_CTRL to a GPIO that can wake the application processor. Document wakeup-source to describe this capability on the WCN PMU node. Signed-off-by: Linghui Wu <linghui.wu@oss.qualcomm.com>
Some WCN3990-family designs route SW_CTRL through a GPIO capable of waking the application processor. The GPIO IRQ resource also enables the Qualcomm TLMM power-save wakeup path when WAKEUP_PRESENT is advertised. When the PMU is marked as a wakeup source, request SW_CTRL as a dedicated wake IRQ. Keep it disabled during normal operation and let the PM core arm it for system suspend. Signed-off-by: Linghui Wu <linghui.wu@oss.qualcomm.com>
The WCN3988 SW_CTRL signal is connected to GPIO88 on the Shikra EVK variants and can participate in the application processor wakeup path. Mark the WCN PMU nodes as wakeup sources so the power sequencing driver configures the SW_CTRL wake IRQ. Signed-off-by: Linghui Wu <linghui.wu@oss.qualcomm.com>
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
PR #1266 — validate-patchPR: #1266
Final Summary
Required actions before merge:
|
PR #1266 — checker-log-analyzerPR: #1266
Detailed report: Full report
|
Summary
Add SW_CTRL wake IRQ support for WCN3990-family power sequencing and
enable it on Shikra.
This is submitted as an RFC because the intended hardware model still
needs confirmation. In particular, SW_CTRL may either be an AP wake
source suitable for
dev_pm_set_dedicated_wake_irq(), or only requirethe Qualcomm TLMM/MPM power-save path to be enabled through a separate
interface.
Background
On Shikra, the WCN3988 SW_CTRL signal is connected to GPIO88 and is
configured as an input.
The Qualcomm downstream implementation enables the TLMM/MPM power-save
wakeup path through
msm_gpio_mpm_wake_set(). The upstream kernel doesnot provide an equivalent API.
An experimental test patch confirmed that requesting the GPIO88 IRQ
resource changes
TLMM_GPIO_INTR_CFG88from0x942to0x9c2, settingPOWER_SAVE_WAKEUP_ENABLE.core keeps the IRQ disabled during normal operation and arms it during
system suspend.
Changes
wakeup-sourcefor the Qualcomm WCN3990 PMU binding.swctrl-gpiosas a dedicated wake IRQ inpwrseq-qcom-wcn.Testing
scripts/checkpatch.pl --strict: no errors or warnings.branch.
the GPIO88 IRQ resource sets
POWER_SAVE_WAKEUP_ENABLE.Testing of this exact series, including system suspend and wake, is still
pending.
Questions
dev_pm_set_dedicated_wake_irq()the correct abstraction?power-save wakeup path?