From patchwork Fri Aug 11 20:48:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1360340vqi; Fri, 11 Aug 2023 14:16:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRR/7DSmVkqXnGAbb48ZvjoNYjXswucgLrHZ7Uzebzr/BYwImP5hL6ckoiVqmWoDE8uk8p X-Received: by 2002:a05:6a00:2d0a:b0:687:82f9:3d8d with SMTP id fa10-20020a056a002d0a00b0068782f93d8dmr3657782pfb.2.1691788584975; Fri, 11 Aug 2023 14:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691788584; cv=none; d=google.com; s=arc-20160816; b=qCs5Vm9KhHAV6bVE8yBJfNi7aVYaW8xVzotNSMAsLEdtTJpif/rym9vG2fD8pIfMm9 UVY4CajeutRhi57bDpREAtkpz/tzPiIvh5bJJNP/h8MeisQMA9alHma9L/TcqYeJUv2R ByJh1KVCG+i/MA3ghghfL7D3k+VdB3YAsUmV2HGbA8zhbqFGtQU7o/ZvigcOS0HyKDTl SnoVdkqHGofdn2gUDkKsRQRO+4xzd/pmjcYgcQzY5nbtxP4urf3FVhqkyOTdItRy8fGs eNxShfRV1Vjt2jLcCF7/onArFsC1N0LX0vikHu9nU2p/7pCZglfy/+2ep8Tw0BznkVeF ugUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=EQV2jupR/5vAA1PevJI0x6uxV/GO18vdetPpmLfoZ7M=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=S2RKHSf1Y1k9IDlKImwRnS9BnCo+Pk8kMby6SB4ejmYtavXbRZtvfqrTEQiRX6ynJd dKgYqvrP8uEDZX2A30dPwlaCd3nv6bDU6mFnsHe6mXKH0+iSRBba66p4YFP9maVgKSb0 2ybi4mCAlTk0JuDP5w1CZYj5RixOR/xT2CqTULXzptNGXmbz7ZseUB2aEh/4cx8shKG5 O45B+8oT+VqF2uxJwc+3jmGeFrnueype8DyplAr62vXtBNAK/JrhJVvBzGE29SJFZj1J uLPhEy0EjvQHPo+IYZNmOfWSmfX4QnUpgwZy8hvWnHCkdwux/LK8ZczPQgW72vGwMnC7 BBNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVeg8s6m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a056a001bc600b006827c671c1asi3911369pfw.226.2023.08.11.14.16.09; Fri, 11 Aug 2023 14:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVeg8s6m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236701AbjHKUsp (ORCPT + 99 others); Fri, 11 Aug 2023 16:48:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236635AbjHKUsn (ORCPT ); Fri, 11 Aug 2023 16:48:43 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF2B2D55 for ; Fri, 11 Aug 2023 13:48:43 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fe934c4decso2712422e87.1 for ; Fri, 11 Aug 2023 13:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786921; x=1692391721; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EQV2jupR/5vAA1PevJI0x6uxV/GO18vdetPpmLfoZ7M=; b=VVeg8s6mHL9YLWJM716a3dogBj1tlmEN35YqbJDaUIiCeEBJFmPazGDriEEtuNIaUz OP4estcVaYCOyVGB303jT1LnARQnOb/Gwsl9VXB4PKOtFAKZTo4ia9DFd7FQB/wl6Elc dvx3tHn6AqGrPFs177sy3UKs8kQN5klz9/iaqAVtLWBkqFMx7dXkAz7/YtXu+Je62Apk 2yx00uszaget7nTdBvqbxHJo70dZt8mnf48tzoMqkiY/7I0R2+cCeQHdDERPQkiayPkf 2lxoXpdynqCOZr9lHrMMUkRrm0sjdFknSfTNUUVKdAEo772BR5iaRiGMW/y8K6dBJq2+ HPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786921; x=1692391721; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EQV2jupR/5vAA1PevJI0x6uxV/GO18vdetPpmLfoZ7M=; b=UV5Gcjm5FMbi+I4F8jw01yUcBoC8szf6XaNeuTO4tv20zPHcwLFsmy48lReHTqzjGN uThpgw7hI0EP8aa2tdC3pQoBF0BYbzWxLDQo/NDia7OGpxOz3pi4tRt2+dBNyNxeStOM f485K8aPuHiBVuRhXUJqAkeWX9EM78KiO3NYOf7jMQjAh1u5HCaXyfEeTnMyaXlNfEPj 3lWTK63twuS/1qR2+DcrG8XupPgd3Lw0Ki+AsPYcOdNuInsq/rAQM1+T0OGCGIVDLeC0 FQrwEXX4CUz1kJ5CMCBOwB09rzgxaqLJ3QZWf7jSyoQPPF1dLccZqJYB7jfz3TGjiwOp liRA== X-Gm-Message-State: AOJu0YwTxdjpWBqd6DLCIyb5+C8bS+mMRwMAtM70n+7kcNL4VA33Ibm/ tz4XtXMmpaMdnWSrOQtHPn8pJ8GvQXG45zlK4i0= X-Received: by 2002:a05:6512:3b2a:b0:4fe:8ba9:4c0 with SMTP id f42-20020a0565123b2a00b004fe8ba904c0mr3002975lfv.26.1691786921602; Fri, 11 Aug 2023 13:48:41 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:40 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:34 +0200 Subject: [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-1-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=850; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1jl25QFtvSM1xz4SkIyIuI142d240hG00GfPqC6ikw0=; b=jevYVYJoemKYDzANIL+e/uwGk9VOH6buBSkzSuOtMcGGrHL04B+JIKufpz0Co7ZDkagAX4r5z eUwMvVb9MjhDzoRj4UNuk7u7+7DyRPRN8q5BAp4CL05MC3Blywoep7g X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773968907614824682 X-GMAIL-MSGID: 1773968907614824682 Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml index a106ba6e810b..4847b04be1a1 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml @@ -31,6 +31,7 @@ properties: - qcom,sc7180-pdc - qcom,sc7280-pdc - qcom,sc8280xp-pdc + - qcom,sdm670-pdc - qcom,sdm845-pdc - qcom,sdx55-pdc - qcom,sdx65-pdc From patchwork Fri Aug 11 20:48:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1384928vqi; Fri, 11 Aug 2023 15:12:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3O59dLnqHk3J+4DvAdCc7+MBonLw4Kmg+rkz8p9FMuirXExy4QvFeJWMisrpBqR3oRopr X-Received: by 2002:a05:6512:3b9c:b0:4fb:8eec:ce47 with SMTP id g28-20020a0565123b9c00b004fb8eecce47mr2739562lfv.58.1691791925952; Fri, 11 Aug 2023 15:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691791925; cv=none; d=google.com; s=arc-20160816; b=t5Am05BAH+KsD+2286o8v9KX+HzwPaoVgTMkqEl1SgWkjrsb6slgcXf/+QPdjZaLnn nMCprOLsSpAJwTaoXZDAzzMPrVytlIsVSiHb+XnbfITVb8PNBTjEF1BL5QHqsqy7cb8k Pk3KtdrK/fOyq2kgFDWnmddnUy2tf79i/1n7MX8/6yhB7ZzYdXRHb2t9EMQBxCg8XXfA H9tW5kaAYZl+HG+qUCH/s1Qfx46rYHks7UVOJQyliQ1v54TeP2qvnt5EwhLjd2ZE4t2c fHRWT53vU4ayZ8i7XaxO0+aBAoOpgqHN1CY8AoK/oDnfx2UCK83MJ9cKjBhLAP7qpu4K eJBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DRy29PLfl3uv7uYq7ooGKIoRmBa7PZkCEGgELznuvEQ=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=Jz8rwzVnJxS+4HxhS7RU0L51KvNcDCENz4jDL8YXWQya3J/U7wRql5PyyfgCRSvH0l kgRIa0a8352npwK61/Wf+EGtDymE7QJbYSUShab2aLa5pepR7S+veqBYF+twH6f6FJ9J q8NbRUJAkZD8wEBfgUjvlfDCm2JXSM+2rTZ0YLqnT9B40kGQ5ktwY90nSF1et7V6OjmX 89rgt7JNRnEQgMaXD8ljJq5Fy539RtDqpAiJfZ+DmTgFGzdWYyZC5urCinuguNTQUBJF VznD+5vuUjRS8DF1cZxq+KSswvOqYemgr4lSAwiFzU/XCUTDIYgf+Z/uPCxDf15yK29N wP9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bOyC2qyN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a056402068700b005232ce849d6si3801991edy.588.2023.08.11.15.11.42; Fri, 11 Aug 2023 15:12:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bOyC2qyN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232942AbjHKUst (ORCPT + 99 others); Fri, 11 Aug 2023 16:48:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236659AbjHKUsp (ORCPT ); Fri, 11 Aug 2023 16:48:45 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056052D54 for ; Fri, 11 Aug 2023 13:48:45 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe11652b64so3770065e87.0 for ; Fri, 11 Aug 2023 13:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786923; x=1692391723; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DRy29PLfl3uv7uYq7ooGKIoRmBa7PZkCEGgELznuvEQ=; b=bOyC2qyNRTyNTveRG2ET/rdR1xG/Z4VRYBAaMA6L9pLnpx5PobkQMZuz6gt//cXnyU UliRq7r2fBfLC4XevYRSAEDtVaWAbtLpWRGEYGaphfC88y0VxwrH9hB78tJWcDwSH0dH NAMm1+ydnpg6rCi6D4R+4WWv8kM7XDH5dqtTrZ9qspPLEPEfPcvNq2U6KKN9rDeJcNiV dJIqEwMXTlJLD20VnuFJ1YwX6LwLL0DizNevKjbpwL89+RhewIQguG91FslAzwumXVJk EcY4gFarsOQFmXbiU8IB0U1TMyWQtWOYdHbze2xJa/pqCvUzo3e9iVXPynksCZAoLdoJ 7h6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786923; x=1692391723; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DRy29PLfl3uv7uYq7ooGKIoRmBa7PZkCEGgELznuvEQ=; b=e9UiMq994/6vbmCDLK1XLUX6CYRLEUSt1As/5hTkEFmtvA6MmspOIoguOSg1Qb/ZXW 2xprgcPEc71JJdMPSJ39lc47Xi/JLngVxBId4nRSgx2JJ7GkUZtzss5a/n89+e2IkLQz Kv/bRajPltb5ZdhGOCm+x5pTXjBR/8D+n61pLWJQDREUXxzAdkdlTldgqZkCmirgcL/R T+5mti+oLWOjjH8MoTd0u05aTeDpW4/REClU9JDEe816FSkveaMv6znSGE/T419xfPsZ kJ+dWuMaSaZV+qV+0xXP/kWURutgRZJkovbVSBF13XCfBdpXkQ1xpwP/mJeTK7suK5rA 2qEQ== X-Gm-Message-State: AOJu0YzbjH2P9FXLGMvIRapubWeqL7l+pz1zRvc9v93VeqRGI+8P1E5H 4GdVgB+iOTg9617k2UfuWnKJZg== X-Received: by 2002:a05:6512:2346:b0:4f8:5905:8e0a with SMTP id p6-20020a056512234600b004f859058e0amr2532023lfu.6.1691786923080; Fri, 11 Aug 2023 13:48:43 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:42 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:35 +0200 Subject: [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-2-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=971; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=um/5BTEZycheILrl/QxnMPLkTqEt8HDkcKZ/UZi7lao=; b=dJ9CENwPlUOTjQ/gDAH8Kr4v8q3NUK9TDrNuw/SKsfgjBXQEkcugLKC0pho5MrbyOOj+3ncA6 UlRPYm5r1zMBaYWqeMfyi6pn5KLZ/OlTQuLq5QYm6SvSBPmgt9r+7X9 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773972410815206617 X-GMAIL-MSGID: 1773972410815206617 Add support for the PDC to enable deep sleep wakeup from external sources. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index a1c207c0266d..da10f0a6d92e 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -1169,6 +1169,16 @@ usb_1_dwc3: usb@a600000 { }; }; + pdc: interrupt-controller@b220000 { + compatible = "qcom,sdm670-pdc", "qcom,pdc"; + reg = <0 0x0b220000 0 0x30000>; + qcom,pdc-ranges = <0 480 40>, <41 521 7>, <49 529 4>, + <54 534 24>, <79 559 30>, <115 630 7>; + #interrupt-cells = <2>; + interrupt-parent = <&intc>; + interrupt-controller; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c440000 0 0x1100>, From patchwork Fri Aug 11 20:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1357145vqi; Fri, 11 Aug 2023 14:09:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1Wka1PRFsddldPCaI0KWb/6BkwbBhboBPtD7wzKJfFagxpNwP2UMcsXq8oYeWwp4Xa86J X-Received: by 2002:a05:651c:217:b0:2b6:e78e:1e58 with SMTP id y23-20020a05651c021700b002b6e78e1e58mr2400828ljn.5.1691788194970; Fri, 11 Aug 2023 14:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691788194; cv=none; d=google.com; s=arc-20160816; b=aA6bcgrX8vkYcXSudv7AgsPkTkk35KajiMemQ6TgAkZ1AAAdXOh022loHUNpyPTRbI d95oFtDVdhuZBBmLI3N9JNjinaj4bGnZdOlt6l21CQtFdbC1cKoreyuI6hinY7JZYmvB t1V4a2KFO6x0uthgmySydpO0QUo0D5p5fiz+3RagJHRflNYh/aRaUm9qMVjv05x6qJTp Die9jhtyOJzJaAZXb7GHO7DBJRlzhMczjCVKxP9Me6pZfofNIJS3rYSilfmICtR+Iysz zAjYtobsfbWzHcPbCn1xjlpIaonaZVbs81OV60b6ZL5GjEA8dlkvlbe2x5lffQitiHl5 qflQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Pxu621iOgDMVf5ytcvTvDymBIHNNCG8lYXpYeJOQc/s=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=ELGIQDtjfo6BVxIGP1OuQt1RFZuZ2N8IG8Tve+42buGPUecVmNOo+BfiqXHyiVf1yS N0VFPUGUn9jdoymfWYX0cbSOw4lsmnO3ua2CECz1nquOors/XPy12qdNgAAl3yRmz1iN Apsk4piGJNrGCUf5DoRazIsz6W41Nf3f5FAfqgsFtTtkXS5BTahwubPe4EEUqxSAd6aH +k2rGQGRweon9G0JD62WwHgGHddu1BiMBxcCOrudzyKQaDT3ihesSBqQykxGm067va7/ DPnSrFvVVlbSROxUQDp5DDSdaZEWADzLu7Fqz638sTe55E2DEmRqfRF0rW5/9ywKKgE4 3DQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O3cstlrC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha26-20020a170906a89a00b00988c81e980dsi3906480ejb.1039.2023.08.11.14.09.30; Fri, 11 Aug 2023 14:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O3cstlrC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236659AbjHKUsv (ORCPT + 99 others); Fri, 11 Aug 2023 16:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236726AbjHKUsq (ORCPT ); Fri, 11 Aug 2023 16:48:46 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F157A30EB for ; Fri, 11 Aug 2023 13:48:45 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4fe1c285690so3736423e87.3 for ; Fri, 11 Aug 2023 13:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786924; x=1692391724; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Pxu621iOgDMVf5ytcvTvDymBIHNNCG8lYXpYeJOQc/s=; b=O3cstlrC8x31U8pm9x7wPu1gRqdwnwU+N7HWBN63Q5dVvwM/LP6bhxnr7/KFiMtQXl 7SvvS7B0XkxEeDhxUMkOMpRl1JjGuR6VZ7109PY2qz2K4P+eLz+++0QnXEOYIb469Cad A2STxCMhXFevpxDmcYLf3mGC95Oq49GFyGYQbZCVcqQr8jx8Igu9G/ebA5G/HnkzsJii dq2R6OQjm98IJpc85tNk3gJ+8KPyYCkqnMsI0BShMrl/kvSEOD2SlmfeosUli/KeC4/6 36OUJ04qexUiuP/zcrS18CmQMxOlisG6vaxGWEufi1VRiiQA/QfxOoh+ywlpJT+9h6o3 iGEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786924; x=1692391724; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pxu621iOgDMVf5ytcvTvDymBIHNNCG8lYXpYeJOQc/s=; b=M2tgzg5rlr8hN39XY/tTZbohE43/Fk4FdEjmXjmQ+1n46ntr+996G2fKSUMQ++TJix oC8Z++C+GTRT5YPbxkFS3nnbqkZH/TR/erfI/BhRobsqWq2BeyjcB30O+JpTLC4g9sR/ sUWCQA55HAXq5pvoNOnmYtfjTMpythU1EE7C8lNahxEQw+t3Sf0im3lTVDvwr3jaXpvg 8Lv8vpxiwvs2qwYeVyz1U1e1+oDo9cikRaL3CXldPjuarSOJ8is2h8T68w7P5LSjeKgl S5nCCUxcNbIil2Qt/4crRh0r/ZIry9MuYAmnfOQnyp4UUyJg6lr4pnBdh7m+jYXAqxd7 vGMQ== X-Gm-Message-State: AOJu0Yw4rVcDvBKzsGxH/Euf+5Vh3/Wj2CgyNa3OgxzGG4P/OZg7hLVl NUQIv8TGl1phdnFr55x+4GJDCw== X-Received: by 2002:a05:6512:1094:b0:4f6:3ab6:3d9e with SMTP id j20-20020a056512109400b004f63ab63d9emr2418415lfg.59.1691786924317; Fri, 11 Aug 2023 13:48:44 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:43 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:36 +0200 Subject: [PATCH 3/6] arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-3-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=721; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=kYvW1Y7s3IPV5ZeIvEGtTVuGsinHTVjJIAqHXcfSnqE=; b=BQSob8/ASC9YBeFxeETIW6Iyjz3GvK06YaeuywWDWzO8xX/X1yhXRNtvltV8GZ4Wr2wSIcWe1 IKD8U7hqeYCBJyVh4czH38Kz5o0bNIpB7zWQCP/dxFcGCEU6rMVb35E X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773968498311097909 X-GMAIL-MSGID: 1773968498311097909 Some TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 0756b7c141ff..cad59af7ccef 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -4059,6 +4059,7 @@ tlmm: pinctrl@f100000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 230>; + wakeup-parent = <&pdc>; }; apps_smmu: iommu@15000000 { From patchwork Fri Aug 11 20:48:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1378059vqi; Fri, 11 Aug 2023 14:59:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaeqNzCu/TvqNdy/Q09FBLnozH2Zq2jHhkA5L1NhaUXmGRxaNQEO2Y4zAh1PrXQgpaOSoT X-Received: by 2002:aa7:c495:0:b0:523:95e:c2c0 with SMTP id m21-20020aa7c495000000b00523095ec2c0mr2442600edq.42.1691791194797; Fri, 11 Aug 2023 14:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691791194; cv=none; d=google.com; s=arc-20160816; b=ZAcBHE08pnBYIZxa97q9OvhCHgZUkeIfNm6SGW7eB7uiLnaebdjusWwXGefZYW0F2H oqW+XWmIMthPS8z/H61XU506SQEMSOjIDmFzlaOq/IfcAAPyyJdpk75ywggt+7U9nsQp +Da1++UDhO/PYH/W3PwLA+fOsjhOApb1D3ms1x2q6/cbQsx5bOEm1GALcJQVuGW//2Bc sJriUP01yZ2QeecIO6DsMYqME89Y0DOiIYmSkL5GFenwTO9+Nu8JOfvCkmzh3GKVkqk/ gRNbWvdVVh26I9paUpoJWUUtX5epAFNdNBrB3F3qplFuo7NCr1IAezhvrb1+/trQYOHj EWYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=hMAmzExWeY7DLaS6HiuDa4H+3gBOsphjz1a09Sd7Fnk=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=jLtEQDEhlXKeXI5+rVciiTnWs0Z+ZmRjAXCpYYGogANcxgDSpnaHdVMR3zkTaTFiu1 dBMVJlOHAeEjOXj6Z0oXV+vDL8fyhqozdeLav+dryX2ywF0I5RKr9zMn0zQQkI5t2TFv HP6yTZawoD4xwFDIWzuQbTNkwScIUvvB8buFQQBh7Hd5tgXaIiPW7+qmrPYKEikyn+My n0bRv2rumOPyPy3c9YEcnfCsB9Xh86joxvN8KqW5Q5mDpXWis8BF6/2tw8oQ9pJwY21u vGdPqcc56GhpfuK8P4GwWx3AMZTf6OOQindptSXzrYKQbtN329b5U9eVbM2QNnQxMM7F KG4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HVBUecr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a056402111300b005223aaec697si3790543edv.576.2023.08.11.14.59.31; Fri, 11 Aug 2023 14:59:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HVBUecr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234066AbjHKUtN (ORCPT + 99 others); Fri, 11 Aug 2023 16:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236565AbjHKUsr (ORCPT ); Fri, 11 Aug 2023 16:48:47 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3577E2D5B for ; Fri, 11 Aug 2023 13:48:47 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4fe11652b64so3770106e87.0 for ; Fri, 11 Aug 2023 13:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786925; x=1692391725; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hMAmzExWeY7DLaS6HiuDa4H+3gBOsphjz1a09Sd7Fnk=; b=HVBUecr05adAwnMy4a+ynJdclZEowV63w0UAeVcHLizxVkSTawy+DasfMKck98yein gzlT7LLxwFyvsaLQECn9OUKBGGbEpvmjtYiNvSGu5O4hzodINfPDV+qXCuG7N6Tr9cxs UQvsIjJ2ZvwGE4rYsBrnEvhZGgiBlUQ1eSrH7AtBPNWt1krXmsN4uJSAX5m3Jso7j77e NLrvknFl84nZJ6cgfKO/0BZJ76zOMrwG9QFYKKzUkAAd+D9UgNtLM3O1SHQA0HkDoaAK x3HEPx6tDwVxXSrH7s9O5aqqldWDk43ZwPSNOmDnLxzfa1kJkR4nJltPYoCPez3ZYwAS 0MtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786925; x=1692391725; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hMAmzExWeY7DLaS6HiuDa4H+3gBOsphjz1a09Sd7Fnk=; b=HpXW9spWuqppdGMbCIR0c5Y6GXJ1CdpqjcUb76N9oxhzF2YYPEUVlJp9jd6HI0rl4C VhZCkkKlMAET6SeIbCpjct3XdvYMpq3YqYQtJlptl+UMzR62IALHJevy2KORxaUzcmbw TxoLByHNDlLFk4xqT7hLggj/WsOiX4QSO/yuzB6tvmEvAd/m7NDlHnnYnbIT69c6zD+Y X17edp9ve1xPNR+RaPfJiyPWALcYasqfQH0VOlNxkHwxIpk0/smrGBYosVfcVXJCK8e8 Mnt9yghb7XnaQpiaEgYq8f/NUcNM/Byyr/T3RvKvlDjIz328dqVvBgC0ssZLbO6VpHSv iRqg== X-Gm-Message-State: AOJu0YwoZH69zG7vyGJUtdtsYqrs2woRnms9wZ4TynIkqBVjBbc3vzCG nT7HRs2FE90TURwgsObcIMvM9w== X-Received: by 2002:a05:6512:340c:b0:4fb:a990:bb28 with SMTP id i12-20020a056512340c00b004fba990bb28mr2520664lfr.18.1691786925531; Fri, 11 Aug 2023 13:48:45 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:45 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:37 +0200 Subject: [PATCH 4/6] arm64: dts: qcom: sa8775p: Hook up PDC as wakeup-parent of TLMM MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-4-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=716; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=beJvqeK4ZNSk+iejw2uYXTpoSvA07gUCVf/WdmENsC0=; b=4XKmTOUY2kZyrDx59I91Yj3H7nwVFzWoeTR61SlSPmi84cmUNPXUGw8q0k4OSx3hGQdJaqcTZ RZCWZl/p54TBtWb0/uR1X/4EVh4WUn4bKxIPHMYl8axUJTDUNuy07q5 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773971643708363155 X-GMAIL-MSGID: 1773971643708363155 Some TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 7b55cb701472..830730c020ba 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -1934,6 +1934,7 @@ tlmm: pinctrl@f000000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 149>; + wakeup-parent = <&pdc>; }; apps_smmu: iommu@15000000 { From patchwork Fri Aug 11 20:48:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1390089vqi; Fri, 11 Aug 2023 15:24:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFm2Bu612T6Dsx29/8wx/sR7aIvR2JsnVC2kb3Al8PtEy9cgF/TFtJVSSfUZMaek9NA66yO X-Received: by 2002:a05:6a20:9188:b0:133:215e:7230 with SMTP id v8-20020a056a20918800b00133215e7230mr3861237pzd.55.1691792684803; Fri, 11 Aug 2023 15:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691792684; cv=none; d=google.com; s=arc-20160816; b=jkhVm0xdz5Mr4OP46P/XIcuCqsHNY5HHZTrX+mjAIoo5+SIK5FOVsEF4BfILrotKfB HZ/dYSnwXx8VbbolTi6397mwbQpOYb1N3UuLdNS7YZ7wLDJAgtiTjbokK5jAso+mHT0G fB2WJ/UrxWwL3+IOHdo97IKKewM24J4PQQq50JMVkqPrxOxcqLxQXaB3D74I45iJHBIM JoVGUtyteufRDg+1gltkFlNOnCSnCgN+XuKzpyML8WUBO8KQBSTv2TuQIsJx4oxwGd33 ZROlTgj874V6XpWcPIUnW50pB//QHLB6SR1+gfjJF+4ECKcDx/jrlPjHdJWB+Aenk3Vi CUtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Zbe6rwLIqAzfnDpJ3MJUpo4QwqSNk+XAj+k3Lr/1SgI=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=d5S31xUsR/TBrUCBbZDNzlg0nvmuPTH5wTw5EX9nggsHgmcRLBI7/S0nzligd91Vjx WoOSq3JYvVuN3bh/TyvThXKbKWXJCH8Gm8rYTUlVNXEeoHKKFvtqJnbLWVCRDNONrShS 94tLneG/D1ebVKq1efysE/6IFTLTx5pQjsU43pDeUxZztepGES3FND9VodgZEyrxpiPL uIqevUM9i6ofeFhpTy0EIQIyAoihLV6xpu+/m4uk6YnpI/hR/yJne6Ab1PXi8xMVHpy1 VboPeYMbDvt1y7FzsFxNPp9/FahmFbuQ7Bv89uz8V+PKIMCswiZwvjOF3MrAngia6YT4 s1QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X46Gf6vM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fc42-20020a056a002e2a00b0068711418392si4135016pfb.340.2023.08.11.15.24.31; Fri, 11 Aug 2023 15:24:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X46Gf6vM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236391AbjHKUtR (ORCPT + 99 others); Fri, 11 Aug 2023 16:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236645AbjHKUst (ORCPT ); Fri, 11 Aug 2023 16:48:49 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 431012D70 for ; Fri, 11 Aug 2023 13:48:48 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe28e4671dso3811111e87.0 for ; Fri, 11 Aug 2023 13:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786926; x=1692391726; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Zbe6rwLIqAzfnDpJ3MJUpo4QwqSNk+XAj+k3Lr/1SgI=; b=X46Gf6vMDFNYaY53fAVYDltZHoWEgQf3ko2XbNsFQKFeym06D38HqXIm+JxdRueYC2 8RYmby4BSsY7RzedpPRe57xxNb9Rj9WiCC8mnk+hisEkCp6Qp/gCNxi4g7C4FWhXTkWJ FUKnCm0zjjjzbL0dKw48zuKSNSYub280HkDSv/9Lku3xvG/6ttC/0PA2Bl1HFvMXy8ni NiH+jM1MDNoFs0SmNJELTHMnPFMyzXt1Yiolh0bG35aw+4z91vIoIaLwKyNTGYdM8SvR /pQkuO5b1jQhVqs20lNe5B8lNRNceHUbKGKRQBhKWsFbGcygmLyWgdAgBzeaoUw9EeVb WDiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786926; x=1692391726; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zbe6rwLIqAzfnDpJ3MJUpo4QwqSNk+XAj+k3Lr/1SgI=; b=fFwhmJp1gYAp8fl+KZKE+J7P8n8Vr1UjU8S1EoeIZqnXd2RJ/7mWnVRqUs38iC0Yo8 s0wVehMP0OoHWEkHgazqCnjan62MAXqVvzaFhZoX3HWbpvTZliA7ixsPYZYMDrNiRCFY fqkGv0Tui3YeC4MHvZwUlIMJ25oLiQLw047pNYT+unxMR1WZSr2ZfV0Fr3vrSiJigvrB QsfB568oq8FhZOnMFfrayalxXzVAcIbN0/1a5dHDyNKVFdO/I+Ivy/kiXruI/dd5filj WPIM+D1GUb3jWGwpqLVKq0BCAslS9sjnED0ij9GxQSexuT5aPS5d7Gw+0FX8DETFipbg 4csg== X-Gm-Message-State: AOJu0Yx0bP+Dgxu6jA4LZeZMsfp02p/LUJFn/mjEypJVOTRAxhaFy5jo ris3SDwGopuVeML4wEjt4Rd49Q== X-Received: by 2002:a05:6512:104b:b0:4fe:1a99:45e3 with SMTP id c11-20020a056512104b00b004fe1a9945e3mr2722908lfb.30.1691786926671; Fri, 11 Aug 2023 13:48:46 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:46 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:38 +0200 Subject: [PATCH 5/6] arm64: dts: qcom: sdm670: Hook up PDC as wakeup-parent of TLMM MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-5-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=749; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=noEdJDXBq+yIg8vLz/heyQKfgGe2fGcgrZnodZXu4VU=; b=JcI1HqpLHV7+mVhfa+Rgpgw8Ur/EObC7sGINBPp/i7We3U3MqoU9hgNmah+LsiEc3xETe95b6 QI0TGXgnKsECQUAC7VN6Cym1/rjKj/svvCl9LD/IL6h7p4aLanDmQnb X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773973206137025029 X-GMAIL-MSGID: 1773973206137025029 Some TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index da10f0a6d92e..a2354fe94d98 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -969,6 +969,7 @@ tlmm: pinctrl@3400000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 151>; + wakeup-parent = <&pdc>; qup_i2c0_default: qup-i2c0-default-state { pins = "gpio0", "gpio1"; From patchwork Fri Aug 11 20:48:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 134751 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1391462vqi; Fri, 11 Aug 2023 15:28:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbkJGHjDYr1xYBzwgFqp8N0cC9mxp+jRM4bq+8G4chfyO0eaCz3l5qkfffmZCaR1wKrSVj X-Received: by 2002:aa7:cc90:0:b0:522:36f0:f1a3 with SMTP id p16-20020aa7cc90000000b0052236f0f1a3mr2884160edt.10.1691792923835; Fri, 11 Aug 2023 15:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691792923; cv=none; d=google.com; s=arc-20160816; b=CLN7/7L8qEgWmR8ZnlYQnjIUektRAG3cl7h7ZS8uPdY/8LbQFipCv5MZehpwpCl/uY qFtMLqiDCLCtjwObwkK0Wo4je5i5GwRYM1kZ7B8GvgOA5/tNwwJsR9rpDVh7AggbBpd2 5SliqR61C6i54T/zDAdJ8QaVATF6phi4lJ5kKtC4tP5NyXokuzd40jQ0zKQyjKGz80lD H0IhyZIcE4FKkuJLGOajff/Pvs6f96HAeE/cGIzS3lGjUtdgcUVNMHhh1KLkk2g6Skmi zC++Jhr4dlDd6itRmGvo2SGJLW6pAV8CH/9hPBZpLS3eovYlUUK9TYZEbLLzNV3Bslmr 88EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=41db47u7JHTIc6RPU/e4KhJFc+aEEEb2g0bni/VxnHI=; fh=F4jckYi9sS37mkp22w9fcwsLVwoDonGZYIZ0p2lRXrM=; b=IKMzj82q6I1gYfgPMnbpzYYb0yH6RF+xGqdO7KmjPSxwfrG2GU5M0m+Xvs3W14I84C M8U2JcD/GgmlfGrpfZkWat9T262ItsiyBlA/TiptE0z4YtlF7OJ34si4Nv9u1xnwi/we fLe0Tpm0bo4QxWbSD7SfgFQFP5A/YAqZNqLEIPx7m26mRuN3MBl36riXhxkbdEmyIRGV eIjUSzZRTOzaLgjnpAUHAqR8h/443eVFMPzZEJFZg8tscyZtXPYcHMAmJBJaDyW893zt Vp1LHZgH2be/6KQHmKwj0r/jndQOMjewrpnoHbYgrhltBaw+vKVMUoitmkXKQfshTUYU eTcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iuG5EnRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020aa7d588000000b005230d2b7ff7si4069170edq.270.2023.08.11.15.28.20; Fri, 11 Aug 2023 15:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iuG5EnRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236756AbjHKUtU (ORCPT + 99 others); Fri, 11 Aug 2023 16:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236788AbjHKUsw (ORCPT ); Fri, 11 Aug 2023 16:48:52 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C11FA3580 for ; Fri, 11 Aug 2023 13:48:49 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe0eb0ca75so3663069e87.2 for ; Fri, 11 Aug 2023 13:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691786928; x=1692391728; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=41db47u7JHTIc6RPU/e4KhJFc+aEEEb2g0bni/VxnHI=; b=iuG5EnRjn4wf/FfUMxoRIIVkx8u96UH7ijRuXf249vq+Ze5DqZsJFa/PEzAhWQQk7W RC7evFziFC268XMTZ7uQuq/n2JzVGItEN+ayK1mpW6V7qsDVApUyDUCerzdJc5hIEYQi jlmvwXhBBcBHuGwLPLxfd88PgCogCK3Nls7OBVnSyclmRW6odViSdZKluVA3tPCm7PX6 zkx7sU8H1VxsiKgcLaNjoMIm0dlh6qLiMO+zn+eNdnllksTOALWCE5jlZ87EU19Wnlyw ObRvt3aG9NVxosZ8KyRvqiiD6Klog8NNd/DpLpB16e0dCmeVe6Ub+tcqx7/ZB9oXF2vZ DZ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691786928; x=1692391728; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=41db47u7JHTIc6RPU/e4KhJFc+aEEEb2g0bni/VxnHI=; b=foW/0Ig4LiQRHgmclp2LKsEBuvhYPgbUFYbv4RJ+6tpfDErp0E+jwyBaxvBAXyxvcu r1ySd1qZN0w+vh5RMap0il5RHGyt8h2M/49ivyUrWj60Hi/1zhPl4zWMG6OUxmAuXEz/ 5c07fb7QcAj2k0JWtmOPG+w2x1M5v+lD8eWgTfSVmqLi16mc0MeetWOphBmdEMmcNS8g BSsm1Q6gI4l0p4FOowBDyTOcbh6ObrnS+NWdkvZj1pylytqUc0XFl7SbjLmcG3XGvUSx KCWrDYBC1muXoxszvimJ6WrJFcYlF0yHY49Hpd/R7EImbmw7jEMfVIuQBl5Hj4q/qjR/ KRhg== X-Gm-Message-State: AOJu0YyYokn0k85SGDnoVsD7qFXZn4SxN3pKmgswedBt0LnD1xD+T/+2 15El5KAiA2CuCMDwDEmrQKZ9lw== X-Received: by 2002:a05:6512:1156:b0:4fb:89b3:3374 with SMTP id m22-20020a056512115600b004fb89b33374mr2325742lfg.54.1691786928108; Fri, 11 Aug 2023 13:48:48 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004fe8d684172sm843603lfl.234.2023.08.11.13.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:48:47 -0700 (PDT) From: Konrad Dybcio Date: Fri, 11 Aug 2023 22:48:39 +0200 Subject: [PATCH 6/6] arm64: dts: qcom: sm6350: Hook up PDC as wakeup-parent of TLMM MIME-Version: 1.0 Message-Id: <20230811-topic-tlmm_wakeup-v1-6-5616a7da1fff@linaro.org> References: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> In-Reply-To: <20230811-topic-tlmm_wakeup-v1-0-5616a7da1fff@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Marc Zyngier Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691786918; l=745; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=HKF79DZaKKdLAHbzWWQPNMbkJmaE2nmAXM+wQx1rJmc=; b=XvEvrh7n9Kd1E3uLl7yaB9gSQUaJbS+cbJsYbM4vKgoskHSbdLHC/AAapyTgdx2zQCfwt3NUS BmRPAZWOjZYAg1CHKeBkZbZePkDxJ5cwnK3VsbuvyADfhT+/uJsMhE6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773973456790945670 X-GMAIL-MSGID: 1773973456790945670 Some TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 8f66306d1de3..8fd6f4d03490 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -2261,6 +2261,7 @@ tlmm: pinctrl@f100000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 157>; + wakeup-parent = <&pdc>; cci0_default: cci0-default-state { pins = "gpio39", "gpio40";