From patchwork Fri Mar 3 21:58:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658827 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 60F2DC61DA4 for ; Fri, 3 Mar 2023 22:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233322AbjCCWlS (ORCPT ); Fri, 3 Mar 2023 17:41:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233395AbjCCWk5 (ORCPT ); Fri, 3 Mar 2023 17:40:57 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613FA12F2B for ; Fri, 3 Mar 2023 14:40:10 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id n2so5456789lfb.12 for ; Fri, 03 Mar 2023 14:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677883135; 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=kByKMAiyThWhQddTcnHkd5we2tSElWbVAhY9mxsVtno=; b=OMCTtRvIvI50GnVEcXxiWt1Uj3jRgwIS2PrcmFPmyREtwWPzTYcIfaOgmt0JVub5M9 wplNceox+SnEu6Hwr0ZEtNAcZ4L2sXf8UrwTQI7Kcqu+pjPxTwzZPz4I5CCWy6zfII5+ oRQ71IoK+jB/8Y5vuhrHa9aT+5DfPq9KGGKI5W4wTiRIa31+d2MZVuGYd7OoOitpsCG6 VUGwwEMtp0p+4MIo1yFFtSADl0y7r0pgc/nlct5IH/mS5FAqHQKd8GKUQKhBVfXA0BRF R8HIX0MzigihQ5K8txRSoIDyfJOTrb7Fq2UqQxevkaiXCpaBzjwi+tUoNqbbOj1v6r34 23CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677883135; 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=kByKMAiyThWhQddTcnHkd5we2tSElWbVAhY9mxsVtno=; b=XJucBjxeSFdx8QnIlYVBA2OlN25C5SBL580btr28iFDcQXg6O1Q7VhP0r7fij9XO/k oZDRZQpptzVox1l0sA15YHG0Mqp2pS8KUkOCMFxGAthjz3G3IP0U4+O7aHzMh3go14zn kuOziS65BAyorztJXvp1g8B4PmhR5eF6J0RuhS7lgOvuhhfhCZItgh0tpRBDkKVYKMUD sL5X8l/IxyOcq0uJyUGrQfB6sv36PPpH+24C7KkDdbdSj3HBvtYe+5WAW1VY3S/rjPic ce50JFAejf62rVfo0SxwN/MlzI9fPN4Eoa56psA5uSMSQ1pIRt8D781hjjpAA9kRIKbh J4VA== X-Gm-Message-State: AO0yUKVz6vvyxtCWZ409u6UfPfmbIo80QsJ/Ahjyy6nu4Sj7NpLcp6Ev 2EvAA405jgv0cGOkZTY1mV36y7smTQGjynhxl4U= X-Google-Smtp-Source: AK7set/GCprVfnv+hPF1Rzfmz6l0SL8mWmBDIe6hyGF2LRIdlIONxmT5k8eDdZCZA4AF4K+IijZHHA== X-Received: by 2002:a19:ae13:0:b0:4e1:13fa:bf07 with SMTP id f19-20020a19ae13000000b004e113fabf07mr985985lfc.43.1677880692932; Fri, 03 Mar 2023 13:58:12 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:12 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:01 +0100 Subject: [PATCH 01/15] dt-bindings: thermal: qcom-tsens: Add compatible for SM6375 MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-1-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=880; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Xo5r61pKkn5u58scrvwnGxQSvCjXA8+p8ZYAEW/PB+Q=; b=7vSyzRro3M1PoiwzyP06k27hDzGfo3oDBQ8Z57zbfmtIIprHmAUCZ2Zdngs2nh9i9s8lrND9j7ZB IZhHCq+RAQmdNO0kARatFng3E2coXlwNbizIM1M6h2sKwXxeobOr 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 The Qualcomm SM6375 platform has two instances of the tsens v2.8.0 block, add a compatible for these instances. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 926e9c51c93c..d73b72dafcbc 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -56,6 +56,7 @@ properties: - qcom,sdm845-tsens - qcom,sm6115-tsens - qcom,sm6350-tsens + - qcom,sm6375-tsens - qcom,sm8150-tsens - qcom,sm8250-tsens - qcom,sm8350-tsens From patchwork Fri Mar 3 21:58:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658513 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 3F6BCC61DA4 for ; Fri, 3 Mar 2023 22:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbjCCWVk (ORCPT ); Fri, 3 Mar 2023 17:21:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233699AbjCCWVU (ORCPT ); Fri, 3 Mar 2023 17:21:20 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91402768C for ; Fri, 3 Mar 2023 14:13:27 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id f13so15954456edz.6 for ; Fri, 03 Mar 2023 14:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677881550; 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=jhGUt/9ikay0wTYED+3dM9XZOHe6xmGcq8vv+hJG3wQ=; b=lprcTkYqSCWopAZhbYg/YjVGq1XyURU5qvtkZmaeyUwx2bhybmbBWIGDyX6HCFWyfk QXzrhehFr45ewtjkhlUDx5IkZDIjCwdBPd1QYyv9mo9VN22UXy7STP4GKlIPB0J4eCob 4oc56PsuMlwzMbngpsGiABw3X8JfJ5m+WQBSPJ1PIvP1VHX+1iQnro3YLQQ1MZ5yod7o F+v4GriFxikQU5lnGV6cfI738CJCK0mTuid4DCP8sxg2AFDKkmScyWTGPjEhKgfDd7Jj qyYHCVXVj3upig4ZMyssz50KsnSWmCXU34QTZpaZ2wRoZaO/QHHqBQXGKFGB5lgGruKj 7KCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677881550; 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=jhGUt/9ikay0wTYED+3dM9XZOHe6xmGcq8vv+hJG3wQ=; b=2Xr4vhjQxJ1bO8ls5fYg28No50s6FBJAaxSJdqcfkMxzPsC8SXSvKYaz22eTuw7aSZ sEx+pxcZwCu/PSPQA1Epf1ZkXqwj2nBiA8HIv5X6OuSN2O9kfwjMr8tFHeKTLskzeD/N 9ZYKgpTDa06SggezeChZyB3gd/2kkVpDE0EkE9mFnDkFRK3HryH7Lw/TkShZuck12Qv8 Pxfl/rKOl+E2UbEY+2JVv0BJbUsdyxZHhNaMbiTYz4sNJ7Ce2aENV5QKSCMdM/k6TPAd ACH7vQ2EiBCUjMfV4Ytsc+uAIrgX1pdPnl23/mX3Js75zxBH1fnltYeXCp8XoX+2FsA8 2UyQ== X-Gm-Message-State: AO0yUKUY3dYqZKfp22Z4endGUDCd6TbLm/a/EY/cEIBpNT5QRfwHyk6s qjqs3fYHZQ35IalmvCixW/tHsrQVsl3q1uHD3jo= X-Google-Smtp-Source: AK7set8pPjvldoS8xXTKdDcigJ9ekZ/v6oJanh8BYj0ZKLtRmyIkKc1mwDwannJBT4gGPqDdYCaXpw== X-Received: by 2002:ac2:5582:0:b0:4db:2876:f9aa with SMTP id v2-20020ac25582000000b004db2876f9aamr1003092lfg.68.1677880694430; Fri, 03 Mar 2023 13:58:14 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:14 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:02 +0100 Subject: [PATCH 02/15] dt-bindings: interconnect: OSM L3: Add SM6375 CPUCP compatible MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-2-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=926; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3kDftpNu/Ozls1NqMhqLW9oX8DcWVaXf4fhj5FEZN3g=; b=X36jcdTP0r3fGsHBtrklmVLjJUipWiwhCrV1ouBP4WX74fvOr6l46fLr0hR9NdVHr1Z0tc8K9pEO iPI5qPGDB1C/WTTNfpN/J94euo176d2KctXe7SL56uAW+gk9GQd2 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 SM6375 has a CPUCP block (which for all Linux can tell is really rebadged EPSS) responsible for scaling L3. Add a compatible for it. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml index 576992a6dc5a..9d0a98d77ae9 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml @@ -29,6 +29,7 @@ properties: - enum: - qcom,sc7280-epss-l3 - qcom,sc8280xp-epss-l3 + - qcom,sm6375-cpucp-l3 - qcom,sm8250-epss-l3 - qcom,sm8350-epss-l3 - const: qcom,epss-l3 From patchwork Fri Mar 3 21:58:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658511 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 11166C61DA3 for ; Fri, 3 Mar 2023 22:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbjCCWjT (ORCPT ); Fri, 3 Mar 2023 17:39:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbjCCWjH (ORCPT ); Fri, 3 Mar 2023 17:39:07 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3859E14990 for ; Fri, 3 Mar 2023 14:37:34 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id o12so16089473edb.9 for ; Fri, 03 Mar 2023 14:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677882976; 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=abXDj5NltbKSeLRsh9EY7sfm/FxwFg1uajo52uEDqME=; b=boU2MU6CVTB6uQcCNAIPj888RAO4U6owTbSd4v6dAy0gMVMrsuPVUqHnTdYbPxBAYC sBdY9AfmT7aBV3BVgJGODhQdYA36Wbui+0PSZIbS5FUS9oN/bFdc+bPfRXRZpHm5B7jv 1fHTSk+DmUA/KROnXaWxl19Ctk4Oii7kalU02fO1eGdmRMcwl/GaAJNEO+5OYSk4y6Ln i0NYqPmf4m7xRVFPR/vjNqvhnsx4E7wB98R9JfcP745ugOqntkVu+NbM6m4B/ozMnzhp OquJRh8r3P8+NqlKMp7TWJqIWaUEYL8vuaeHRgIV09kuelvKW3d9X6ao7VBaTsKTY6Ch 1RKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677882976; 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=abXDj5NltbKSeLRsh9EY7sfm/FxwFg1uajo52uEDqME=; b=ceyxprCyFj5oJImcqXV9Q+rL8Vj+HuQXUUod6Re3jv9A7ioaVQzRgkXh7nxQBOfKpQ dkQmrjRNTKCYELZ3H/xsnhy4mTHe13FK23joODaIbWr2mFr1x3wnx9NESYdCDHwJXAdv wRDoxFvYDWYQ83P+FWTI5MBEgt/tLT7ecjxKm7IpvAmkm7uY76tO3Vsol41cWYBPAFi3 TvlnJLyMoZkfmqCdApu/zQ5Hr2OHuNztQlBHd85kaMoTUyWbY/tUwpZ4h2EyOFRrMFTs 3v8SVm0q/TotR2rk4NMBR/sS7ss+lSVffQdKGKQR3HOkjfrOoSnMAjDt/vljKOqlmRjg EjLg== X-Gm-Message-State: AO0yUKVA91M5/SM1tFAWtnV1Jtxo1uA2qJcwq21JDsbDG65u944UibAU p1sqaT5/5wtUiBwBVCcU1TzyRlmxBoy1O6rFO5o= X-Google-Smtp-Source: AK7set/An1BtrKhxkQaFksrUZJVWeIWfp/ojIAxF8lGpYfv7ksIWNVqKkcwoLr35zkveVmQvfKKuFQ== X-Received: by 2002:a05:6512:4da:b0:4dd:a053:3ba1 with SMTP id w26-20020a05651204da00b004dda0533ba1mr808661lfq.28.1677880695801; Fri, 03 Mar 2023 13:58:15 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:15 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:03 +0100 Subject: [PATCH 03/15] dt-bindings: sram: qcom,imem: document SM6375 IMEM MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-3-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=734; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=fRR9bII2e5KK6+z/KcGqOf0XJiIuf0AqBHHO+8le6ck=; b=Rg7LgOLNnWhrT917vsmIUzlmNQW7hw5lDELRGk2JR0SaCt5j3pwKUb3IsmWA0sW7HuBq61SJ34eE QreEuo27CZV9TdAz4vUqOY4t4LWr36VBhZ7nXEw7wHJ+Y4YUPuOa 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 a compatible for SM6375 IMEM. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml index ba694ce4a037..0548e8e0d30b 100644 --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml @@ -26,6 +26,7 @@ properties: - qcom,sdm845-imem - qcom,sdx55-imem - qcom,sdx65-imem + - qcom,sm6375-imem - qcom,sm8450-imem - const: syscon - const: simple-mfd From patchwork Fri Mar 3 21:58:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658829 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 95009C61DA3 for ; Fri, 3 Mar 2023 22:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232972AbjCCWfi (ORCPT ); Fri, 3 Mar 2023 17:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233022AbjCCWfS (ORCPT ); Fri, 3 Mar 2023 17:35:18 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 676B266D34 for ; Fri, 3 Mar 2023 14:32:25 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id h3so3807511lja.12 for ; Fri, 03 Mar 2023 14:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677882684; 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=8raBTXfySji8fpCPLBYPhkx+Ml6mdyfbjzhF4yIreP0=; b=SeudfWbYZ90NB9IVpSzEXFySRW4deiU3o8UbREju74FNELExqhbiNCt/xSDKHrFw9B xDbK7PKgnvsNDP4MATYcXZXo6LXU70J2LKYQncE4fC500cRfYGb8fbmDn6IH+cHcmhuQ zFFSan6xscRZFtVt/ygvVdl7NyzPjVdO2yxKeuO+uffPiXkPqmVQlGxpBgx4h9XM10+j N/eHJj5gwTRBBmhLLP114DUgRPXKSibKg6iEto9qaEgbIfWbaeX0wjrvnF2hBlKl/Kct zd3B9bp9hZCsfkbIj0a5DoOTEzMRChH9Eqnbjq/+os/hdT15aKnxeQ/gHvdkwcnXkNLs XamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677882684; 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=8raBTXfySji8fpCPLBYPhkx+Ml6mdyfbjzhF4yIreP0=; b=JLJ/8RhO+wvnD0Yu8Mzoi2tD8wahAW6cudzm+NByj0DHqER/zGX+bebfWN1nvEh+gT MG7c48yL38vcOLofKkUrskTCRJ4AF1OfBF8dET9swm18fPK9rqSDscFWiXqwKc0R2183 cLpf7YANd4bd3yoTO0coS+St4wkLCuXn+MpVon0DhVWdVNfvTAhlbZdlWoAWym8jSaaP hurBJrcqYf0Cr8n/knySxOGsBzdML/69SJhD8S4isID82D1UuE66OO/4WSzqBFCXkbiX tZHXvRbqYqcjDZF09EwailIvGztxdWxK1iOl9/OLESLhswXpCWKPFnhefJCdwxlI6Ch5 c5Ow== X-Gm-Message-State: AO0yUKVg1jA5mDp5lxoV8bpnRmL65v7FEb0HvjmzV0CLEzXcNCX/kFzy tR6EIwSGmYAo856BYCt4FqISDiKHQCIqJTmRL/k= X-Google-Smtp-Source: AK7set9dHnVPJdpQHv/CLdSNRU7NCSWy7pxfL4tnOClqRR6cvV1Uwnypv4a6xYhpfqs8RyQdan0HSw== X-Received: by 2002:ac2:4a74:0:b0:4dd:a212:e3ca with SMTP id q20-20020ac24a74000000b004dda212e3camr948621lfp.11.1677880697243; Fri, 03 Mar 2023 13:58:17 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:16 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:04 +0100 Subject: [PATCH 04/15] arm64: dts: qcom: sm6375: Add RPM sleep stats MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-4-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=761; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DKx+rSMb2n+6CPR4L2fodh6IzfCfn+ctrSy97qX3zGU=; b=ieZzG7g5ztbr6xl4XS6hT/hcGYS9CF9DgfDN9kVdowHP4hjJI4xQiPH4AVR1FIGts7rPCJkZkEgF 93W+nIO6DG1CU0I/gEWLtzQLXcAtTQB/8iAm6c0HyZxqWpgY77Db 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 a node for RPM sleep stats to enable sleep monitoring. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 31b88c738510..de5882c0ff81 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -718,6 +718,11 @@ rpm_msg_ram: sram@45f0000 { reg = <0 0x045f0000 0 0x7000>; }; + sram@4690000 { + compatible = "qcom,rpm-stats"; + reg = <0 0x04690000 0 0x400>; + }; + sdhc_2: mmc@4784000 { compatible = "qcom,sm6375-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x04784000 0 0x1000>; From patchwork Fri Mar 3 21:58:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658826 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 397D5C61DA3 for ; Fri, 3 Mar 2023 22:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232006AbjCCWqF (ORCPT ); Fri, 3 Mar 2023 17:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232909AbjCCWqB (ORCPT ); Fri, 3 Mar 2023 17:46:01 -0500 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F7015557 for ; Fri, 3 Mar 2023 14:45:26 -0800 (PST) Received: by mail-ed1-f50.google.com with SMTP id x3so16051679edb.10 for ; Fri, 03 Mar 2023 14:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677883153; 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=N802Fr0mvYVFoYKvgL4Iscqjub6mN4UuWcVLOyObAeQ=; b=Sl8qh3fHX1nvX+OG5Bk8rt5Qi5WGL4/D7//D9JYOCpCIpkzpuBgy5HtGRTCg3BEhQH 4MO2JCQDU4wP6yimlo6+ukP2/Wq82F86NrXp2K00+JRIF9xN0JFD82zBaFrJbJ2JFYSJ peNCm1PgJoBJglYbAMX7SZc3UI1gcakK4o8Z3mujJbP0Mv4D5O/6Yw46rE2f0EshXPh8 ELMOTZpt8yV4u3PoBssKeEHaiSVc7j9AozU1PWB8aYTiPU3TjUHeic+lrikwbLHXHnWZ 4OG0hspTgCPYa0XqRId9CzLTK7fzdJSQYX3H/afUhMNiGNvB69zH7uU/HI1Sq7Ucrqd0 gdsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677883153; 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=N802Fr0mvYVFoYKvgL4Iscqjub6mN4UuWcVLOyObAeQ=; b=Ki882EDG4pe4etFowsAldJyAnhnus4ay5Y0gWo9TX1Abrt35FmJqv+tSJHbLWOGi/X RzugsMAjg9H7fxUy74lJtD9aqG3Mrz9ttkqsW3oPQnx0VkqC3UcjUZ0PiS9McXHmi8z8 xGCZCA5aitfWNzLItW5rryfFdk4PP7KmX+Q9kmN7qIXH52LPVJIks7O79I/5FJ0/wUhL B4uKfi1AW0skM2Kc7rf2v6MOfSn57284k8PwwBAu3d0l4Xmti55PyAmU7JBT6A87cipu p+2dYOCVynDeGuLqfQsAlkZrK8ekFZ0xbMAMaHjXdmN80YKL07vdg0wALmx+P6/xAysD junQ== X-Gm-Message-State: AO0yUKXkYuHA64C+mGOi07S9kDxxbvj/fiWnVWy99Qo2U4wG6mw7A0Et wNqtbKxu0tyl89Qnz7fNFXM9LQiPD9/XMSRbPmo= X-Google-Smtp-Source: AK7set8Fdfy5WOEqMgqPc2rdpcjhWkLcJquvS80WpInpqtI8xhRl5yrormBUiwIZnCdnpW6je8iNDw== X-Received: by 2002:ac2:4462:0:b0:4b5:8f03:a2bc with SMTP id y2-20020ac24462000000b004b58f03a2bcmr921031lfl.9.1677880698708; Fri, 03 Mar 2023 13:58:18 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:18 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:05 +0100 Subject: [PATCH 05/15] arm64: dts: qcom: sm6375: Add IMEM MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-5-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=952; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XeByskUh4IJy5GUSRGVEOURhAeiNtSqMfR5ebBA6Oes=; b=4BGCWuRt4pHZDEFG5NnlENa82CtqJNl0M7IwD7B0smCe7QLF2yvSlwkP01BJ7lIgUrn6TL3n7+R7 Yqfs45A3AJM1sn6WX5CatJztLRKbi85YddngzJDzDLOMdYW9lsNU 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 a node for the IMEM block on SM6375. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index de5882c0ff81..5a0abb7f7124 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1233,6 +1233,20 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; }; + sram@c125000 { + compatible = "qcom,sm6375-imem", "syscon", "simple-mfd"; + reg = <0 0x0c125000 0 0x1000>; + ranges = <0 0 0x0c125000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + + pil-reloc@94c { + compatible = "qcom,pil-reloc-info"; + reg = <0x94c 0xc8>; + }; + }; + apps_smmu: iommu@c600000 { compatible = "qcom,sm6375-smmu-500", "arm,mmu-500"; reg = <0 0x0c600000 0 0x100000>; From patchwork Fri Mar 3 21:58:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658833 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 58400C64EC4 for ; Fri, 3 Mar 2023 22:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233706AbjCCWJU (ORCPT ); Fri, 3 Mar 2023 17:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233477AbjCCWIx (ORCPT ); Fri, 3 Mar 2023 17:08:53 -0500 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 57D6864870 for ; Fri, 3 Mar 2023 13:59:28 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id bi9so5419860lfb.2 for ; Fri, 03 Mar 2023 13:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677880700; 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=xQTyZcO6FNqmddoHzVzEIHqpO3JKFdaOcoa693p0iLI=; b=zyQg6n8nh8uqdbShuv3zfbxNqiJLQa2d+mR7RSXXUSUFwn3KQGOzhKUvjLoYBS0HRp CYIzshqTT/sTg7Rar+rEFHEndG/2f5w2exQFsh4AhY7kC2O27zaZXfWZW96yQ80u38VI RV6ATm9NVy9d5/I6/q2kNpWP1GkPlt1zv3weN+/1Xzes3zAqCi5O9KT3pcr/N4elURRB 94ocUtXZ2lSg7FGBsU3/OGz+wUC4tLmj1RnCb3fuV9IUStYizb1J5vh+RndQTGeyQMiY N1rMpfEdnVP+cMN3F2ruVe7VGbcMysgtpK/bhsxr5Pxg48KxU178Pm5B/CktMgEY94Lc DmnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880700; 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=xQTyZcO6FNqmddoHzVzEIHqpO3JKFdaOcoa693p0iLI=; b=Zbc9SxJ4KH14f/EH8DDjPZPenaf8r7h/BZ23MJUWQPBViCgiiz7yXFlhu1/K4mO2xU 4+SgjPxUGTvgCNHGq2oJXPAzXIV0lPDeqj3KlFtA3qRrSBynHD4AXo7jYCviGv9v8UM+ HNWO1bYKWxCObVnGYsrCrzKQ9m/CMZZQBCneHd2IkcInXcL8LATwbt3qR+OO751yceL/ 8h4xLBIH3XVM8Rb7eiNe+TS6jyFSS6deQJNVhHMuuoeZ3jhsx4Vo2sbIT7iTkiNByL1+ hFEUrkRwZXIWm3CeqIrH11efpqgWaN66NY1Mzc3rxIcquzsuQ5pi4JDiwtSqIsWdTCyM BFHQ== X-Gm-Message-State: AO0yUKXjdMMQiyb57CIgqjSxkTcnypKCBSgdf9rjhf3GS5DX0Ss76qqt SAcS6rJyTRQ2LmftzxZQi8sDDw== X-Google-Smtp-Source: AK7set/ceSNzp69S+7cNWbZnj09upQzochmePhhDJoDjboVTFBTe8YeTm/F/6/I76KsLj2vqbDgnCg== X-Received: by 2002:a19:a403:0:b0:4b5:8fbf:7dd6 with SMTP id q3-20020a19a403000000b004b58fbf7dd6mr992286lfc.61.1677880700119; Fri, 03 Mar 2023 13:58:20 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:19 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:06 +0100 Subject: [PATCH 06/15] arm64: dts: qcom: sm6375: Add RMTFS MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-6-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=1141; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=uH0RgNHZmHlst/xmB30MnTlB0owLxkAZmTcQ5HED9bM=; b=c1OTL8Pm7s2fqz6fkw2Q2S7TqG+CV8SbQ83c236r6ugiZYmDtO1jjb/MmcGNer7UpIO/hJW4Or7p yD5jPVsfAKNpR0U15c+u7qbGmyj9QcORxF6TUzxTAufmAE9w5CgN 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 a node for RMTFS on SM6375. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 5a0abb7f7124..2cdd000a4e2b 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -424,6 +425,15 @@ removed_mem: removed@c0000000 { no-map; }; + rmtfs_mem: rmtfs@f3900000 { + compatible = "qcom,rmtfs-mem"; + reg = <0 0xf3900000 0 0x280000>; + no-map; + + qcom,client-id = <1>; + qcom,vmid = ; + }; + debug_mem: debug@ffb00000 { reg = <0 0xffb00000 0 0xc0000>; no-map; From patchwork Fri Mar 3 21:58:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658512 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 7B785C61DA3 for ; Fri, 3 Mar 2023 22:25:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbjCCWZG (ORCPT ); Fri, 3 Mar 2023 17:25:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbjCCWYp (ORCPT ); Fri, 3 Mar 2023 17:24:45 -0500 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3983C80E1E for ; Fri, 3 Mar 2023 14:17:06 -0800 (PST) Received: by mail-ed1-f49.google.com with SMTP id x3so15823160edb.10 for ; Fri, 03 Mar 2023 14:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677881461; 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=1vqopDs853OIz7wr3B+Xdv3eU9ExHJXccftgDO6ekVc=; b=XFh8yM9y0U/0p+Zi6DNo2l/fSa47EnDQL25D5CSO2vlzEZkLfHUQS4iJ0QNfcHLByB Z06YPH+hACRKrqesxPLCjFb3IVpefIa1NjD5aF26IXN2flJpMz2KOXJzVhLnTLme27GR Jj43wwIOlLSVEUsuR44N5G6cRLhMNF3aVZeR4v1IOlOq4EJqsUbdWHUxBWOId/zxYoGX VRxIwTDLYGULmzQddUxvnGaSnBCrliaLZ2si2/iPaHBe6aVEM8cxuwvIwWhNcIrfjL/c AylWb6SjYtd0jcT2Xm/4BVs0BqSqFiKsS0VjWRRDcaCKeIV/N4g23DhkLUwGP55r1T2+ 42Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677881461; 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=1vqopDs853OIz7wr3B+Xdv3eU9ExHJXccftgDO6ekVc=; b=V3jKhQrYtju1OIRqqaqNrFgRf5PCsZcV3KcTxwQ5Y8JXx+aHDcR0HBRsDb9zBPgip6 XorRngwq4lQfoaFoLhUiPoA5O86Hv6zuJ3Sk4Xmh5aYhcNV36LxGERXgPFqFg5QGc1do JCj5rqn6YWqNQJ13znKvmyFShqzjxs9Ju4jUuON893NvMhKIzMJVSoR62ughW8QSgblk y53CU/fDmL8PkZmnM+4tIgrGi7rtWk1+NOyC0vjMbueat/O5aPGDFfb4DCXCipejOtaC grtcbgFuVX10nxj6MI4QU7zUqBGhxuiWL6u18GibK45i7VkOvMdYnXs9EklJjFTWDosj U4vw== X-Gm-Message-State: AO0yUKVEFxQsGLLpoMShMQPc5hFwYTTwJwGOEda+ncgXdc+OBJDca0Qa o/ROF/RHrJFC/ai1m2S2X71gEENYpfp0Sdlh89Q= X-Google-Smtp-Source: AK7set/7fbUGMNphs0vqwhtKNC8wUa02T3V0w2DnPoVMlQTOL0XZqLhNi8C2eaaqCOyDl+kTJPwPtA== X-Received: by 2002:ac2:5283:0:b0:4de:21c9:8a37 with SMTP id q3-20020ac25283000000b004de21c98a37mr999841lfm.1.1677880701620; Fri, 03 Mar 2023 13:58:21 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:21 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:07 +0100 Subject: [PATCH 07/15] arm64: dts: qcom: sm6375: Add wifi node MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-7-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=1484; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=+otj1Pk8eMle5AYQIbjERaviQEzSMjyG5K7Qicq4ass=; b=zKCRFNuu2ZhSbAUiErsbbp5MTBp9Ox7bl3O409WX+r+1mc2/LYy1Uw/iluf6ootGQTNOURxRTWEA AV3SRONUCc/p8GWOezmmFe3iqQnVwl42QlZxFzRTFIJg9WFx6OKU 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 a node for ATH10K_SNoC wifi on SM6375. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 2cdd000a4e2b..e473a90f3dea 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1333,6 +1333,28 @@ apps_smmu: iommu@c600000 { #iommu-cells = <2>; }; + wifi: wifi@c800000 { + compatible = "qcom,wcn3990-wifi"; + reg = <0 0x0c800000 0 0x800000>; + reg-names = "membase"; + memory-region = <&pil_wlan_mem>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + iommus = <&apps_smmu 0x80 0x1>; + qcom,msa-fixed-perm; + status = "disabled"; + }; + intc: interrupt-controller@f200000 { compatible = "arm,gic-v3"; reg = <0x0 0x0f200000 0x0 0x10000>, /* GICD */ From patchwork Fri Mar 3 21:58:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658516 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 18DA4C678D5 for ; Fri, 3 Mar 2023 22:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233471AbjCCWJW (ORCPT ); Fri, 3 Mar 2023 17:09:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233586AbjCCWIz (ORCPT ); Fri, 3 Mar 2023 17:08:55 -0500 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 0FA206424D for ; Fri, 3 Mar 2023 13:59:31 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id g17so5398893lfv.4 for ; Fri, 03 Mar 2023 13:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677880703; 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=dIy97MlLq0rj6R7WBk66We2Y8cheU7mrKCO9U6h0C2I=; b=KXTD2I7egTk7SuX2R0F75t8v9OUYAimGS+m4oBeKjc44cxrS+CLibwdEaNfVfr6M9C Up3lDpMq2k69HtlvZ41ed9iHPAYPuR3ljrIgchkTCkLnq4ttyR+3YOsxM5lJKbSF2HaL sjjF6hg3wxJsNMX3uVRLPIawva7Q9FktwsfzqexjdJH5PQIu4q3bgQlivSn8uJtv1aLy UBV4JdXmzkZyUAsyv6oA0pNjU3CYawqw9/j34WwGvj8D8GLSXC0XxxfHygchigpGCmcR vHYKQW709JYenWtzjymrb9YB0Zo0Kv70qT/SRmWcOIzqwESaAJU1ReyyBWkksKds/G7N w7sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880703; 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=dIy97MlLq0rj6R7WBk66We2Y8cheU7mrKCO9U6h0C2I=; b=tWfqGGtzODvi3HxIDIwbWhM/3J+RGGR8DyKanUtCuvNwYmH1XcudssD5hg01SuAFKy cnDIa96UwsRKjEJJhl/IHw5IS95huyfIyrfgiJpVey1ZI3nL0xRvPAIOmzf6bB0PSRhi cfHQYrCjEXJZG9yjEsiYuSbiNu8bLWgSa5Q9U6kC/PUfrOkSg0+YNAa/eePPt8okqLXz AbljC0S/ET5iOtRqSMCpJXnF2xumi69KqJNdtXKT8GZQcaE0bzRVDCY2tm4/xFZZ+SEi m6+HbjAGaXHjoE01niYrqmjT0gf5TW/K1UVopPmv9nUL5bF/FQD+HV0cxPhzNcbdOblI BaRg== X-Gm-Message-State: AO0yUKUT6o8U6omFEGVSypWwZ8xfz/7np3ZQf96kA9b8S4qU8IogUQm1 /ToreImk1CXkaQaSIT1w2battA== X-Google-Smtp-Source: AK7set8HQBC0fU9KjBOzvd9fU0aHQXoZn+05l05oJl8iRbAXOCfuOxeCmhTyu5C88qs2JNxIk+qf4A== X-Received: by 2002:a19:7614:0:b0:4e0:ce21:b92 with SMTP id c20-20020a197614000000b004e0ce210b92mr1051356lff.16.1677880703035; Fri, 03 Mar 2023 13:58:23 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:22 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:08 +0100 Subject: [PATCH 08/15] arm64: dts: qcom: sm6375: Add modem nodes MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-8-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=2988; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=93tjFAm3KE3wlOIxpjBJdVGBzNUVK9fKZaM4nNn4KS8=; b=pwKO0/M2FqeHx3dB2gg68oBMUOr1ydRxxOUnKx+GLZ7BadpXYciYEIVO21+lwdaSQeWOSG5KPcpW zOXO+Mw7DSHYDHIz3+KwnDZsnDxRgGEvxkIh5ROVTi2OfdkMVjY2 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 required nodes to make the embedded 5G modem boot up on SM6375. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index e473a90f3dea..90f18754a63b 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -565,6 +565,47 @@ smp2p_cdsp_in: slave-kernel { }; }; + smp2p-modem { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + smp2p_modem_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_modem_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + ipa_smp2p_out: ipa-ap-to-modem { + qcom,entry-name = "ipa"; + #qcom,smem-state-cells = <1>; + }; + + ipa_smp2p_in: ipa-modem-to-ap { + qcom,entry-name = "ipa"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + wlan_smp2p_in: wlan-wpss-to-ap { + qcom,entry-name = "wlan"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + soc: soc@0 { #address-cells = <2>; #size-cells = <2>; @@ -1170,6 +1211,47 @@ usb_1_dwc3: usb@4e00000 { }; }; + remoteproc_mss: remoteproc@6000000 { + compatible = "qcom,sm6375-mpss-pas"; + reg = <0 0x06000000 0 0x4040>; + + interrupts-extended = <&intc GIC_SPI 307 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd SM6375_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&pil_mpss_wlan_mem>; + + qcom,smem-states = <&smp2p_modem_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + label = "modem"; + qcom,remote-pid = <1>; + }; + }; + remoteproc_adsp: remoteproc@a400000 { compatible = "qcom,sm6375-adsp-pas"; reg = <0 0x0a400000 0 0x100>; From patchwork Fri Mar 3 21:58:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658830 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 3E471C61DA3 for ; Fri, 3 Mar 2023 22:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232350AbjCCWWy (ORCPT ); Fri, 3 Mar 2023 17:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233754AbjCCWWc (ORCPT ); Fri, 3 Mar 2023 17:22:32 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B456A051 for ; Fri, 3 Mar 2023 14:14:58 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id x3so15845509edb.10 for ; Fri, 03 Mar 2023 14:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677881635; 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=yWAOIVbzD3ODnOMgViwIQx1FVg4CoSqp6I3sD+4ntxI=; b=xlIeIa21IJ27T2dz+slzM/Ua0ohT7dDozE+1Xv+ri9eUXHGizmYR+LjbGnBFmOkBqi xF/OX3GYZ0R6Wrsk4a9Tx3mKi/InobFOQZaBnmQLgBC0DUeNz2KWEBb1LRy9CnUMROJ+ 0md6jsqHyEjnnXto1GXkC3Z76rJ500diBTgMX6Y+mAUuCiTRJMQXvNq4Pfg9DdnziQEm Dpm9cqsJ6Z5AnX3okO7mNaVwv6w3+UvKD/IKg4O19BLAkImvqNzxYdmJPFWfo7i8Z+By dLBW9O9ccZ2bTM40DwGs/guBz/P5h1CVF3IeQL95NCEuMbZQB+Fw9FUWqNv3u1ZCZg+5 d9fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677881635; 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=yWAOIVbzD3ODnOMgViwIQx1FVg4CoSqp6I3sD+4ntxI=; b=M6SXmKDdAioZGXdsA+w85rZ7efa8K2bDMjyjP0tfaEFPuO2GZVwgilGBUaxfiiBfyh BlxEgvlymWUW/Xu5uDQZbi/GwofZleAZToeXe/OH0ZU1uWHHAArIUQB1zzi9DTwZG4Dn r5G2/GAwIn1ySkbXWtW150HgHWAimx0IkEjYRV/CfCdz2YpPfwsoyFE7fyrOrhYRBYKY vhFxAbHtT1BTw+/Haj8g2dfBdDILek43Ixhx3MMNQM/QFWOrGRKgSiksTWEywOe9tks4 UWWWMJTroGVlbZQWVsPlvDaQxZ1vCox1Nqycgh9wlfT9kP0xsUuMN/2Z/+M8O89mbhRH JgxQ== X-Gm-Message-State: AO0yUKX1eYcFZf2HoLnUpOE9wRj3iacE1w4UzThLweymdhj77lzWXfcP uwV8MlivKo0c1WF2Y7mX+kf590tLlss4Iea3R6A= X-Google-Smtp-Source: AK7set+OPV7K0/mvLa99j6SicswhBa1k4NpBWzDVW2y628iijgo/Wt+cJQcCcbFvfELiv4K2ez71LA== X-Received: by 2002:ac2:46ed:0:b0:4df:b686:ed1 with SMTP id q13-20020ac246ed000000b004dfb6860ed1mr912444lfo.20.1677880704436; Fri, 03 Mar 2023 13:58:24 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:24 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:09 +0100 Subject: [PATCH 09/15] arm64: dts: qcom: sm6375: Add CPUCP L3 node MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-9-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=940; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=PG4nWGIMA7R5r2PHGgF9vSeONgecCRpRFxoaCPCnR2A=; b=LBHxFf5+1bMcsNYButrWGDVgqu7yhIFjlktHhoVYS3O8HLobezGdLKd5PX3tIJCmsK0QWrCJmf/f DhsJ1OyNBnC/yqKV63sGdNjLReJEZ8wLRnfpQQLqhjMoj+6YTUM+ 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 Enable the CPUCP block responsible for scaling the L3 cache. Signed-off-by: Konrad Dybcio Reviewed-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 90f18754a63b..59d7ed25aa36 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1505,6 +1505,15 @@ frame@f42d000 { }; }; + cpucp_l3: interconnect@fd90000 { + compatible = "qcom,sm6375-cpucp-l3", "qcom,epss-l3"; + reg = <0 0x0fd90000 0 0x1000>; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>; + clock-names = "xo", "alternate"; + #interconnect-cells = <1>; + }; + cpufreq_hw: cpufreq@fd91000 { compatible = "qcom,sm6375-cpufreq-epss", "qcom,cpufreq-epss"; reg = <0 0x0fd91000 0 0x1000>, <0 0x0fd92000 0 0x1000>; From patchwork Fri Mar 3 21:58:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658514 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 F3E31C61DA4 for ; Fri, 3 Mar 2023 22:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbjCCWQ2 (ORCPT ); Fri, 3 Mar 2023 17:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232347AbjCCWQP (ORCPT ); Fri, 3 Mar 2023 17:16:15 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D26F7848F2 for ; Fri, 3 Mar 2023 14:06:52 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id cw28so15927569edb.5 for ; Fri, 03 Mar 2023 14:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677881137; 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=fr1OHq/Y0F9EXyjJfE+Cc02kHVOPdqYGSbtmI+oAs6M=; b=CqAexUSg9vneLS6aHjbpnxUUg4/LwvXeOcGcP3U5lvn9NJdbrgP0N0wC2MsWWFtgy8 Oz1cjV5KmrbLJLEKxsTJNILOa496WsI58guWBPKQ8h8SV4rxQGOD7it6Kue7H77JqqsV IrhRGJjHi6NNjCk4xIHb/oTcynnc3mwe4xOblNHmOed4gnhSg9h7kj5LbEtO7Bf57+4+ WRQdUf60RAK3d0eRq2hqdaX2MKG8MINHi7Ev3tu3sklk4B+/zBSVmEwgIV7zjFZU9/SE lirRA6OfvzyDQnoVzAcYbZpXEuS0evYuz1Z6z32Mqy79bNM1my0mHtr+ORP/bDfK/CNT 4ToA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677881137; 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=fr1OHq/Y0F9EXyjJfE+Cc02kHVOPdqYGSbtmI+oAs6M=; b=XZbSfNxQbgYDpXBU7uRRq6c2sxHVYhLqK8lAiPafvHOldAeCtBvtNNn9naOSzz9EXt y3ViqizHtrk2blwMSmsGzYQgeCqWWTDmxrr1+ORrkXVFUTZ2AehWfK59uxSILJFpB0tV y3m0Ih6bU+cYDDXF3BhDIf/cK31S0g90DoLpzIQlohPH9T+u0yZpdTV5dpSZoSrqqUZG NqRkQSxhPrdA7SwcpRCjcCXzYuWoeDV4VqOrAtqrKFjGIOIHHB35vuPskBBQCTx9tHJ9 NE5VPGdmsaeVhKIaAUwQuyI9K6MQDKNQcNJ6IQeB35aXsrLfgUGtc59gls01QZW3UHRc aevg== X-Gm-Message-State: AO0yUKXN4t1Lj0JZpF6q9N3B6t99UdynMRSuPAfUH7i+LyhVanJjfcpI 8Suqg8L0isQJnP6pTeiHriQwrrV0ZLBA36O+nak= X-Google-Smtp-Source: AK7set/KN+z2wYZVudX97d+dJPyqeM+XXZtoDSsCz75EJroknIj9hAlhYIxSV4JdraOf6EDZuvTcnw== X-Received: by 2002:a19:550c:0:b0:4b6:a6e4:ab7a with SMTP id n12-20020a19550c000000b004b6a6e4ab7amr1007164lfe.8.1677880706328; Fri, 03 Mar 2023 13:58:26 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:26 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:10 +0100 Subject: [PATCH 10/15] arm64: dts: qcom: sm6375: Add TSENS MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-10-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=1456; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ykqp5bp58crzGqyySJ//g66g5IA2DYwCTKLczf3b59w=; b=uFCnBJBBP4ewL8ml3Oy7ai20aaNMelzJwBlm11SPgm7brQB3chwmE71EgPCT7XYgYzRUSXyCbGLT b95LkYqxBl/7PTHaW35MVOjC0W2Ovl/W8xe1jF5QpJRsO43rhznr 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 nodes for the two TSENS v2.8.0 controllers present on the SoC. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 59d7ed25aa36..a88ed6467e68 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -764,6 +764,28 @@ spmi_bus: spmi@1c40000 { #interrupt-cells = <4>; }; + tsens0: thermal-sensor@4411000 { + compatible = "qcom,sm6375-tsens", "qcom,tsens-v2"; + reg = <0 0x04411000 0 0x140>, /* TM */ + <0 0x04410000 0 0x20>; /* SROT */ + interrupts = , + ; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + #qcom,sensors = <15>; + }; + + tsens1: thermal-sensor@4413000 { + compatible = "qcom,sm6375-tsens", "qcom,tsens-v2"; + reg = <0 0x04413000 0 0x140>, /* TM */ + <0 0x04412000 0 0x20>; /* SROT */ + interrupts = , + ; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + #qcom,sensors = <11>; + }; + rpm_msg_ram: sram@45f0000 { compatible = "qcom,rpm-msg-ram"; reg = <0 0x045f0000 0 0x7000>; From patchwork Fri Mar 3 21:58:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658828 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 1E483C61DA3 for ; Fri, 3 Mar 2023 22:39:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233736AbjCCWjj (ORCPT ); Fri, 3 Mar 2023 17:39:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232754AbjCCWjT (ORCPT ); Fri, 3 Mar 2023 17:39:19 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB4EB12865 for ; Fri, 3 Mar 2023 14:38:03 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id a25so16406785edb.0 for ; Fri, 03 Mar 2023 14:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677883000; 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=8JCGCfWsEtMZLcVHHCa74pefi7B3KQrby6URhzr4GI0=; b=H5ZItBT/RPerrI25qp+nMdI6qoSbVYtsuFaCGYVFXqyRohJrDm8n0cS76g47cEIl9W c0iLFhtZERJWasgDus4Qyp4WQRQcTPEr5/07hBrP4fs8oWKYaY2TGrI7TT7mwWS783It Cx44gqKKz43niwabUuW9+1czbub0Fb582uhBXlfXW5edZms1U7Bljq8266nq8pnCrUZQ Sd1VYpwWxdriOWbgRU/g0dxtKazNCLYUx6+IWB8ELBjZOuCZtgNWlSkvDHy2dOFK6jdA FV1DSMpCX8kSC48mn4Un5aXelx8he5AwwZCkLbPDZ1sVlP4Og37qX5HAIobIAz2EMO8T JtCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677883000; 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=8JCGCfWsEtMZLcVHHCa74pefi7B3KQrby6URhzr4GI0=; b=zMxXPVwZ+lQ1cX5gU+mZdNC3Pp528fmX1JtMzebCF/sFhZ0Lzk0QlUDnZ8vi8rQKtk QzbTvOMZQZEq0M+nglc0bz0vlwg90tYCAy0W6UEwWfEB3p2awp2gEd2C1YRgz4YsowMA teoyAlTriSJrNtJULeAuOTWsSiaRrsI7pwb+nksambK+57KS+vIfu6igvAxD8lv/3dOf hm+kugjKS9J+wv1rFEJUahoQ3wZcuss06Lh9nHjs9G3pnGOv87kOoMmrnQ21AgoyTK0w p1Q8318ua+JW1TRyCNRY/EvdnMsB27AWpRlU0FfxPHEni68knrUs/FiKlBt15gkBhJ6A utbw== X-Gm-Message-State: AO0yUKWBFLUf1VHdhEeb7xrn4AyzRWwAvq3e9JdSAXsioQaETnvtqj58 mX1acuvER1nmvuBxM2Y8d2/kb82F1JW04hpEMXg= X-Google-Smtp-Source: AK7set9ubCGWnXQ3FbQbAsRiDTrdKcsPpOeIF4ovsQlue08df1ClqYLDROmaw6e8yLWA2e2FLjq9YQ== X-Received: by 2002:ac2:4c94:0:b0:4b5:649a:9105 with SMTP id d20-20020ac24c94000000b004b5649a9105mr1040611lfl.65.1677880707826; Fri, 03 Mar 2023 13:58:27 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:27 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:11 +0100 Subject: [PATCH 11/15] arm64: dts: qcom: sm6375: Configure TSENS thermal zones MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-11-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=14701; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=/lr+1yNk3Q9+rICl1jdL9WbimfeX4M1X6sYuxc9vpL8=; b=bL+PGVBy+cmXKc5NishMi5TC7c9Z8wYgQoNFGPT4KKQ4vxPTrNDVepAuxXicieiwAJV/rddwIhi9 3B6RFFGKBfAdBTfzWhrVe4XCcYXshqJndjz/IedeOV1O1j/zkxD6 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 a thermal zones configuration for all 15+11 TSENS sensors. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 704 +++++++++++++++++++++++++++++++++++ 1 file changed, 704 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index a88ed6467e68..94bb373f8d97 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1550,6 +1550,710 @@ cpufreq_hw: cpufreq@fd91000 { }; }; + thermal-zones { + mapss0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 0>; + + trips { + mapss0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss0_crit: mapss-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 1>; + + trips { + cpu0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu0_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 2>; + + trips { + cpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu1_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu2-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 3>; + + trips { + cpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu2_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu2_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu3-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 4>; + + trips { + cpu3_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu3_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu3_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu4-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 5>; + + trips { + cpu4_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu4_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu4_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu5-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 6>; + + trips { + cpu5_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu5_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu5_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cluster0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 7>; + + trips { + cluster0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cluster0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cluster0_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cluster1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 8>; + + trips { + cluster1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cluster1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cluster1_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu6-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 9>; + + trips { + cpu6_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu6_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu6_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu7-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 10>; + + trips { + cpu7_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu7_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu7_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu-unk0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 11>; + + trips { + cpu_unk0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_unk0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_unk0_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu-unk1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 12>; + + trips { + cpu_unk1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_unk1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_unk1_crit: cpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + gpuss0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 13>; + + trips { + gpuss0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpuss0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpuss0_crit: gpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + gpuss1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens0 14>; + + trips { + gpuss1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpuss1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpuss1_crit: gpu-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mapss1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 0>; + + trips { + mapss1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mapss1_crit: mapss-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cwlan-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 1>; + + trips { + cwlan_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + cwlan_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + cwlan_crit: cwlan-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + audio-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 2>; + + trips { + audio_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + audio_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + audio_crit: audio-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + ddr-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 3>; + + trips { + ddr_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr_crit: ddr-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + q6hvx-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 4>; + + trips { + q6hvx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + q6hvx_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + q6hvx_crit: q6hvx-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 5>; + + trips { + camera_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + camera_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + camera_crit: camera-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mdm-core0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 6>; + + trips { + mdm_core0_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_core0_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_core0_crit: mdm-core0-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mdm-core1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 7>; + + trips { + mdm_core1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_core1_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_core1_crit: mdm-core1-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + mdm-vec-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 8>; + + trips { + mdm_vec_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_vec_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + mdm_vec_crit: mdm-vec-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + msm-scl-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 9>; + + trips { + msm_scl_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + msm_scl_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + msm_scl_crit: msm-scl-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens1 10>; + + trips { + video_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + + video_alert1: trip-point1 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + video_crit: video-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = , From patchwork Fri Mar 3 21:58:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658831 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 8EC28C61DA3 for ; Fri, 3 Mar 2023 22:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbjCCWK2 (ORCPT ); Fri, 3 Mar 2023 17:10:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233640AbjCCWJa (ORCPT ); Fri, 3 Mar 2023 17:09:30 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C37EA6783F for ; Fri, 3 Mar 2023 13:59:59 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id d36so2238170lfv.8 for ; Fri, 03 Mar 2023 13:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677880709; 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=IQ4P/+hX2P6pikGGe2JrqWC+XZ4kPlYMVKBCWOIvu90=; b=smOZQCI2D7ZtqtFTDwu0AqQdUj7X3LJQ8f0+B2aLPXGzvsZosvxAsS7BhekJFQuyGg mcm1pHalVn9wBNUFf8/ZjUmWhK8Ci23yEJGZcXrMZRo1lWigoAu1+jTS+Kru8uVoZ7e1 qIUQzzJbr2wSAgQk5gwMYu3YKslu+x0TPNt9ELvlAC6SGf2wi0xyGuW6SmsNZ9OVHem0 yxjPyDlFOdxv1/7jeG/xrAoJ5NSOJimCIqMUcqyiU8G/fYsoKq6C5VRQNZ06wu9csHeV QX5gCz4fHzPHc5egKr+pdHn4+5JDM4g1JsoqgPsWeKwpSNRWmELVyo2tG/aIm2csnM1/ BtUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880709; 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=IQ4P/+hX2P6pikGGe2JrqWC+XZ4kPlYMVKBCWOIvu90=; b=mz27zGuYjxmRdRy7IxB4y4tW+vFpRx24N2ITlXIUrklDrxN+OQ++ukJpcM9AFw0ICW P8hZ8TDrHXyxC970byzxp9ZKHwoAmjarMtCo6uM9/IgzcyuYGWC7lhcSbI1rZtAHKuZE eOE2KIYjd8IMP42QWLstTYrCUmVFm7NZfp9Z4f1zZ59uAZCJOMrW+jVpaf2SXfMnhtxb ypZPKgdeaddMNJRDsahoskUMxrynA1d8SkdA9UwQnzVlp2gqt04cmgA0kQYyh8/YI/4d l4gAQYxy/PdL9Lv+f1o23qf4NKjxsYZRnugIRY9Pe7lKugr7758+sQ/9PiWiMnXsXhmC eJsw== X-Gm-Message-State: AO0yUKW9+5l1NIGJVnxxIlDPadbPleHd7tCPcaB5H68OdkKOteRSXT7H V5TxgIufhXs+5UkoSqIcs0AFaQ== X-Google-Smtp-Source: AK7set8JbxDAS54CalbP2WgixNwDWwcdFHlz3zpT4NUKQqMHsZiUw9hwQUWYwolhEtaE9qMOzuHq3g== X-Received: by 2002:a19:ee06:0:b0:4de:7b5b:f16f with SMTP id g6-20020a19ee06000000b004de7b5bf16fmr1001238lfb.7.1677880709251; Fri, 03 Mar 2023 13:58:29 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:28 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:12 +0100 Subject: [PATCH 12/15] arm64: dts: qcom: sm6375: Introduce MPM support MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-12-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=3281; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=iPa23Ps62e7Th5IYTb8Pdb0xoF/q147iZLwyUAl1QU0=; b=zPa/FrwPkdGsOQ4pHDIGF83/202i7LLx5FG4SCWhJkh9tsnmE3v3rmnziIAXgQyZ3UqQsSi2SsyM mbwdMHi7DxcP15g3E0/73AVlQwW29D+BP6tZEdF9l2y+LX6fqVbl 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 a node for MPM and wire it up on consumers that use it. This also fixes a very bad and sad assumption I made when initially porting this SoC that the downstream MPM-TLMM mappings were 1-1. That apparently changed some time ago, so with this patch the MPM consumers will actually be hooked up to the correct interrupt lines. Fixes: 59d34ca97f91 ("arm64: dts: qcom: Add initial device tree for SM6375") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 94bb373f8d97..ecb654357288 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -315,6 +315,7 @@ CPU_PD7: power-domain-cpu7 { CLUSTER_PD: power-domain-cpu-cluster0 { #power-domain-cells = <0>; + power-domains = <&wakegic>; domain-idle-states = <&CLUSTER_SLEEP_0>; }; }; @@ -633,7 +634,7 @@ tlmm: pinctrl@500000 { reg = <0 0x00500000 0 0x800000>; interrupts = ; gpio-ranges = <&tlmm 0 0 157>; - /* TODO: Hook up MPM as wakeup-parent when it's there */ + wakeup-parent = <&wakegic>; interrupt-controller; gpio-controller; #interrupt-cells = <2>; @@ -755,7 +756,7 @@ spmi_bus: spmi@1c40000 { <0 0x01c0a000 0 0x26000>; reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; interrupt-names = "periph_irq"; - interrupts = ; + interrupts-extended = <&wakegic 86 IRQ_TYPE_LEVEL_HIGH>; qcom,ee = <0>; qcom,channel = <0>; #address-cells = <2>; @@ -791,6 +792,25 @@ rpm_msg_ram: sram@45f0000 { reg = <0 0x045f0000 0 0x7000>; }; + wakegic: interrupt-controller@45f01b8 { + compatible = "qcom,mpm"; + reg = <0 0x045f01b8 0 0x1000>; + interrupts = ; + mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_SMP2P>; + interrupt-controller; + #interrupt-cells = <2>; + #power-domain-cells = <0>; + interrupt-parent = <&intc>; + qcom,mpm-pin-count = <96>; + qcom,mpm-pin-map = <5 296>, /* Soundwire wake_irq */ + <12 422>, /* DWC3 ss_phy_irq */ + <86 183>, /* MPM wake, SPMI */ + <89 314>, /* TSENS0 0C */ + <90 315>, /* TSENS1 0C */ + <93 164>, /* DWC3 dm_hs_phy_irq */ + <94 165>; /* DWC3 dp_hs_phy_irq */ + }; + sram@4690000 { compatible = "qcom,rpm-stats"; reg = <0 0x04690000 0 0x400>; @@ -1185,10 +1205,10 @@ usb_1: usb@4ef8800 { <&gcc GCC_USB30_PRIM_MASTER_CLK>; assigned-clock-rates = <19200000>, <133333333>; - interrupts = , - , - , - ; + interrupts-extended = <&intc GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>, + <&wakegic 12 IRQ_TYPE_LEVEL_HIGH>, + <&wakegic 93 IRQ_TYPE_LEVEL_HIGH>, + <&wakegic 94 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "hs_phy_irq", "ss_phy_irq", "dm_hs_phy_irq", From patchwork Fri Mar 3 21:58:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658515 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 BDD06C61DA3 for ; Fri, 3 Mar 2023 22:10:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233726AbjCCWJn (ORCPT ); Fri, 3 Mar 2023 17:09:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbjCCWJV (ORCPT ); Fri, 3 Mar 2023 17:09:21 -0500 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 DEEE867801 for ; Fri, 3 Mar 2023 13:59:52 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id n2so5356762lfb.12 for ; Fri, 03 Mar 2023 13:59:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677880710; 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=xMUNS7sepBti40evG3v1VzCcdXq5T/S+i6PiT3G+pfs=; b=mwKCN8Hd+7f+HoC4Zlb2O3XOI1pWE/V8SEf7jIDFZQ9ruRjREK4sfNVuT5Yy0aFDNI 4R2K/z/WIPEP2xGN8+VxguMd7cNNHgjWbZGHe9dmyni4dnXxrFc1yiuzicXnAaUXnmWO hVFoBMAshKj2qEiajhjiFUdgw5veq2UWUqDR91c2VIP79cVQt/h/gqgYoZOvvC3VsbwE 8sbOjdGO+H5tf9ElRaLB3LARiEKYT8A0xrUFiqPRA9MUkgTr+tyJ9z8zVrU97L1VOvcz M0agUjPa21WPgjlld+gGkwHzucMwDInRBkQPIMewB5ZlBKjS/j9OYyBHi66Lla2EfsMO rF/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880710; 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=xMUNS7sepBti40evG3v1VzCcdXq5T/S+i6PiT3G+pfs=; b=7huzgWKFAFS+4dOe7zma1n6Ezg28Xs12h+2yMLjaUfMBJ5GcPxzyLggTEMHGY4Y0Cx GTQubTa6oynjo+EeDk42w1d4Ze6FgM+0iXY9QL6Z3FXltSwLcS08+dfPJSD0HMhiQ6aR snp3HZK8c4p/1e846VjDcSXSKVXRsRt8A9GmX1iAryW3/LXe89E1jCzoY9dgpjFN6uDo cTUivTFByfL6aR2qFCPFMtP/8O9P54+b5wumGCYI33r1gxrZTPqTYA5b2Gz9uGiQvDUk cNS1cRCFgM9Tl6kIxr3RiRKjPe7FiucgclNabkkX5EG1p1NEIU4KF79u2DiQtBsfavWE Hnkw== X-Gm-Message-State: AO0yUKU5VlSI8qbKN0h1GsTWIpHptVTKmvTng9BafYmwyjJFjS+HVJ13 6LFiSdbrd9fy/xefHuSI3SnIsQ== X-Google-Smtp-Source: AK7set+xTOMvHQPpikQYpYy36pXqXQETgeNZhjJI5qy6WIbBqGxqgoV4v/7eUZshp7eRmb+hJNNc7w== X-Received: by 2002:a19:7405:0:b0:4e1:7d1c:85ce with SMTP id v5-20020a197405000000b004e17d1c85cemr910940lfe.27.1677880710686; Fri, 03 Mar 2023 13:58:30 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:30 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:13 +0100 Subject: [PATCH 13/15] arm64: dts: qcom: sm6375: Bump CPU rail power collapse index MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-13-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=2856; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Qo/t+wBOxYfbhVIzvJopzDAhr8R83GF/inpNjIKH5i4=; b=g235hPJZ2ZyXkacBlAhRPLIHA1uGZC7mNoBH5+i+M1wYXAToQ+XNthEFZmTV3B9F+OBYu7mYBkwF dpZhHdtcBlItLd+uTPAzfc0bCew7lPkDsplDEmTL1vif1Eaa8jYq 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 In preparation for supporting a less-deep sleep state, rename the existing rail power off from _0 to _1. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index ecb654357288..05d8d6a012b6 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -207,7 +207,7 @@ core7 { idle-states { entry-method = "psci"; - LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { compatible = "arm,idle-state"; idle-state-name = "silver-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; @@ -217,7 +217,7 @@ LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { local-timer-stop; }; - BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { compatible = "arm,idle-state"; idle-state-name = "gold-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; @@ -268,49 +268,49 @@ psci { CPU_PD0: power-domain-cpu0 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD1: power-domain-cpu1 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD2: power-domain-cpu2 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD3: power-domain-cpu3 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD4: power-domain-cpu4 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD5: power-domain-cpu5 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_0>; + domain-idle-states = <&LITTLE_CPU_SLEEP_1>; }; CPU_PD6: power-domain-cpu6 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_1>; }; CPU_PD7: power-domain-cpu7 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&BIG_CPU_SLEEP_1>; }; CLUSTER_PD: power-domain-cpu-cluster0 { From patchwork Fri Mar 3 21:58:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658509 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 49C15C61DA3 for ; Fri, 3 Mar 2023 23:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbjCCXQe (ORCPT ); Fri, 3 Mar 2023 18:16:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjCCXQd (ORCPT ); Fri, 3 Mar 2023 18:16:33 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD7FC6487A for ; Fri, 3 Mar 2023 15:16:31 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id o12so16373367edb.9 for ; Fri, 03 Mar 2023 15:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677885390; 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=VobSYi7qd6A4yHO64hTT2lEY0pFxLrSpNBSai03mo5k=; b=Us2FQX9IpQIAbv/gDVv2ag5c9idw6UsBa/PuH4eeqE71kPPseUjwsQ1/lwWY/Y8Qf5 LJ/vNGs7jY8aU973N4P/kQ+ALE3mREOfYekCJzR4hO6F8xBlsvJRFEEOAEM5iCLehg92 Zzb3GN1pkjh1H6vKoGtm3xDaNzO9jDm+NpfnhooXU0kDyCrObtGxf1BS+GALrfRdklOC favxfpXEEMX9vmszu9vLrUmBiV6FFKczTqt3yzqLukqmFv/zQI1UBU73bHBlSzCN7QJu XSvp5fOKa49xVCHx+1DATwOHAGh6kSLfE1FCfjYQushiBp7b5pURcYOBk+eJ6f8wUv1j uBNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677885390; 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=VobSYi7qd6A4yHO64hTT2lEY0pFxLrSpNBSai03mo5k=; b=EWOz0JZJCbfrDZOUrlHlUmtiF/H9PaAxhzl1EocXXCf2YPkOtn3gQwuMyG6mzqrUus kwVUQuX7x5vWml52mfqukv76AwfVJojuB2OhuY0z/uq1SYeezWS89/YnhqiqoHLHT8va MIjta88/N2qxPKDu4hbiSYcl4+5tYOI9pVxwOwxZKLQ27zmXvSC58RKf6FIrPzAV97xo ARDs034F3dKX6Bmli7rHTU+z017XjB6IliMKp3sL66cNFTHiRyNjNtc2qS1evMcRuSqg mWIP3F1A7JR2VDpG7UU1uVNPxmnRgEmiwEaTrUmP5ggWUqXRemOppfDQduWdZ758LKS3 36Hw== X-Gm-Message-State: AO0yUKWGV2IbKPKpq7rAX6ybcnYOouIlcvtUuwdEkicRrwxV/sdVmsMc O0jEyzjX4UE7WE7HJB5/vId8C4W6EOs2KIHZcSo= X-Google-Smtp-Source: AK7set8MRIoaP0psz05Gh0nAwtNtBzJfMSfwrfMk4qPMD0jIxjJMmVURbHzalueJYxFoZUu8Aw7/0A== X-Received: by 2002:ac2:522e:0:b0:4db:56e:427c with SMTP id i14-20020ac2522e000000b004db056e427cmr838136lfl.56.1677880712122; Fri, 03 Mar 2023 13:58:32 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:31 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:14 +0100 Subject: [PATCH 14/15] arm64: dts: qcom: sm6375: Introduce C3 power state for both ARM clusters MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-14-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=3486; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=BoPm/b3+zv1C9oti+VeDmiDfZTtPEFlzg5/g/B0wkuM=; b=r1bhNl8KZSXM0Ex+wdQb5ZfkteY5xsSugf2fNelDZMgFcAYPBGdoIDJjokE8XJrDiDxGTrPSn3KA Wcb7o/30AXeoYYWSE+v6cDp0kLjcR1KnXuNsyGhet+Wv4Rlrcf9s 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 Introduce the C3 power state, which - to the best of my understanding - gates the CPU clock, but does not shut off the power rail. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 05d8d6a012b6..5a6661dbde08 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -207,6 +207,16 @@ core7 { idle-states { entry-method = "psci"; + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "silver-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <549>; + exit-latency-us = <901>; + min-residency-us = <1774>; + local-timer-stop; + }; + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { compatible = "arm,idle-state"; idle-state-name = "silver-rail-power-collapse"; @@ -217,6 +227,16 @@ LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { local-timer-stop; }; + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "gold-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <523>; + exit-latency-us = <1244>; + min-residency-us = <2207>; + local-timer-stop; + }; + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { compatible = "arm,idle-state"; idle-state-name = "gold-rail-power-collapse"; @@ -268,49 +288,49 @@ psci { CPU_PD0: power-domain-cpu0 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD1: power-domain-cpu1 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD2: power-domain-cpu2 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD3: power-domain-cpu3 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD4: power-domain-cpu4 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD5: power-domain-cpu5 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD6: power-domain-cpu6 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_1>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CPU_PD7: power-domain-cpu7 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_1>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CLUSTER_PD: power-domain-cpu-cluster0 { From patchwork Fri Mar 3 21:58:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 658510 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 E634FC61DA4 for ; Fri, 3 Mar 2023 22:39:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbjCCWjk (ORCPT ); Fri, 3 Mar 2023 17:39:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232815AbjCCWjU (ORCPT ); Fri, 3 Mar 2023 17:39:20 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8321213515 for ; Fri, 3 Mar 2023 14:38:04 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id ay14so12475914edb.11 for ; Fri, 03 Mar 2023 14:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677883011; 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=N1o/g/RY/F8tw5gI99MfNC1MgutCzKG48oc2MA5z/Ao=; b=j6T50W0yJWlEV6twiah2be+kDXczVeYi/uUvd3awW16skC0dq+0wC9D1OfEOJtY5N2 7AKRr9jpVpl2dZ2QdX4hw1s9/qL0ChQcqOBl1lSXY06EHPpY82aDAszNXiKXWrwqR+q7 ywDUT+ttTTL0R9+sQ1+41gD1sRvqCbxlh1mc0APO27Owrp4j6To8jLWZciMPeY2XDBvG dxa2ypernsQ43U2kNkLP6hWZs4yQ73e9y7qGDTDKQc/J5XINZIzvZ2HygiusnuoWP6K+ Qwu5bdAiMwgOqf8E0jsYfTuq9ovvpIYOeh8pU86CEsdNv/+WQ3JLP/J8kqO2e6DqtzXx xjqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677883011; 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=N1o/g/RY/F8tw5gI99MfNC1MgutCzKG48oc2MA5z/Ao=; b=yFlqvXbjnV6zow8BqSdDSb9chSPxYn4iPWUIHpzDPPHDc2SNs5Oy5720P1g83JJwri vkgJ0tfCec6XFDbyr6KGaw2NvujdYvpcIkomiwKk4327dJotZxnuLpTHDUB82tqP5Fvu V9tuOqJy3/ead1BWBiKEKD5JmTqyfWRrGeYyb6eTpVBXoKSO2vzTiTw/8wFuOad97Sst SyE9Ym4OoxCP6XWlEQdbf8lb7eMQMeihB1cQyR941FoFZuozFrVhFlW+ulSLYBqUBspE 6AcmBl+TupJWuCJxROMp4pPZXDPE34SpcVxpyE9d3TTw3kjCnTKARuImb74qWEUWgmJ2 6Eow== X-Gm-Message-State: AO0yUKXAyuGoxEPJzAPL0vxLYO2HbkB4qt+I0cv5Bk5ywY8euqjJ22nM 17HwaNSc6i39qVCzsKJNHYTlhvjecS7IeI/nMuQ= X-Google-Smtp-Source: AK7set8HY/ZWvMDmsFszJ46x+D2bfFXOLEt62IWqldbD7EeuilM2sEPe1aGzehsz3IInfUfazDl8uQ== X-Received: by 2002:a2e:8e8c:0:b0:295:9f20:bf16 with SMTP id z12-20020a2e8e8c000000b002959f20bf16mr834883ljk.51.1677880713790; Fri, 03 Mar 2023 13:58:33 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:33 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:15 +0100 Subject: [PATCH 15/15] arm64: dts: qcom: sm6375-pdx225: Add volume down GPIO key MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-15-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=1409; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lUoSxwe6wDxHMv1iTDzFHuYZxKLyt1OMfELUkCo9Rp0=; b=2D1FYt5g9zW3UaMoHWv3uq5a3I+XMRqi4xOdzwph644K+Ge2XkqIHBvdS5lQ6HhN8VB5CAELrLkC Mc12VKGIBVJrmmDYy3Plyso23gn9bU4RYdv5EBTyg4dMyi2kUOIU 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 the required nodes to enable the volume down key on the Sony Xperia 10 IV. Signed-off-by: Konrad Dybcio --- .../dts/qcom/sm6375-sony-xperia-murray-pdx225.dts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index b691c3834b6b..8220e6f44117 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -46,6 +46,23 @@ framebuffer: framebuffer@85200000 { }; }; + gpio-keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-0 = <&vol_down_n>; + pinctrl-names = "default"; + + key-volume-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + }; + reserved-memory { cont_splash_mem: memory@85200000 { reg = <0 0x85200000 0 0xc00000>; @@ -133,6 +150,16 @@ &pmk8350_rtc { status = "okay"; }; +&pmr735a_gpios { + vol_down_n: vol-down-n-state { + pins = "gpio1"; + function = "normal"; + power-source = <1>; + bias-pull-up; + input-enable; + }; +}; + &pon_pwrkey { status = "okay"; };