From patchwork Sat Dec 9 21:55:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752067 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DuUk7UQM" 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 D3E4C10D for ; Sat, 9 Dec 2023 13:56:04 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2ca09601127so42066251fa.1 for ; Sat, 09 Dec 2023 13:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158962; x=1702763762; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VCiH7VJZwpltElSwE2uiX4KsLg2Kdu2u9uVH8b3tZTE=; b=DuUk7UQMuAzeNfb6th9ygejU/qZKf4rJ0ZBWX7n+m+U5as+45/TdqU1KJoIOhskeO0 rzeCL1ofoKX/EfLR3ODm7JGmcF90aaoQAKQ9RswEMVfaOPM9MHaoDO4fs0kfXmvRBM6O yh1xc0tiqvPiXdfz+elT9V9r7DCLDRZsSm0DaXsWQ0LCTXeCJgz37RrFNyB3/G2sbh0z OfwKBTeuXS3gHSmpqlQYXQFZ1lum4xIAEKud1Y5umtJbT3rKaygl71exAuA9+sgQuWiS 5r3HIITGntwv6oHS/sX+u/TjHZC6j7tBRnjecosC2Og2VOGmr7JfSoYToqbNJYF3b5HZ UsmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158962; x=1702763762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VCiH7VJZwpltElSwE2uiX4KsLg2Kdu2u9uVH8b3tZTE=; b=pXC6E3bWX8dEYim+W3bYMs/AEakI5IhMk7D8ywp3MWfdgts+0auF4CU1eEWlkc4Guy DTxVX/lkxCSKiycdZg1FrqU/yDKHI7NZvFOS6P9G77mVidqpcsghCMo8NPxqm2G90j3s 673m16ciwg7aPCxkkr8NYGkLEhWoqLgbgaJ3PvPYEw4cZQv+9sj791GqqlRl1XuqQ2Qn JCOkKyoESSeyTnKZDD49YoZ+jRtlj1vufQDaOEQiXA/XdDzY0QbyslsjzjlmBfJ8vp6N SWjOwSGXvq4osDOlYa1c6H5RE3SZrZKXdWZZVcQgj595YPcMkOf1DZWZwupoDgCMTEyx TzOQ== X-Gm-Message-State: AOJu0Yzm0yyRwb1myKTpbyNMkaQR8wsoQ7V968/8Qw5k0Dg8zfdTLDXz 3kxgJxLdnRZTQQExuPTXWvm8xwbHE+dII8nK2IM= X-Google-Smtp-Source: AGHT+IG4I7nJ9kJ9XEWjT4j9Uf7hn29TI+AjcVDCvuEEjgVnlt2L/UHjNHdGSl2xJ/noGoVAo+gm0g== X-Received: by 2002:a2e:3a09:0:b0:2ca:db6:a13 with SMTP id h9-20020a2e3a09000000b002ca0db60a13mr785573lja.58.1702158962402; Sat, 09 Dec 2023 13:56:02 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:01 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: soc: qcom: stats: add compatible for SM8150 platform Date: Sun, 10 Dec 2023 00:55:58 +0300 Message-Id: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The RPMh stats on the SM8150 platform have 3 stat slots (unlike sdm845), but still doesn't have DDR sleep stats (unlike other generic platforms). Add SoC-specific compatible string. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml index 686a7ef2f48a..9cd75bedc7d2 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml @@ -21,6 +21,7 @@ properties: enum: - qcom,rpmh-stats - qcom,sdm845-rpmh-stats + - qcom,sm8150-rpmh-stats - qcom,rpm-stats # For older RPM firmware versions with fixed offset for the sleep stats - qcom,apq8084-rpm-stats From patchwork Sat Dec 9 21:56:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752066 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lBoFVRlE" 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 8CCA111F for ; Sat, 9 Dec 2023 13:56:07 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ca2573d132so39917111fa.0 for ; Sat, 09 Dec 2023 13:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158965; x=1702763765; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Iqjo5dHisDRwrhKSHqJTPFQ5wOEs+diDPVCxtZ4wynw=; b=lBoFVRlEXC02haX04GCWKepLwzKRAI0Zw/eE2D/3XnG+7Vk/AbgoBLxnp5qOD2r1YW gccqgB50cmjaRzmPIopaxEX7JhMR19j+6WSALJ+TC+tvuU3UWEyirQHzKBmZOVpk2Eb7 DEnQTtWFG7+stBExj4qKIoloWQxyoDTEoVTSoLvu83e44k9pCtxrbw4/X+/M2dfyCuJi w8lPlaZRKJM0ZlyzHw0ydjlHMUkVlcWSHA1m7+EkRIxVFBFBaKucmFxWUC73moTG3g5E /4TH2Z6qchrX12Dh5nXnHODNS2rUnrbG9ghbo0/0zkQvtp2p9OvawWy4i3Xp126NWhOz rOjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158965; x=1702763765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Iqjo5dHisDRwrhKSHqJTPFQ5wOEs+diDPVCxtZ4wynw=; b=hlDLtt9HjJn97E782Uj4cETUkVGSrIlAwpKyY0iJ3HJxao8YQDJvOmNA6tTo8zWjNz Q/caW9ri1bmuTmOD+N1zvAbKE5cHC1pX9LPcQoA74JmhC557zqZ5YTX5XNSGpA2/oiSC 5929efEPLPVAaST8oq/Z0DWDZ41xj4N0WeTdrHO5CRW3OV190TwP7JdD25W+Q8KLyLww H5g1bIDX4vgxKE2dYpnxMQ/a8V1GVvrOcEyp+O6KHT6mcLYfCOdMQCLwQ9lzLNLGVcB7 YA8lhx4i1R04xEfxyxTD+FmPHhtKyZ72LEDntqQMRfVuDFgBnd/ecQ0MGM1mglZW4yrs JgYA== X-Gm-Message-State: AOJu0YyVeN8FNA7sa+05kwHDTZAPIWfsNE0D38Itc9DsIO0g90ACNudc +8DQyqnAQRhoAPqcgFa9NS05Ug== X-Google-Smtp-Source: AGHT+IFubAjWZ4do8wQKj0af641r5+JD+IPoRZQF6ZK1TTErrrW6ML9sa5dMf7REXgAo6IcdWIKv/g== X-Received: by 2002:a2e:8041:0:b0:2ca:cb5:2ed8 with SMTP id p1-20020a2e8041000000b002ca0cb52ed8mr902219ljg.103.1702158965566; Sat, 09 Dec 2023 13:56:05 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:04 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: sm8150: use SoC-specific compat for RPMh stats Date: Sun, 10 Dec 2023 00:56:01 +0300 Message-Id: <20231209215601.3543895-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> References: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The SM8150 platform doesn't support DDR sleep stats, so it needs SoC-specific compat string for the RPMh stats data. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 3cba87e00123..fb41f91cefc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3950,7 +3950,7 @@ aoss_qmp: power-management@c300000 { }; sram@c3f0000 { - compatible = "qcom,rpmh-stats"; + compatible = "qcom,sm8150-rpmh-stats"; reg = <0 0x0c3f0000 0 0x400>; };