From patchwork Thu Dec 3 23:29:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 336970 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp708298ilb; Thu, 3 Dec 2020 15:31:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBZbjosiikzYe7iPVa6HcaJqMtya3liISVKo5huKT2RFSA+Iz+DScGUA3LTIj7qHZ06m4h X-Received: by 2002:a17:906:3704:: with SMTP id d4mr4714096ejc.338.1607038261050; Thu, 03 Dec 2020 15:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607038261; cv=none; d=google.com; s=arc-20160816; b=U0DL1CLYpOxdirhqlYCxXMJDAH2HizUQ5L9b22tHhJcskcKt//TDwAyDRyUOTCodw5 7gdKYNTriA/nkVPY11A8frU188EqwDQrrKsk3pLQ1q9P0fRV21nx39OTmnaYK8dZZjFw OLBiaws3Axy7vR/pnXB194fpfep64Yqp+m6Hvvr2JYJzT4+/v/LMsjghNtRUGXjdpIsI 8B93dch8e+mmieiGgP0OHbm4NX1lm8WDcXalGQDQNhTOSmY7oeHcHgG+iutswSe+hyLO cU/dkpRruAFesq1VFDzZ7gHRecYUQHKIryxAOMKYuTzrOW0n+oLHHjbOFjqN8KPbfh6B 2Vqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AKu/jMI1IpzvPqYsdG0R1IGMZmwZbkPfv1HEYZbnPkQ=; b=rng+8znCdP8JymPtvkKpWMKP1U7flZep8ozHb7ejj0tiwF9BRcerDPyEJS98ATUyOr oA4DNWNdDBcP6kkBqrEDWRWJBpdSt7gZqsDmeZbxUKSUQ2SE/wQ/MQXW+MbeGSxdWxHv CrQnYfk4oA4Pr5cwbcp/AQoGesRjBECt18Dxbumy9Icxti+xOV8smqD2xwa9by2k6Slm Yjd43U4xsCqrdXq1E86nrcFX2buglS5jJ6A4z+3ffvy2+LrxM80B7FwWcDIwThUMYtj2 X9rGfAGph/P8OwQbDlFyXdZrFzzsN2SbcJYNvtzo53oXSP21vDu3W8XnaSKXh3xS4rVw TwDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prClNp+2; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si1980209edy.67.2020.12.03.15.31.00; Thu, 03 Dec 2020 15:31:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prClNp+2; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbgLCXaR (ORCPT + 15 others); Thu, 3 Dec 2020 18:30:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgLCXaR (ORCPT ); Thu, 3 Dec 2020 18:30:17 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D31BDC061A4F for ; Thu, 3 Dec 2020 15:29:36 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id s9so4467987ljo.11 for ; Thu, 03 Dec 2020 15:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AKu/jMI1IpzvPqYsdG0R1IGMZmwZbkPfv1HEYZbnPkQ=; b=prClNp+2PRo4zcz5Ms9MfAtzP2ea8/tWA0PnKBMoiEz1uKJjVCU0TqFdv2S2pNWcVm tr1ObxS2oHx8cJyH1sloT+W6ty5s0AtrSX1h7WanJIBYrM6GJUR/q7CO6WxdzoOPv1mx ERrWh0YLheG7DHATFSDEJjBuV9JmASTFZYeKLRjy62xSQPF+/tVQZo/j4X8zZFUasTHU g3DtBEHoomjhRTlwkoT+jYlhzc9YtiKCLDFj5Rb8CpntJfgt6yWA/xDsGqTz6nvkyf+b s7PznPQglX0NW0M+qnpz/OwTvdSRxF1K4iikRJBgjYDDIbDmRaz9bxEwPKu4aD+QgfjF CfeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AKu/jMI1IpzvPqYsdG0R1IGMZmwZbkPfv1HEYZbnPkQ=; b=jEagimZ3SqWKx0R4mGFeSFx7pwiBvdiMPiKakNyIUoKiLXzz7lW8YwG78YsV6Nlh0V /QAr1Mby55I0YQLInqZUOn3qWlLtajR4Sp6mLWhzgzAIklPX2wqvx+4rVLeOFIJqgI6m VpNW9BcG2duvtoIZD3c/+k9ZlnaSuv/27BYFu0B7dSLJalbfvaCDb2yGKqP9J1nepnw7 Vut5EsK9BQSS+ljYefb5TBo9m3Exlk793cjluZsIJPLmbQfhA8fHglt3gdZlZzW2rdxh InhS6/ybeltYQ4Ge0d4vo5jYN5iCaRTbq4uanCuVDnRVM25s82Pgzz+jv/IhMrmoG2z8 pzAA== X-Gm-Message-State: AOAM532O8HCGyEzx3+2nBgsgvM48uMqk8L2LH5zoQaVd0KzT5263kLvf CZ4amM48GTGCpH4l4QVU3AWrdvewAL5NuQ== X-Received: by 2002:a2e:9915:: with SMTP id v21mr2143121lji.460.1607038175358; Thu, 03 Dec 2020 15:29:35 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id p196sm1010895lfa.68.2020.12.03.15.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 15:29:34 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sm8250: add CPU capacity and dynamic power properties Date: Fri, 4 Dec 2020 02:29:32 +0300 Message-Id: <20201203232932.1004345-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify the relative CPU capacity of all SM8250 AP cores. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index bdd9bd303415..7fe71d8ad8d8 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -95,6 +95,8 @@ CPU0: cpu@0 { compatible = "qcom,kryo485"; reg = <0x0 0x0>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <100>; next-level-cache = <&L2_0>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; @@ -112,6 +114,8 @@ CPU1: cpu@100 { compatible = "qcom,kryo485"; reg = <0x0 0x100>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <100>; next-level-cache = <&L2_100>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; @@ -126,6 +130,8 @@ CPU2: cpu@200 { compatible = "qcom,kryo485"; reg = <0x0 0x200>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <100>; next-level-cache = <&L2_200>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; @@ -140,6 +146,8 @@ CPU3: cpu@300 { compatible = "qcom,kryo485"; reg = <0x0 0x300>; enable-method = "psci"; + capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <100>; next-level-cache = <&L2_300>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; @@ -154,6 +162,8 @@ CPU4: cpu@400 { compatible = "qcom,kryo485"; reg = <0x0 0x400>; enable-method = "psci"; + capacity-dmips-mhz = <1894>; + dynamic-power-coefficient = <533>; next-level-cache = <&L2_400>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; @@ -168,6 +178,8 @@ CPU5: cpu@500 { compatible = "qcom,kryo485"; reg = <0x0 0x500>; enable-method = "psci"; + capacity-dmips-mhz = <1894>; + dynamic-power-coefficient = <533>; next-level-cache = <&L2_500>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; @@ -183,6 +195,8 @@ CPU6: cpu@600 { compatible = "qcom,kryo485"; reg = <0x0 0x600>; enable-method = "psci"; + capacity-dmips-mhz = <1894>; + dynamic-power-coefficient = <533>; next-level-cache = <&L2_600>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; @@ -197,6 +211,8 @@ CPU7: cpu@700 { compatible = "qcom,kryo485"; reg = <0x0 0x700>; enable-method = "psci"; + capacity-dmips-mhz = <1894>; + dynamic-power-coefficient = <642>; next-level-cache = <&L2_700>; qcom,freq-domain = <&cpufreq_hw 2>; #cooling-cells = <2>;