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: 713405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7BDAC04A94 for ; Fri, 11 Aug 2023 20:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbjHKUso (ORCPT ); Fri, 11 Aug 2023 16:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236610AbjHKUsn (ORCPT ); Fri, 11 Aug 2023 16:48:43 -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 4CAE82D52 for ; Fri, 11 Aug 2023 13:48:43 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe0d5f719dso3947883e87.2 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=NrMzoMAVFH1LlWwoSC2mukRBJuCB7ZvV/wLtoiZklyZ2NUvsrtGGnkaUjmzsJbUT6o WzM41ygjXvxUHlxgyd60l7jnFmlaDmgjvChtCY/wQ8cMrsZ2gusaKF09ld1FYJk8E7L7 7flWVqegFeknK4yKnEVsif2XPO7qkj6aIYDyPjWZsFsk6YI8xKzd2sOuUK8EGEj5ihFd ignwKBlusIr6rfsTiU+fT/6+umT82cnq5e2a8eeU8P/LRJKHBcpXFPpb6DIrPXbXPMQr +H3Q9Yzsh4a5ncqaSPIZCFS8varQIiPSgBZmVEdb/z3eJjvx/TfhPIYng6GYoH5a69hA T/8Q== X-Gm-Message-State: AOJu0YzzONgD7YqT+FGcDqoFP7AkxP5ymFdaYOHgXB/mbg9NpKQJ8toR 9Ko3YSnGhlXLz2nZpY66ic46zw== X-Google-Smtp-Source: AGHT+IEyj81biEjwMa+myp4lxZLUlbvs5I+bpigRzdvE2PMZ4RTeLxYDTnZZ+j1wjf+n1T44e3pzCw== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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: 712742 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31348C001B0 for ; Fri, 11 Aug 2023 20:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236751AbjHKUsr (ORCPT ); Fri, 11 Aug 2023 16:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236698AbjHKUsp (ORCPT ); Fri, 11 Aug 2023 16:48:45 -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 0595F2D55 for ; Fri, 11 Aug 2023 13:48:45 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4fe11652b64so3770063e87.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=kOja1M1Lf1o9t/vZ7+xIeXwSrfoAbnDA4CaNzE3ra7clLNy/j1QHNVYGCtAVXhkuWC LI8aZGNDfiXq0O3PZr+otjFkPhoqE3d4tK5/flVBRtsQn1j8tMxMvYA5E4ivojbfiAKw kce3+zyZwA8Y5UJtJr92kUCyr1TprWq/dhwIQ5RX0gX7JLQ+d8bc4eHNTJ0Nn/5NtBSU FxK4YZLFyKZ5udi/orx0vlHVTBP8QWr6m6NFbiP8ydBcbv79L/olAHKu9a1qcIC6i0Ty Nz97nrSHosvr9WR24/mO1ncUvqJUzzT3F/qtc2vFXNFpNhR9+zU97+9EoCf0cm9dwe5r Z+6Q== X-Gm-Message-State: AOJu0Yx5e01Qn6urdLgJ4cpCMzQPcUfQrapukj4pBpidOTg/Vov21n8G oyQuC8QVvD1OxEtIs9RbMJ3yTw== X-Google-Smtp-Source: AGHT+IHFugGiP54BeQTodasgBwrbYOAzXLh8txsaNO45XaoDzJMbtmPPqjrG+Miv+uONghXhZbPtdA== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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: 713404 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FA15C04A94 for ; Fri, 11 Aug 2023 20:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233448AbjHKUss (ORCPT ); Fri, 11 Aug 2023 16:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236645AbjHKUsq (ORCPT ); Fri, 11 Aug 2023 16:48:46 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F19530EE for ; Fri, 11 Aug 2023 13:48:46 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fe61ae020bso3725064e87.2 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=ApF0PnUhbBnmGJVwirbkmlmKcekqRXKGD+H4zP0a6QgiOj40zanCNtBOu/fBGOjZ83 9X9BmAMkpstO1i9jaIYg+oCxGcYVyYeR9eEtqLxE/RLkW3FUUGIovVLjDKU5cf+EHiTC o1socUGaNPbbARAK3oXIUFPgXyT8Yq0sLfcpe1cA+LF/tYSHFNdWN512g1R1XvRPp4L6 0XYKv1C+G3YzXqXB7Hat5qocK3sEzPOzJZIiSIEmYCrHHxZf7DlLOfyqQykofE4fP4XM VsykH5+ZwQvIOoHQl3WrZL25rR7sP6uzh+fBY61fkfWNLbt64B0KLFUuMft/o6xpUDYD 4O5w== X-Gm-Message-State: AOJu0YxI5dzm80jsSGmhvbreA1iUM73Fe7iBaaXN9QSu3iQ8kGZu/kT2 BvfWYjhnWpbGjoc6HYJGDCa2sQ== X-Google-Smtp-Source: AGHT+IHvAfMqxIniDKXjvF3S8MxYiNINKcPRE7fmH3IqE0X204ZkTeHcNHFmDhAmsARsY5koqZthYA== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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: 712741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74593C001DE for ; Fri, 11 Aug 2023 20:49:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234977AbjHKUtM (ORCPT ); Fri, 11 Aug 2023 16:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236744AbjHKUsr (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 36A672D61 for ; Fri, 11 Aug 2023 13:48:47 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4fe1c285690so3736451e87.3 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=dvT/N+cjQes8mz5792+LJislVaDoxD3kSNrW9JcqlZ/XwO/FBDir+7IuDcWZcw7ICP 5c+1B/G8QktofimY0np1bPMA1pdwWeuGpT+OZoRE1YngkdPdN6Rf8b1Sqq6ElQt5bXCZ hwWm3lahDvgRPkZOEh+nLUyxd4JIZxiAP8IkG6PYahvQz03RT1W24VDaE32dPRZxxJAg EK3FVTpP4WrxrHFYmFnxhkK8EWqGzquVGmZq7IXHmtZsHElpG+ba2xT5GRQKeIDhI3eR p0cuXCskuJALIMYtXu1qu24G15xwykCn9IsaQBgv10ZtLKVtRZoWyUGjgSoIcyxAdF3K XCkQ== X-Gm-Message-State: AOJu0Yx924eVlZ5TDapm4mBp+5rN6Dapd03yulmfioOxD4D73L5XgLaL yP+zUZs/AUsqsaBZId/KGqVRDQ== X-Google-Smtp-Source: AGHT+IHRgPJW9p2kV7EmOLNfg44H1I04Qyv4gM9bLDGkKp1f4LUr4C+1T2yUDViJ98m5O0gRkT3pQg== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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: 713403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 038FBC001B0 for ; Fri, 11 Aug 2023 20:49:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236735AbjHKUtN (ORCPT ); Fri, 11 Aug 2023 16:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbjHKUst (ORCPT ); Fri, 11 Aug 2023 16:48:49 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4360930D0 for ; Fri, 11 Aug 2023 13:48:48 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fe27849e6aso3789303e87.1 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=fPwRsffR7oTNAxaxxKYaXIu/AY4AICXTKZ/Mv0XJRpwkCYKoeqbTBqVw1c3pT/yCPw ixwTyAltZncOeAs6VI3ebq7SIsuOrvENMfSPQlIqy+h8Cj2SdA134qgL6MUFMrQ0Uf5P LgHD9Rxw6zWOKHo2CVzLWCZhjlZAPXsgCjFlAp+VgYa2JxhoY6fdRYphYDlJr4MJ3oTG JHGvZSZKDLqze5SJypW8VCPYrP+IEYLRPvZpDMuAddbSY8mVG695rU23oOjv9YZaIRi9 cEulGDKtGfnt+7bJMN55XRw0KBW50gTYyKY8NpEvx5g5lBwaZ2H5tmHJ4H6RMC58xt0y /H1Q== X-Gm-Message-State: AOJu0Yw1JgJCy/58ebIVKBDiYJegr7LN54BF1Rm01ctX4XAywbI9JxDg Rk+LjldD3hTno2NvmTjzcg3ofQ== X-Google-Smtp-Source: AGHT+IE28w/RRIwwZ6DOTisDKzxi/o9RRQAr6KDMUn21Z1qmRFMoHuIcy1IeSg6C5Q0r3Lu8//8+8g== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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: 712740 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8296CC04A94 for ; Fri, 11 Aug 2023 20:49:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbjHKUtN (ORCPT ); Fri, 11 Aug 2023 16:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236789AbjHKUsw (ORCPT ); Fri, 11 Aug 2023 16:48:52 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C7F3582 for ; Fri, 11 Aug 2023 13:48:49 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so38204511fa.3 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=TrGyEKUVt4EWz188jO5Hy7X9Vk/VuReLvr1mfLJywFdoCzk977Oj9mQCEejbkcYiFn 34vmaQ7qK6SQgavlb85+fNAVMp1Pezup29+zCVn3bPxZCCh1zWkdmqVpOEOAuu+doJ8H UEBkTNTlllj5rIhsqC3cG0lamIJppFNBIg2C/ol4pPLUQgovD93GNs9T89T3mqw2j/kX Vy0ibn9CatkqHewFx4ggcNsWG4EbW0y8qaQQMRvW76QBBRcrBbwBzWbeCUq0zvKgJTvv hEgRjf4TlotXNg0pjQvCqNmzwCmdFUnqrdmoT/8GlNohvxRCYbSyFYbYlmNTaNS6C9Br 7Q0A== X-Gm-Message-State: AOJu0YxLlUZQL9ZWfcpnaGaM3nbtCOMMfr9Dha2HcxaeRXH75lxRf/BJ dgXsYoyUKkUDsWVv3aPNm+/XSg== X-Google-Smtp-Source: AGHT+IE3eXyaLZfdB0YyUF2jD4w4MqT4UPe9Xkuhm58JAx7vw8VapOpaxrRbW3TONye93gf77iTKjg== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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";