From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D17C04AAC50 for ; Wed, 14 Oct 2026 12:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791980362; cv=none; b=g3eq1HIG2HfdLXyhc14YZcRk9+rKU95GEepttXVWRrv2qkJvbYLksC0F1199hzWcm6gNisd1lIMeuSFKiKkd05Ca2S8+SYf8SMDOvFk1S7HZ/DfZDpkufSgDugcoirlIngswSqfK2d5CxpG5rrEz8o79+9tPuUEoSV26ImhS9QQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791980362; c=relaxed/simple; bh=qhS8MNkDQHRfqbTNQhDUBpErJ9biaMj+d95Ij1s7z7o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GxzvXKm2qiG4VleY07Vh7XVcLVNqlvhl2/jIQ1VdHHN+EP3LNFM/UquAEcYwV+3EyXga7j3GLgv5lHb0XDUGBtoQPVqMeQ2SKkqTRQXDFO9JSVvh6NE/pbY9LXWDsL4/ZFqMYxyRA1n4YmbJBAUAN0drMxWdihPSQnhZuZ+tJqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=PUjq6TUi; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Gx4yXjba; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="PUjq6TUi"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Gx4yXjba" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EC1Xfi2087990 for ; Wed, 14 Oct 2026 12:19:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=Jq90LBuDnLYVMzo9xa4WUu53RzmLM94/Z9r DW7XH1P8=; b=PUjq6TUi6UYp1s7mZcV6KoqAy/UJilYnmKEM2RNGg6SZOkWvXiD XT3bgtn3fPYKeSFqMKlj6U4Nk03oo57yx2s3wSIwRMTI8aQJTzFvrJbYjfSEqwOb 1PfgTaFvbGciEVP0CYN6u5fPjB94lj2xR0rZBMF8KzJ6iareHPsn/wsQRX6rPbOO nNTQYbcYs4GpYwG9NqFv3Mgzc7VHG/sJLArXyVMo7QzGuqXPKdsc+zfmADAZpnwg PnzK5MqJw7PMIGE3mZlOoifwvr3cs/xidIqGnIpafk7GOT2+M9vnRY8iHDEOr4Hz 64sYBX8ZdzT5vRAKq28recKC4Wqhiqed7JQ== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h9x49js3v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 12:19:20 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cd5f6002170so545049a12.3 for ; Wed, 14 Oct 2026 05:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791980359; x=1792585159; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Jq90LBuDnLYVMzo9xa4WUu53RzmLM94/Z9rDW7XH1P8=; b=Gx4yXjbae4yge0vxt6SKWEjIif5kEU/moLyVGYgo+/dM4t/ZcyPtXk96KXK0EUjOvt 32xhV+EIq3SsvWSzthqZn6V9qU860t/27IsS45IH3u+MC37stxbwfFUQip70EoXTjIHi P4urTxFNHHyMHCDSI4FrB0QlnY1Ix7Ymz6F7u27kFeS8Dc2c9O7drk04JOdcYyPy6+qv yzsrXVCVNACdviHYJ7RefHOrHxltgEi2ZfB/FDTcc/mobaxiKx/Dbh54b03UcAcFcFvi 3w9BIh21HIEIyIAPFz0vo4Pky9PWxJ1GtGb7prtOFNz59WR477twL0ctm8W8ThQKXPzC fHNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791980359; x=1792585159; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Jq90LBuDnLYVMzo9xa4WUu53RzmLM94/Z9rDW7XH1P8=; b=d1RZkc4KMSVu2IGLtyM9inTBTxXnKkw/wlwqXFuVkIuTnOXfvIGJBEKsZzQEIQM30n 0Yq2edeKXVhTwre6KZ/618jKSRONRVx/otrDXwSb2dVFh4rjxnQs566XumO9YvL2qbRR ec6FfxromXlezamK8rvVIR5mI6GWULzknFWtvrlr3zcVl8k/z03q92CWQnz1Wlpj7jVS wDr5bNtLvEi6qOiIkpqwEaCFdazJ32DGHhQzeHgAY6XFF8fDSwBiS5Gtv0+YLL6kmV2e khFdPZs850G0TdcMiBmSlNw11ppzZW5nFVv++OIQIbwRjtEuc0yj+ip379NZyf4njFeT H7cg== X-Forwarded-Encrypted: i=1; AKwUvBzTM26J4KunlVAPoC2GSMvuN4vFikqgDwjCw7rg/J1X8cMxs7O+7MCKXfoFt+DO8RCNao5gFv00gZxG@vger.kernel.org X-Gm-Message-State: AFq9FYJ7KBiYrIDIP64SIpe0HN2rIAV8AmHuc4Q+76TwWsCZjCVBDtgZ +KkR+MYmKpdB+ENAPjhEIbwVK9t2J6qlvXF/5kkUmYOsHMGjN0k21oXglMWwwaubw9MYlAlyeQj ydDZ2MYY0V43qWQ50tHrvxn63hM+Stm+0Oe1M4wvoMKL1g4p7My6cKASBtk0yQDNB X-Gm-Gg: AYBFou3vQmH75LdAxRoqaznhgX7AfnOhEa0OcdPtP3lfAU3p4Zw5Q//GyfhfgfXAvXY z30284i60fpjcM1icFSXDPQTXUJxN6qB7w4S6U+ZqWmCtP6C/eVsP53QokStbS7Hc+QZt3g4HsK IRNi1/fNxqktlFZCZ1pq9ldlaWOowTt51QAGhL+JlKLcKBsWMJdD/NM6pXmQPbWnv287K41hH6B PKOtZwTpN6iid5BEC1u4s9gn2EO2UMy/UOprJabg5MKVIP38vKEObqjGtGCrRJDJcQXNcJKXXNO eGs+Zh68xdIT6JxBsVSJpnYVzz1jiCMy/Naj6RPU7OXCvdw1hBuipkCmA8Ad+gwTFhSQ6AgI/En ZKPNLVJNAraZSFxq2WN9c+caqpHJ9 X-Received: by 2002:a05:6a21:8285:b0:3de:50df:7faa with SMTP id adf61e73a8af0-3e16bd47a3cmr24640025637.1.1791980359346; Wed, 14 Oct 2026 05:19:19 -0700 (PDT) X-Received: by 2002:a05:6a21:8285:b0:3de:50df:7faa with SMTP id adf61e73a8af0-3e16bd47a3cmr24639989637.1.1791980358858; Wed, 14 Oct 2026 05:19:18 -0700 (PDT) Received: from sdciot-sh07-lnx.qualcomm.com ([114.94.8.21]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-89d804ec645sm1016990b3a.43.2026.10.14.05.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 05:19:18 -0700 (PDT) From: Linghui Wu To: Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio Cc: Bartosz Golaszewski , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Miaoqing Pan , Hangtian Zhu , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linghui Wu Subject: [RFC PATCH 0/3] power: sequencing: qcom-wcn: support SW_CTRL wake IRQ Date: Wed, 14 Oct 2026 20:19:07 +0800 Message-ID: <20261014121910.1509541-1-linghui.wu@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=YJcKWhGx c=1 sm=1 tr=0 ts=6acf7348 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=Uz3yg00KUFJ2y2WijEJ4bw==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=LbSbASDYXwb1C5uybScA:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA0OCBTYWx0ZWRfXyCU1dOp7yu8W Pk6PrH4wdjSpIW8sX1+7z2juNvf8w0orCZ1GFcdB3hQ9ss312BAT7Q0xoqlAktBwk6SjtRdEqVN o4JquhlI8j2ablAnHXPh0zXMhsX48Dgs+pCP4xOxjb1NKSqPvKSiIyV8Rfk5VD2LE0/9uDZeGMI tVoPySilJMcnZUWBy/Iu+oaur0LpfyJg1RL6zgOaPXrFsJ6IcxFbEhp8JqvB6KMyXNONWRS0RuQ di5o3mXCOXCuV41fbBB4ltyIMB3YtwqMs5uzpweKaFWOAcRHA/iC94wV9b7Hv9QDULl/D93YghU jUca8VPVnvTf/a5Ia6iyBUtJWtkAM7jB8N/allEKNW3WtZTxeb8NU1adwKLCGm2y5FfsiNh5tD5 /qT5sowk4cPNR1QJ6w76dVSxK4a8nlO+9bGASTFF9NZAiirDVcjR5ZxF7eerOGu5gLqhzeOXobP IV1MbdpATKEqaj5lHmg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA0OCBTYWx0ZWRfX86O/ataNC7TN Awi29B2LeIVh3tz23bBVFf0F3C1OOai2ZY1Ocp0lfVWQZUwEwX5+2EOYjNjrs0sYSjaesZTUJTP YV9yVz0euyF8uzyjOYHPKmQgBT8ujeA= X-Proofpoint-GUID: rlpfNJK-IqdFtRh1zrSSNRD1ovFAfseW X-Proofpoint-ORIG-GUID: rlpfNJK-IqdFtRh1zrSSNRD1ovFAfseW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 clxscore=1015 impostorscore=0 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140048 Some WCN3990-family designs connect the SW_CTRL output to a GPIO on the application processor. On Shikra, the WCN3988 SW_CTRL signal is connected to GPIO88 and is used through the MGPI/AOSS hardware path to request the required RF clocks. Qualcomm downstream kernels configure this path through msm_gpio_mpm_wake_set(), but upstream does not provide an equivalent API. This series models SW_CTRL as a dedicated wake IRQ. Requesting the GPIO IRQ resource enables POWER_SAVE_WAKEUP_ENABLE in Qualcomm TLMM when WAKEUP_PRESENT is advertised, while the PM core keeps the IRQ disabled during normal operation and arms it for system suspend. This is an RFC because the intended hardware and software model still needs confirmation. In particular, please advise whether SW_CTRL should be represented as an AP wake source using dev_pm_set_dedicated_wake_irq(), or whether Linux only needs an interface to explicitly configure the TLMM/MGPI power-save path. The series documents the named wakeup interrupt for the WCN PMU binding, implements dedicated wake IRQ handling in the Qualcomm WCN power sequencer, and enables it on the Shikra CQM, CQS and IQS EVKs. On this base, CQM and CQS share shikra-cqm-som.dtsi, while IQS uses shikra-iqs-som.dtsi. Testing: - scripts/checkpatch.pl --strict: passed - dt-binding-check: passed - dtb-check: passed - sparse-check: passed - Shikra CQM, CQS and IQS DTB builds: passed - QIPL validation of the equivalent qcom-6.18.y implementation: passed An earlier experiment confirmed that requesting GPIO88 as an IRQ changes TLMM_GPIO_INTR_CFG88 from 0x942 to 0x9c2, setting POWER_SAVE_WAKEUP_ENABLE. Linghui Wu (3): dt-bindings: power: sequencing: qcom-wcn: document wakeup-source power: sequencing: qcom-wcn: support SW_CTRL wake IRQ arm64: dts: qcom: shikra: enable WCN SW_CTRL wakeup .../bindings/regulator/qcom,wcn3990-pmu.yaml | 22 ++++++++++++++ arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 4 +++ arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi | 4 +++ drivers/power/sequencing/pwrseq-qcom-wcn.c | 30 +++++++++++++++++++ 4 files changed, 60 insertions(+) base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a -- 2.43.0