From patchwork Thu Mar 16 14:12:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 664081 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 503FFC6FD19 for ; Thu, 16 Mar 2023 14:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231197AbjCPONK (ORCPT ); Thu, 16 Mar 2023 10:13:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbjCPONI (ORCPT ); Thu, 16 Mar 2023 10:13:08 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 089F64D62F for ; Thu, 16 Mar 2023 07:13:04 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id z42so1811639ljq.13 for ; Thu, 16 Mar 2023 07:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975983; 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=LOCr/dp56x8yfPg236tQnpLOuN8kndNbHP2o7x5RuGY=; b=Lc5KcKlhDqHl1KpuuZ5W/BnHDClDtmGbyEhuFN4hZOfZ9bBf7AybyTkPQP6acCDk0R xzM+c6wqXxJEobg0Doo9IL43MP54R23YEd4gcmN98ufUr65okpYDbxZhaxEcgEeAbztC 52xVsAbOE8CHnWzLYFc7D8LFa1iIJ67q3080VG8pH5UR/05IvRt7lB18tin793Ao5AzS E+JAL6rFweGo8cKtN3n1pa2Y3QKbuZIEpmzbvm8fmv0NZtLT5VJJAowjNQC7PJE4pxWl PtXb7ViNNvLLQzMhkaLGwHk5isGRJibcHQ105pe+StMNpF2HninSAWfNu5r2FLWOxxPZ jbkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975983; 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=LOCr/dp56x8yfPg236tQnpLOuN8kndNbHP2o7x5RuGY=; b=Zxbi76X6Si1My2AAi5QZUU8Ljr7CPqPKMuKEgKjGCU+6J3tMZKlJujvPJK/1SppFPx S7Qu+aEtuyuxShYV9+qUenC2us5suOQpzl3020jiXBznC1q60mEjIM2dPb6wFSiG+zAJ HmUTlu2W9XXNR08i4pVWgoVvqjrhy5fIYlOl2VTZmexbHh03faHso9SICnZ2N7LqpJzZ 3pjtGdDkF7emUNzT33fa98oHE1cZvY5MUEFKQ2Pi4ad3jwQdjodPEgETwUTnG7P6MQ6X 9/6eavoEvTA7r/SZ9TlPcyRuMq9rLG5xezEbu+hksTl/1LDD0NfqTDEvVXfVdTXiO2qY XCmA== X-Gm-Message-State: AO0yUKVOu6Ka0cUkE4BwIvILyAMJthpZE0OTFgfaPL84zzwlYW03d3vi OquTR0yq2zcJ2Wm5V7WEO/5LBg== X-Google-Smtp-Source: AK7set83wVWsxOA+7q+2KuVzmbpaqw5DKO4c5CtIJKIJi3/iEalYzjMBNHw0lq5cNzgNDxd96vigHQ== X-Received: by 2002:a05:651c:1993:b0:293:5f35:d68f with SMTP id bx19-20020a05651c199300b002935f35d68fmr3014299ljb.31.1678975983034; Thu, 16 Mar 2023 07:13:03 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:02 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:51 +0100 Subject: [PATCH v2 02/14] dt-bindings: interconnect: OSM L3: Add SM6375 CPUCP compatible MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-2-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=1087; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=T2UOT192UwWYD42jhZA6LPQhbEe5pwQ77s6b/5s/QFI=; b=dZYzKfGZGus6e9MJbhUWopp854ldx9ddjnWZSnzdTnqz5qI1VR7IgwTWMT8ycCzFTlctd6pn0S4u oS5Uv1p4BxViuyMsoJvaQKwRm80YQXR1ZmH+qAPqtkcxBIktbFfM 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 includes a CPUCP block responsible for managing different APSS- related tasks, such as scaling the voltage and frequency of the components within the ARM DSU cluster. Add a compatible for the L3 cache DVFS scaler within. Acked-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- 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 Thu Mar 16 14:12:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 664080 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 BB84CC7618E for ; Thu, 16 Mar 2023 14:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbjCPONY (ORCPT ); Thu, 16 Mar 2023 10:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbjCPONP (ORCPT ); Thu, 16 Mar 2023 10:13:15 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF835BD8A for ; Thu, 16 Mar 2023 07:13:08 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id b13so1833049ljf.6 for ; Thu, 16 Mar 2023 07:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975987; 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=azxV0C7ElI9nuIrzcyidvF7wgMwRjrYpY0h3aDMacTQtr27ionpn4UIG6e7iJ55i6C +gN0i6O6HGBVpaTf1OQ2Ku8d+g5jDBPI2DNV6HVoUer4aNZ79cJltykl/9VlvKinM2iK 0ekYHVYFjtRhraNTIswyN17bFotw4ZKNm70U7WS7+Z4zp5tlGErso3sdtCXHXbtf0cO3 y/Mk2MXFcKV5vOJzqf8m/2iFqY3XM72P3RCywjy5mIevJICr5G6tsYnaI0vQ60VZoQqO ptInUSWaMFRl7ZuxhmFjiyf0ztk5dHPzlt+hWBuO5vy174976jqRU4J3Sxg5HZqB6pGE qMHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975987; 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=JGtrMN5YvRyABx8vwhtZp/RbDmViH41o+3zDFg79Od2HtHrjUttc/UH5JHOLHdjX3r yiop0k035yAUumC2uGtb3LKmCUXrZXqaAlMtwZVlKPtvY787XdHcLoU9Cw1Zfuyi6ekY 8FfWX26RGou+Wd6ZvenKxaooq+j9zTHbFWvGb+FPsbZQR12CPpo+iTyR23Srl3HBX5Wg uI//ym0qi3NSufOmZ4Pz0qKEPiSR5VeWsaZvhwXtxuierU/Ims8EIBZlT0nZ8k4UxZGp igw3xRT33BccB61XhwA+zMAAQYI/M6ntSjXab4JMIMHNmIjoJtQipMZfGV3Dag7104Fx kMVA== X-Gm-Message-State: AO0yUKVoNw7wZbdjcWcA9WmjztyUYDrL3RS3XcyV3VBtcbqSX7sNqB2i jQdPliqStfczcDVJYupSbmYXpQ== X-Google-Smtp-Source: AK7set8TUH1Gft3ha6FOirDCP6FOLXq32NPtBNRJjeOI4lUYMguEYQtUAO/4c/EPiSZ3Iy21WVSPbA== X-Received: by 2002:a2e:850d:0:b0:290:8289:8cc8 with SMTP id j13-20020a2e850d000000b0029082898cc8mr2002890lji.22.1678975987062; Thu, 16 Mar 2023 07:13:07 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:06 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:53 +0100 Subject: [PATCH v2 04/14] arm64: dts: qcom: sm6375: Add RPM sleep stats MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-4-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=761; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DKx+rSMb2n+6CPR4L2fodh6IzfCfn+ctrSy97qX3zGU=; b=kgTjRf+0MZH83jHV0+hWfT5jLGkzIuDSYLc2nQr1s13EaX8qETr6kQs7C8nt53DKqE14Vs4CKI87 dFLEuKAqClp7xo7Qh9Lv+Zic8bOij0SKVMfKLQ0Tp1FCMygSzx5f 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 Thu Mar 16 14:12:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 664079 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 79961C7618D for ; Thu, 16 Mar 2023 14:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231276AbjCPON2 (ORCPT ); Thu, 16 Mar 2023 10:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjCPONW (ORCPT ); Thu, 16 Mar 2023 10:13:22 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7840DA3B64 for ; Thu, 16 Mar 2023 07:13:11 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id t14so1839383ljd.5 for ; Thu, 16 Mar 2023 07:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975988; 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=anO7XhKiTxQ7PspWlz0W5RuZllTBEpxpRK56MzaCLB1+qFfkKSjL7GCkvelyz5Kmna 5ExrTeNfHAv0qorhHh8Ag5AC0/SN9Q+IOJ9DThhWLZoSxmgP3rDpyZeXSQajbuKOSic7 KLfdXS9/uf8OoACfBtE28A37tN3jhlrVp2G6Cbm0C6sXxIRdwYqrz9Dz8kmd//Kfq0bV oF1JTzWexjcZVgZTSPyOZvNuljqWGrYcS+NRyYTxbKzUF3W8X/c7/+Ma0FFLAxDr8u1g 2bwjcXZ3kiZLJvNyXqF/gHE2dLFjWa1EGKwkIeMcIH8hqZuz8JmplPxl9DquFGkfGzJ6 6fSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975988; 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=HE8MOwzOuZ9rVbDoSMa/JrHzNROUpBORXKI0bkhVMKbXOQHRURDQJbLdXLYyiG7hUx Uf3rgBsowA+X7sXrLVPEEAtEHZcKAEZunNdTlbwCP8PmIUJLIASMUfHpCwid2T8K6Q9P KiQVonY/t2t4pbm162Jzf6jkeqeQL3FB55vskrDq0M3d1Ac2w/+9tSJw49CvQNA+WKF2 uvHsEaAcrrV6qaRjYGrIWN8aVuadm+C6ijXcI6n0Avl4Qo9odLYv39RG6QD4B9MAHLFv iJyTyuxOGpHD9BvC81dxRt3SgeNTxSaVbaqF2vvHm+DuuN46ntynSgI5FLnnr7TuDnv8 sZRQ== X-Gm-Message-State: AO0yUKU17UM8UaW+qMff8dlpOZQe0dAWSreXKYPHBYZVv+NDaa9i2Au/ 9QEn2r6flCniBBU9krOD5uDkWg== X-Google-Smtp-Source: AK7set8MJYAhH90ZMr/PPhTGr3fg5R05/wF93P/RTeowmczTTO9NNtDiRGAJTI1D0GqhTNm5TZjtvA== X-Received: by 2002:a05:651c:1a21:b0:295:9517:b98f with SMTP id by33-20020a05651c1a2100b002959517b98fmr2416206ljb.15.1678975988657; Thu, 16 Mar 2023 07:13:08 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:08 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:54 +0100 Subject: [PATCH v2 05/14] arm64: dts: qcom: sm6375: Add IMEM MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-5-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=952; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XeByskUh4IJy5GUSRGVEOURhAeiNtSqMfR5ebBA6Oes=; b=mMAFk6AuU/gMpqPyPUUUhzoWQDrmjRlIU1ZiIzMYlaaCXfIpkR1Gf2xkYL/WskH9spuP5ffJlJOb H/ScjN/2BaU3hl3N5lADcQaDr/OLOi1WI32ZPyhUss9gyoU1iIa1 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 Thu Mar 16 14:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 664078 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 CC095C74A5B for ; Thu, 16 Mar 2023 14:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbjCPONo (ORCPT ); Thu, 16 Mar 2023 10:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjCPONY (ORCPT ); Thu, 16 Mar 2023 10:13:24 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6EFB719A for ; Thu, 16 Mar 2023 07:13:14 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id b13so1833393ljf.6 for ; Thu, 16 Mar 2023 07:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975991; 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=yCQR3osMTJ6h42DloZHw7hvR8IiOa/B1l7UrhvUqmhpbLDTdGc8RI6r+dBVR1qFqub QueyNwawWv9ScOqMQuD/29Sr8maAftaQFe8EXsg9bGiuoxD/HJi+eMsjVUgf84TFklhh YdvwtFnwUAgDXPl56akEORHH4G3gHTjbFzLItKjoGPm6DLVl5EOUsy38cFcr6eS8xk6w 3bdHPLaVag/CjllrEndTs/8RimMENESWzt5TTymb0+UDAXUR4WWdTGSUiLKeyrYPPPMY Ie6Iw/GhHxp/owyc2hxhkuqS/d5Nd7BWbDr0amgXdOe27ae8YG/Y0spDNj4OMUBoAhtt rgKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975991; 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=gZtKzccUxguto2YZWJ8XS0pHfKqsRMu3XW/T62icjo1cnJ4Gn6rOVm+X6D1K0tZPCx E29+42jZjDoNmbvti949nzCbt9qg2QM2uKloHcnuv7gJwUCQU2RFeJc1AYKh87VuOYCe f7GOJ72hhgF0BVBvJzpSO3ksb0+odf5KNHn5a4Joju/DjP2hVwgR/tGBlnuWHbKwRy0C Sf/4U4AW9ohYT0+zxK5wlukrXGoqSI+eut4gHLX3ty6+GXaPXFVqEOb1ktup53u4izFH 7SKyMwTRIIWV8sQyN1DdRpENrrZ2Eh6IZdesbahzvAUfkurxkCr8Mw3fHtsHvO6hiUr2 L1Iw== X-Gm-Message-State: AO0yUKWsIxLtlJxEgyeqC+ntnWgAPbYqMx7OebQlJPyHMtxKjD783nIg zAMmuhBRMKexCi+A2Om88pXe3g== X-Google-Smtp-Source: AK7set+hJK23nmyJ+qegwF3sPqZTklmmdr1DOxmq/W0AB0URDrUzgjjMEvp39AIIE85+kaa5a01nOw== X-Received: by 2002:a2e:be8d:0:b0:295:ba1d:c2bc with SMTP id a13-20020a2ebe8d000000b00295ba1dc2bcmr2975492ljr.45.1678975991845; Thu, 16 Mar 2023 07:13:11 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:11 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:56 +0100 Subject: [PATCH v2 07/14] arm64: dts: qcom: sm6375: Add wifi node MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-7-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=1484; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=+otj1Pk8eMle5AYQIbjERaviQEzSMjyG5K7Qicq4ass=; b=v2EQnTrGNPBuNI+AxHu/Y188twk1jFdXe+qthOVwuKFebklp76Q92+GnsXf/llpo9O4Pw03MDi7M ENLdI51qC/eFDQ3R421FxjoMW1VFwWELIiOyAQjyDjv7QkRWH6A5 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 Thu Mar 16 14:12:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 664077 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 059D2C74A5B for ; Thu, 16 Mar 2023 14:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231273AbjCPONu (ORCPT ); Thu, 16 Mar 2023 10:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbjCPON3 (ORCPT ); Thu, 16 Mar 2023 10:13:29 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28B83D7C2E for ; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id z42so1812440ljq.13 for ; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975996; 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=rmAjPw9dYkNrX6arOkoSKNjd5H/0Ya+0BKCtPDecJv+RvkwIt/aC2JgtA/lfbcAaDR CeeNm4im8ce9HAll9Jpuoe2g+Sz829sLuL4UVRaWCm5f5K7b1gDt7dst1B8hO1OPOb8O N+rbYTqWe2XSzumOr7Qy+1RdxtRVs8pGkgIYptiuxV40BANKEUkxEYA0mQTCzgbD0M+q UrysLafzXHocnmPyl9QWAS4BXc1qtIFbUg/RUT0knG/YLgV5OnZvvDuKen3tTFtkXqSI ukcqPXFnaw4H908jmFXEHpm0QzXgkh+OuH8Nu3V3eZMh2IKWcKuioaNYUlkL6QT31KDi 5Nyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975996; 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=AEM83xmE2I5eH8X5a93vDA1LodGCQEKVW9qbxDtIf9ah7SszywoG1FfKR3XYM/ts1f F1MuU/HZarFHbUfDv4e/ppyXOCMD7WP/JGG66bC5rxg3evaK0NkE/LHBKI8uyRHCE1u3 9aVEicZudXKaoxs0TFB2zDZRe6M/Z/226BfnIuCLuPFR/GxxrxqDLACgLPFk7vMtXKHx l9VmNQapThZ2xBh23JVFZpBQLHZefKyUJSO8nJCuXl7eBwSeDVjG1YL+LRy0UFgE+/Dg rC8pO/MmQz/v4nd4waGuMDMu3UoC4/h878pXrwpLWfG602OxZzTpUAKbOdKq8wSZc2Or bxww== X-Gm-Message-State: AO0yUKV8q5i5z2dx8PsBVqpNk67HhCumv2vvhWl9gyKX5TFp7tVMbkHY 2B07v/bgIfgjUkviaCjKhjqbQw== X-Google-Smtp-Source: AK7set8ThKwBkKu2BrUDOGOMqgR1WPAMp7Ne81823lYwufkm8aDqSutp/EvOWtU3807T9HVinO8mCw== X-Received: by 2002:a2e:b88f:0:b0:293:4ba3:17be with SMTP id r15-20020a2eb88f000000b002934ba317bemr2862778ljp.11.1678975996476; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:16 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:59 +0100 Subject: [PATCH v2 10/14] arm64: dts: qcom: sm6375: Add TSENS MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-10-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=1456; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ykqp5bp58crzGqyySJ//g66g5IA2DYwCTKLczf3b59w=; b=8GcRkKVlQgGRI2QfzqrSgsroa+vRBMeCjg6PCLbWsbDsW4cFAfUFp2dVuA4NWxY3NQicPPNPtaLD Xtx0wfYTDEjXwBShR65VrLUHrSCJdKQ35FzYtpNowdt4JYAduk4p 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 Thu Mar 16 14:13: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: 664075 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 95BBDC74A5B for ; Thu, 16 Mar 2023 14:14:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbjCPOOO (ORCPT ); Thu, 16 Mar 2023 10:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbjCPONq (ORCPT ); Thu, 16 Mar 2023 10:13:46 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1548CD7C04 for ; Thu, 16 Mar 2023 07:13:24 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id y14so1845126ljq.4 for ; Thu, 16 Mar 2023 07:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678976002; 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=piy00ze27cjmP3sGzL7P6bitkrLZh8ic/pO7qFj7OPM=; b=Bh1hxScNUZDwRSRTQn//qBTILDXyyQwMC4kYaXpzqk2hB82rnzKtO8PO/swehYNbUN n33LC0ZB18/x/hrBJEwOnBTTYdfHONNjONchKWMmUZN8b76GS2U83J8BvsKdp6/Gql3K bATEpiI2h6Xr+4QG1FtFfksi7BdCwEqpVr3Ibksw5R7uS2WdVPaS9As9HVbRDnU72ayY +l9BXgVgw/Oo+FD5qWUsFmCwgnK4W9dJNcBU92za7IE/TLb5mbAy0yduOLWX0pptlakI vtwb6/+88SWs1JpAcw5V0DsCg9llwoY/8T2tDRIhuMLZKtvm/0BvqFnpovoegXcg3eNO ACBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678976002; 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=piy00ze27cjmP3sGzL7P6bitkrLZh8ic/pO7qFj7OPM=; b=VNYQwqkfC5zwzPCfWZXR8QQ8mpM5/M7ZDBUu8Jpdso8JrdNDRqcDygfc5h8biT/2dA aLNNmvJWHedi42+dwsT1Njn/Awmbq8tjoE0x/70rXyoNc6m2KJlLsRuWokPl6eRKvKeV 96JKHw3d2YhmRfduPnjyDd4SKiK19IEpG/y4y87bCr7i151sDOi5+3CulUmfwRwmslY6 HHDW5KfEOPF8LQ4835hA87MrGW6DZXbDmgSVcaeyCqvbJ7slcpA05j3ZRm+0MR0wIhGZ i0THZEcyPVOPkses0urjb9pp6Yf+9y2Dq4+t/cth6zaFSv8tCHR6yllek+5TDm/gpDbK 299w== X-Gm-Message-State: AO0yUKV8ptOjt6LlAhsVBqfTRZh/Br5wdkF48sKTY20tTUXpu3dpFKqN WXNwKBle3OZFzzeDEqe/jr9eZw== X-Google-Smtp-Source: AK7set9Hpl/z7MnJUp36/maR2mCB6ZRxpD7AZ4o8yJBa0qE4onNKcSgKX+qfcXq4bSTrWQTCW6aKwg== X-Received: by 2002:a2e:9682:0:b0:299:aa9d:cea1 with SMTP id q2-20020a2e9682000000b00299aa9dcea1mr736947lji.47.1678976002152; Thu, 16 Mar 2023 07:13:22 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:21 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:13:02 +0100 Subject: [PATCH v2 13/14] arm64: dts: qcom: sm6375: Introduce C3 power state for both ARM clusters MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-13-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=3486; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UTbmkp3WiwW+dRCBFpoWA3Dx76pcDEsLxGUPbgpPkms=; b=gCDDJGxaHaFaoA1Q1yXkbwsAPqik9mDAOA4+iE8WuLxR/oTio+6KB2PC3tQdI9UJyw+DXZb3LvG4 K5XPI6yoDNAX+LCYL+JUhIDEolOtkgHRFO8kob55LXPKT3gv3m4p 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 d9b8c8b921be..bab64034a8d5 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 Thu Mar 16 14:13: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: 664076 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 D355EC6FD19 for ; Thu, 16 Mar 2023 14:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbjCPOOL (ORCPT ); Thu, 16 Mar 2023 10:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbjCPONp (ORCPT ); Thu, 16 Mar 2023 10:13:45 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA098A391 for ; Thu, 16 Mar 2023 07:13:24 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id b13so1834189ljf.6 for ; Thu, 16 Mar 2023 07:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678976004; 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=Qrr803nV2RNxyMhr4k1CujiqeMiu6xeEfZDomigDzlgOJ2+LAoow9y4SpnULqM533W JGYU4zjecXMNVzRMcYjhYBo9bJKzgh9fndduUqthz5eV7m0AegygBhQ+m1SwDg1hCTN/ rnHE2vUTqT5qun7CkRIHPNhcCN2biGs4H9UjkIKTUfCCMvjN4tOS2/1osalKAkFcJB+S 9GXXMgz+BHuHgPrKWIluWCd1qhoHJ6ZiQCleccrZYMrDoQe116QM7kTG4KQKrlbgq3Q3 hlL4xAJbs94Mc1ULnoRauUdmiuxvn0lHeBTU3GqdlA7B+wCkZXGaFUvQPY+eoSYTGGD1 b6Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678976004; 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=YssGjZiMbDr/uAld5IOhiH+3FbURA47exllC5E7XB2hC2ISJqlT0R5Q7Hfa3zqVn/e b8BKm9gIVQBr4q7xTHatfA+4g6ky6ozp3K0FtKABP+XG0JpPdrwXbmNh6FP/hN0CDlfi VNgZPXf7FM2o7Z1NjbtUd6eSZ4eXRVfHMO5CXX2AXKM4Eet+vO9gC5IlDxXSrSXuc1z4 fuOz/2GsB/5wUFw2qp/MUdBCHL3hS+lcrl9taaRmX3fC/IYuXN4hgkvln9p4KKFJA4L2 ol6CikqwfgrQxj0vtYyEsMCrbUukD+2qN+GaCM0I1ewVSx9H5mvf5+E4rdZ6UdUdQQ6j Dt/w== X-Gm-Message-State: AO0yUKXjOijCWiJ009weO2DfVlMCZvDqIP018F1/GGpEFiyY/6uKVNSo oDijGQo671uWKOvlw6UGBS2UxQ== X-Google-Smtp-Source: AK7set/UGvfpSQFBo90NawVNe6QbJ7gg6a+/gN9CBL5rHc7OuxYMSwd/oOp6n4BYEocyNvy2n8HwXA== X-Received: by 2002:a2e:be12:0:b0:298:a841:4d0f with SMTP id z18-20020a2ebe12000000b00298a8414d0fmr3091124ljq.52.1678976003979; Thu, 16 Mar 2023 07:13:23 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:23 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:13:03 +0100 Subject: [PATCH v2 14/14] arm64: dts: qcom: sm6375-pdx225: Add volume down GPIO key MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-14-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@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, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=1409; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lUoSxwe6wDxHMv1iTDzFHuYZxKLyt1OMfELUkCo9Rp0=; b=6DAUo0XuzRtK0oppQWVoexEKvP1e3HUzo7m6yHp02zNfdQCZy++x2swjD+iPpuCPGEqXhadgLXw1 vUFy4zVZC4oEvOr9UIOEQQso+Cesl5GsmGvY9LDCbFthxOsz9AIm 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"; };