From patchwork Fri Aug 12 10:12:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 596918 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 AAC22C25B0E for ; Fri, 12 Aug 2022 10:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238251AbiHLKNv (ORCPT ); Fri, 12 Aug 2022 06:13:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237974AbiHLKNW (ORCPT ); Fri, 12 Aug 2022 06:13:22 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA3CAB1BF for ; Fri, 12 Aug 2022 03:12:43 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 186-20020a1c02c3000000b003a34ac64bdfso4095599wmc.1 for ; Fri, 12 Aug 2022 03:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=/baD4T2Xvbw5aG3hrD8e631/CGqG+7CyLxE9ixUCKNA=; b=zF4+7WvPYPbP19vhZJfJU5/gMyjua4wMNYXUD0fdQV/O6VT0DCGgRSmhl1DUvvjTgZ NFLaV7CHJO3iMvinSJCO4bq/Yymo6qHrrWHpbOjE/dM1LDZ2wPIDg4Aod8CkwRMRpwk+ do2BUymZ/kGSvWx8zrSFhMXI+0OeJNKURKQGBrwosU9rkAV9MXE7o7HYAPJk8aEV0GZ6 YEcB/NLXYodRdvOF1JC3OE0vn+1sI5SWRJVYb8UGMPpIMajp0YmEfYVKENfsIv2flc1F slm4y5gdBu6lDQPrpXAWwWoRa7AHVQA4Mc5XIWoS0yQ5Z2IH+UBYpjUeAharCWQwMCLv h9jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=/baD4T2Xvbw5aG3hrD8e631/CGqG+7CyLxE9ixUCKNA=; b=8OBwudrZ/u4XOd9t5RwA6Yu+bINWeU8zh3cTya3U7lkoP52iReXieOatUCDrGMHpJw 5Na98BOSScOO0RYLwMIN60MFWTylKTXVZWB61IhRbU8E6cozTQn3QJWwmJLdYOsB/6r0 mFdJM0C3ANxDvpPRfP7iP9eSAopUGDUxEj6ShaiB0iUC5NEyoiH3r7AdbXLzavP+381X T5jLbSl9VQoYuJ+LZ8OjTA5Zyg5bc2DVVHqOtqvpoYrETx++ExkQmGWi7KEn4TrodJEU 85V0by9jgIEhzqOP8nlKnDmuOCtuvQD1Sy8+Vm10AERKN06x5vvVsY5/WfTbcx4PkZHg 8xuQ== X-Gm-Message-State: ACgBeo1a3MBWABvGPPLwxLSN3RTVJtYR2xUBD8EArtarvzVWXBBg4akP xBWIX6n82sKr/7T8R+8otZfsvw== X-Google-Smtp-Source: AA6agR5refm7abOpJRHUMi7R1wY5PeY6g6GVPeUjoVLj1v+XfGSFN14+EpCRZkHIDjyfAbRLHbQzXw== X-Received: by 2002:a05:600c:1e8f:b0:3a4:e0f0:4bad with SMTP id be15-20020a05600c1e8f00b003a4e0f04badmr2127432wmb.133.1660299162292; Fri, 12 Aug 2022 03:12:42 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id e25-20020a05600c219900b003a541d893desm2193204wme.38.2022.08.12.03.12.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 03:12:41 -0700 (PDT) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Maulik Shah Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v2 1/4] arm64: dts: qcom: sdm845: Reduce reg size for aoss_qmp Date: Fri, 12 Aug 2022 13:12:37 +0300 Message-Id: <20220812101240.1869605-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Like on the other platforms that provide RPMh stats, on SDM845, the aoss_qmp reg size needs to be reduced to its actual size of 0x400, otherwise it will overlap with the RPMh stats reg base, node that will be added later on. Signed-off-by: Abel Vesa --- No changes since v1. arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f0e286715d1b..5bea96a9ce06 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4836,7 +4836,7 @@ aoss_reset: reset-controller@c2a0000 { aoss_qmp: power-controller@c300000 { compatible = "qcom,sdm845-aoss-qmp", "qcom,aoss-qmp"; - reg = <0 0x0c300000 0 0x100000>; + reg = <0 0x0c300000 0 0x400>; interrupts = ; mboxes = <&apss_shared 0>; From patchwork Fri Aug 12 10:12:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 596917 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 429E0C25B0E for ; Fri, 12 Aug 2022 10:13:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238304AbiHLKNx (ORCPT ); Fri, 12 Aug 2022 06:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238220AbiHLKNa (ORCPT ); Fri, 12 Aug 2022 06:13:30 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A664ABF02 for ; Fri, 12 Aug 2022 03:12:46 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id b21-20020a05600c4e1500b003a32bc8612fso301667wmq.3 for ; Fri, 12 Aug 2022 03:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=6PlnIBUoC6w69T/PkaQ57uV9UcjokVo67ltYXeOmdTw=; b=ILzrRoIQ9aEUYRndgjQZU/vRVEvksDk/76BWsCnIcxWYCpuk+7TTChZeBE/9Z5xPPY Q3jeDHaJtVMMPJmzwmDt7JKiaozQcY1rA7IEMKaad7u9Xd1xNeQMbnoyzSn1jSc/57JL zXtoEaiK7MVqOnwEilg44kiI0mpAVR5szF5WOzCrhCNdYsNT5y3Y/JZ7nRVOXX95uKea soBbp+VkBKbqFRv37Pn76810GYnWSLbuScBc2mxhB8OvFl66HF3GMtIYDYHCHZx7Pcup /OIUSvaAp1qaY3IrVUjkPRAv4v82gJaP6xDT1VUjsp6JAV9/BiW8t080Ppcieq6TEMMN OPDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=6PlnIBUoC6w69T/PkaQ57uV9UcjokVo67ltYXeOmdTw=; b=Dq07E+k8JTm5gkVvy7wZivbiWFPuYParWug7WfNC65KEp0N7YJyZL6/K1so9udpwYJ dwiryt6rRWYh79/p5ZymWv754VjUBz7AG9nPFP+C4H2ByPrDn7tM7uQenmvi+CTlcID8 LFfjRMViLhA1Wwe0BVL/nL6/MJm1cNYeeBNBvCuRaE7Iqdgjw+P/xPVffZl/ECDpa936 w8dyFvdPFfFmjcwLcpTkN7cWSQnbiEnwyZGeGX90gD4VlASe/WQGOCIj3Rh0LJTVxkNZ 4HFIkP5Xm8XZISDIgASJCerCYAnyOa10hTooEdszxQ8kd1x4Z/ilwJ403QUHYWMWNUtu rQZA== X-Gm-Message-State: ACgBeo0QzQldeuiwGIog1RdBUz09ml3UPBMBcjIhArpJmr8lgUVRVkcJ e9k6EVRzs0kn53bb+lknOrfG1w== X-Google-Smtp-Source: AA6agR6urUu4cJ7lC76MKC4djtyGFfgFjj2UjRR9XzO9H7PeEVCUAA9AdaYrcMFImtWm4uS5uV2Ymg== X-Received: by 2002:a1c:44d5:0:b0:3a5:4fa3:b260 with SMTP id r204-20020a1c44d5000000b003a54fa3b260mr2122859wma.165.1660299165181; Fri, 12 Aug 2022 03:12:45 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id e25-20020a05600c219900b003a541d893desm2193204wme.38.2022.08.12.03.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 03:12:44 -0700 (PDT) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Maulik Shah Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v2 3/4] arm64: dts: qcom: sdm845: Add the RPMh stats node Date: Fri, 12 Aug 2022 13:12:39 +0300 Message-Id: <20220812101240.1869605-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220812101240.1869605-1-abel.vesa@linaro.org> References: <20220812101240.1869605-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SDM845 is a special case compared to the other platforms that use RPMh stats, since it only has 2 stats (aosd and cxsd), while the others have a 3rd one (ddr). So lets add the node but with a SDM845 dedicated compatible to make the driver aware of the different stats config. Signed-off-by: Abel Vesa --- Changed qcom,rpmh-stats-sdm845 to qcom,sdm845-rpmh-stats, as suggested by Krzysztof. arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5bea96a9ce06..67fe08b837be 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4851,6 +4851,11 @@ ebi_cdev: ebi { }; }; + sram@c3f0000 { + compatible = "qcom,sdm845-rpmh-stats"; + reg = <0 0x0c3f0000 0 0x400>; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c440000 0 0x1100>,