From patchwork Wed Aug 10 10:57:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12940441 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 F2385C3F6B0 for ; Wed, 10 Aug 2022 10:57:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231678AbiHJK52 (ORCPT ); Wed, 10 Aug 2022 06:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbiHJK50 (ORCPT ); Wed, 10 Aug 2022 06:57:26 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8E757221 for ; Wed, 10 Aug 2022 03:57:24 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id az6-20020a05600c600600b003a530cebbe3so799916wmb.0 for ; Wed, 10 Aug 2022 03:57:24 -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=H+cCd/oCZzsaL3SLtp3P98P4HpXIWIWHyxYJ/oYAqVs=; b=yS2nQcxbDmZ0SCqPxlXpfAzI9ErOhoB8mg1eWnrLfZVuyA/SMjl8Sh/s+aQAGHFLbf R2nsO3wC6vxxzmPQvMVL3e4YRLeB3I2DpIl/CCH2T4bQBVjgUblaOHJEKfN1mpeaHuLD HboIIckFkxYwO27WOcu+iplJmWMMigiq+XaI0rSGSv6bwxLkuVdfpjnbIMFMJBGFvzUW VTFbg21Fm2TXp3NWqGfmBwAe+lTK6LrOybYbvsasJ24iccFl5lHgb3COzp5TM3rFNWZH FO9J9em88hwMyYPqjv/dtNd4P9/czpTtPQFGrbtFVfe4vgp4CvLT0firyENIX1E8GC+u cSGw== 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=H+cCd/oCZzsaL3SLtp3P98P4HpXIWIWHyxYJ/oYAqVs=; b=CL8JfeYdepsapxEpospX6SgCwpeBZGPQBhbsnMuon83KcB6HgkgFJk6yiN4v7z9ysJ 0OHpCmQscIRarUH5WN8TATAd3Ffk3fO2Q5sUZ7gf48MMyLZI7DwcXjAikheMXPkm34Bk xHOrgneCWYNyLie7jZNM3/+rs9yRX/NSWRuxgoOcQt2MnlGxYYroonolrcWAn2jF7yYN f0MM5tmeBL+DVXvDUidAU/siF69nDJ0IrLEmjK9eW9lkZzj8k6hvgmMPIsHCN+HXk71G 1Y/gqGxy2tSLqkDlKr0f5AsAbxzkXbfsUU7D1Gjep6EsM4SnAwWsZwSxJQGlVAEsPR7I FPLg== X-Gm-Message-State: ACgBeo3EtfCPFkiuGbr4oK/2VdZGJBIVVYV9zMi1XV2u2nHUeU9/AaRE dPjUWNW/BY1Ra7qSrLHRMhSunw== X-Google-Smtp-Source: AA6agR5iDxXkIjNtDiCKXbPwQ347O0MKtbJwsYVMgkFBBJ1Tmq4An8mZy12GvIH7kZBLUvpHNI5hpw== X-Received: by 2002:a05:600c:3b18:b0:3a5:2490:cb2d with SMTP id m24-20020a05600c3b1800b003a52490cb2dmr1998307wms.183.1660129043326; Wed, 10 Aug 2022 03:57:23 -0700 (PDT) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id bd6-20020a05600c1f0600b003a53731f273sm2101446wmb.31.2022.08.10.03.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 03:57:22 -0700 (PDT) From: abel.vesa@linaro.org To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Maulik Shah Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Abel Vesa Subject: [PATCH 3/4] arm64: dts: qcom: sdm845: Add the RPMh stats node Date: Wed, 10 Aug 2022 13:57:17 +0300 Message-Id: <20220810105718.2137015-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220810105718.2137015-1-abel.vesa@linaro.org> References: <20220810105718.2137015-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Abel Vesa 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 --- 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..5bcdc17f9d3e 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,rpmh-stats-sdm845"; + reg = <0 0x0c3f0000 0 0x400>; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c440000 0 0x1100>,