Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp946779lqt; Tue, 19 Mar 2024 08:24:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOMnlS9ZzdBOBJPsrs7HalY0rEIbpK7O4dsXr72X6tcDRE8tRoWOdq7Jpdqfat2GuYIL6cUeE1RPjb/wVbaOK82xwup0VvNKHkyBrVzQ== X-Google-Smtp-Source: AGHT+IHS2DAUQBvg91Eb9/esrbrz+CnvbYH35FmcsStzY6locXZIIMU52oTJ5N7bUULPxhIETfuQ X-Received: by 2002:a50:9fea:0:b0:568:a5b5:8591 with SMTP id c97-20020a509fea000000b00568a5b58591mr3182758edf.1.1710861858951; Tue, 19 Mar 2024 08:24:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710861858; cv=pass; d=google.com; s=arc-20160816; b=ywu8Fd7QXKyYELYPthOSFx44Hh3dOwdtLozvG3b+GlINLnpU/so29WdTEBJXL/kipJ aMVXNNTyIkuldeMgo1Nor6J0jLMK31rs5+6QLQ3f6o9Ueonijt8Ab+eUmg9UULjm/80q XsgFyJEhIyAUUREYPdy81sMH06n9a3myElzL4G0vRqRIa9ZrmpfKZ/6SfKRqFWa1TAig EaUcFK6cN7Wlb12vnFFC8cx4AkcmTgpEKPY1p2rE/gSl9L8VAqPjb1OuixNJpK8ouQcg cJOE2BVmJ9KDa4ICTxpWJE5zhfCtIn+vfFIamT+3bBwDOK59jQG5gFB/+V0X4pIST3jJ ogww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=amnhH4kpz12iAR2SQLC2D4EUn09rR2EQgE5Pf8UZGSM=; fh=zVakp2Or81UzM9L3c3D/AFHZnjl9vGKtd5bp1En3Xig=; b=fjCKLObl8c8DRfcEnu8brc4jnAFMXGnc4fH+FZIZr1qxYODaAiVFU8DmRHvUdR2bK/ 5OzDX7VvodXFZg6CVjkZFsOWHwdjwTv1BW/PRW3Vq8ChfoZI99atbh7usQ7lRZxHUmx6 UuEYHJ7QoC1QNoOVDmtkasRZqrCA8TI6F/jPEjI2MXgKwLwmWB/qa8WRpplTBSaxeCk5 rtHnmA4+kmksrGuDhipehQmG546/fL00ZkuHCHsK5mo36bg1qQseqfSJQu9AekJ7NNee mT693rxeguo8RKhcTUxwa8pKVWfBD7IwBrrktWOi2ro7SdiZmQyb4Nd1J3HHLS36SMH2 vjDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lW5XdMLI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cs15-20020a0564020c4f00b00568c171cc3fsi3277649edb.19.2024.03.19.08.24.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 08:24:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lW5XdMLI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7CF301F234C2 for ; Tue, 19 Mar 2024 15:24:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3446281AB3; Tue, 19 Mar 2024 15:23:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lW5XdMLI" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46B3F8120F for ; Tue, 19 Mar 2024 15:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710861822; cv=none; b=jPRwYZMrmjPviZZnKqA52dNSX7YDuTVbUK0EDVSFLW9zaBwXb9dYLG/Y5p8fsU+V4lb4fkFgHuzvqh7a/AGZkZFyoih3sj5aaxThMehZjlCdjBoSygqTDiMO7uGXTUUtvyg6icPEYZdj+mTkmIPBRU7Q/WPrRTVgUmR21OnOnLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710861822; c=relaxed/simple; bh=uKpCtzI7ahl9I9jgSngSsWE8FtJ/DlXwSzfDNoaAdXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=mBhx2li1zomPxSSLsQ4dclgBC3tdsxxfh+E0BYKa1bMQqyRKQCEVjbOCANrgvTwi8WGFeUDlybrIXKsOnsnLb8NnwhCGV41eSFoc5b+Vf4c9Ypo/rrphGr0Lp7BH/Wb/XtqqFfGB8e5YznUQsHwUKhjPU8fc9cCTPy1qj+YkNiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lW5XdMLI; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-514ba4e5640so1009334e87.1 for ; Tue, 19 Mar 2024 08:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710861817; x=1711466617; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=amnhH4kpz12iAR2SQLC2D4EUn09rR2EQgE5Pf8UZGSM=; b=lW5XdMLIt0ZEXHBQScnrqMkn4ecZSuuVYoz7AjJEgUTm2OQ/Fa4nt0uaTmSoJHKpHC ArvMV5h44b27DLKgddzj3yOU2Y0Az23V8SP5PlWTrvUxLaP9N9VsJgGFxzCl4FS9WA9h NHG2FGaV+l+ET8DfMod+qcSsEGo0aOSY85Dfmt9S4opKLi3kcQhB7m40vEpgCt1iRors zLznJjkpknP++sb8qc87P2o3OyuWU8NBnirX7QU2Qfl//EZ7nN9SOnBjMAZrtw34wT02 lNEy3jmhYvZJHOotUPG3E0IBWWEVqE6dYl3qs8fD37nyKClesSbRadkGskIVg48bk5/Y fbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710861817; x=1711466617; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=amnhH4kpz12iAR2SQLC2D4EUn09rR2EQgE5Pf8UZGSM=; b=EZmafUli/08urotQaQ5RpBKTBuMQDT29+vFyI/zs9EfeMAQZb6T1I2vk8KIX5dleyt eg4Xqdb9TfSj9iczCIq534pqu/7Km3Ka+Qff9wxmoNU8XclZs/e/x43HHUr9NmmJq2Qa ovSpvd+Cn39+wxjQGmM3Csr1sLU+/DslWYD1AM+6SVEOB/rLX6B1oEdz90PqPw21TwFi nQBhQKnp5kzNYGp9is6Xlac/xnEFOsceBpxbJdQw82tqtGWga35ZSaR97fspro+dEQxY qPC1ziNyhv7glCmKHiN1ODA02DksBm+IkPrGIGqORXVhcq9DjfaPqqOPGJvHbzdcFgLd W0CQ== X-Forwarded-Encrypted: i=1; AJvYcCUdI1jW6m3faRYAp0AM7jOKXS0i9IEwkaUPjO5EtzCL1RBb1YiYIjQg6malPFK1mH1NfuJQ1J/TurFniaiHKIwc3LB+1HoGXdmgUluy X-Gm-Message-State: AOJu0YyIr72hOZRr5GwpXJ85XzhlgKxrENDRFKFU47ZIwo8kKLcpMftd jgRFw9a2uxBmptEEXCADQ9WWHSuEh/VN2FJ2znGJ607dzrzPU1PUudQVKTVJiQ4= X-Received: by 2002:a19:e04c:0:b0:513:5862:a525 with SMTP id g12-20020a19e04c000000b005135862a525mr1132825lfj.9.1710861817427; Tue, 19 Mar 2024 08:23:37 -0700 (PDT) Received: from [127.0.1.1] (netpanel-87-246-222-29.pol.akademiki.lublin.pl. [87.246.222.29]) by smtp.gmail.com with ESMTPSA id t28-20020a192d5c000000b005135170ed0bsm2028198lft.22.2024.03.19.08.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 08:23:36 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 16:23:33 +0100 Subject: [PATCH] arm64: dts: qcom: sc8280xp: Fill in EAS properties Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240319-topic-8280_eas-v1-1-c605b4ea063d@linaro.org> X-B4-Tracking: v=1; b=H4sIAPSt+WUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDY0NL3ZL8gsxkXQsjC4P41MRi3RQDoyQLY1NzSwvjVCWgpoKi1LTMCrC B0bG1tQBy7j1HYAAAAA== To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Replace the bogus capacity-dmips-mhz values and add the measured dynamic-power-coefficient values. The power numbers were measured by matters much more precise than the laggy and cache-y pmic_glink battery data, though the reported values were only accurate to 10mA. But that shouldn't be an issue, especially for the fat and power-hungry X1Cs and given that *each SoC unit* has somewhat different frequency-voltage maps. X1C cluster: 940 kHz, 596 mV, 434 mW, 663 Cx 1056 kHz, 612 mV, 463 mW, 565 Cx 1171 kHz, 628 mV, 502 mW, 574 Cx 1286 kHz, 644 mV, 534 mW, 540 Cx 1401 kHz, 660 mV, 580 mW, 550 Cx 1516 kHz, 688 mV, 630 mW, 529 Cx 1632 kHz, 712 mV, 690 mW, 533 Cx 1747 kHz, 728 mV, 722 mW, 503 Cx 1862 kHz, 752 mV, 787 mW, 504 Cx 1977 kHz, 776 mV, 855 mW, 503 Cx 2073 kHz, 792 mV, 913 mW, 504 Cx 2169 kHz, 812 mV, 989 mW, 514 Cx 2284 kHz, 856 mV, 1250 mW, 611 Cx 2400 kHz, 900 mV, 1441 mW, 626 Cx 2496 kHz, 932 mV, 1600 mW, 636 Cx 2592 kHz, 964 mV, 1790 mW, 653 Cx 2688 kHz, 1000 mV, 2020 mW, 673 Cx 2803 kHz, 1040 mV, 2292 mW, 687 Cx 2899 kHz, 1076 mV, 2572 mW, 706 Cx 2995 kHz, 1108 mV, 2850 mW, 721 Cx A78C cluster: 403 kHz, 576 mV, 180 mW, 584 Cx 499 kHz, 576 mV, 200 mW, 605 Cx 595 kHz, 576 mV, 220 mW, 612 Cx 691 kHz, 576 mV, 230 mW, 541 Cx 806 kHz, 600 mV, 250 mW, 471 Cx 902 kHz, 620 mV, 270 mW, 444 Cx 1017 kHz, 640 mV, 290 mW, 409 Cx 1113 kHz, 652 mV, 310 mW, 401 Cx 1209 kHz, 668 mV, 320 mW, 363 Cx 1324 kHz, 700 mV, 490 mW, 600 Cx 1440 kHz, 724 mV, 523 mW, 554 Cx 1555 kHz, 800 mV, 660 mW, 558 Cx 1670 kHz, 800 mV, 780 mW, 639 Cx 1785 kHz, 804 mV, 910 mW, 711 Cx 1881 kHz, 824 mV, 941 mW, 663 Cx 1996 kHz, 856 mV, 980 mW, 601 Cx 2112 kHz, 880 mV, 1020 mW, 559 Cx 2227 kHz, 908 mV, 1090 mW, 535 Cx 2342 kHz, 932 mV, 1230 mW, 552 Cx 2438 kHz, 956 mV, 1351 mW, 559 Cx Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index a5b194813079..8d17d8e718ae 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -50,7 +50,8 @@ CPU0: cpu@0 { reg = <0x0 0x0>; clocks = <&cpufreq_hw 0>; enable-method = "psci"; - capacity-dmips-mhz = <602>; + capacity-dmips-mhz = <981>; + dynamic-power-coefficient = <549>; next-level-cache = <&L2_0>; power-domains = <&CPU_PD0>; power-domain-names = "psci"; @@ -77,7 +78,8 @@ CPU1: cpu@100 { reg = <0x0 0x100>; clocks = <&cpufreq_hw 0>; enable-method = "psci"; - capacity-dmips-mhz = <602>; + capacity-dmips-mhz = <981>; + dynamic-power-coefficient = <549>; next-level-cache = <&L2_100>; power-domains = <&CPU_PD1>; power-domain-names = "psci"; @@ -99,7 +101,8 @@ CPU2: cpu@200 { reg = <0x0 0x200>; clocks = <&cpufreq_hw 0>; enable-method = "psci"; - capacity-dmips-mhz = <602>; + capacity-dmips-mhz = <981>; + dynamic-power-coefficient = <549>; next-level-cache = <&L2_200>; power-domains = <&CPU_PD2>; power-domain-names = "psci"; @@ -121,7 +124,8 @@ CPU3: cpu@300 { reg = <0x0 0x300>; clocks = <&cpufreq_hw 0>; enable-method = "psci"; - capacity-dmips-mhz = <602>; + capacity-dmips-mhz = <981>; + dynamic-power-coefficient = <549>; next-level-cache = <&L2_300>; power-domains = <&CPU_PD3>; power-domain-names = "psci"; @@ -144,6 +148,7 @@ CPU4: cpu@400 { clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <590>; next-level-cache = <&L2_400>; power-domains = <&CPU_PD4>; power-domain-names = "psci"; @@ -166,6 +171,7 @@ CPU5: cpu@500 { clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <590>; next-level-cache = <&L2_500>; power-domains = <&CPU_PD5>; power-domain-names = "psci"; @@ -188,6 +194,7 @@ CPU6: cpu@600 { clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <590>; next-level-cache = <&L2_600>; power-domains = <&CPU_PD6>; power-domain-names = "psci"; @@ -210,6 +217,7 @@ CPU7: cpu@700 { clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; + dynamic-power-coefficient = <590>; next-level-cache = <&L2_700>; power-domains = <&CPU_PD7>; power-domain-names = "psci"; --- base-commit: 226d3c72fcde130a99d760895ebdd20e78e02cb5 change-id: 20240319-topic-8280_eas-d02b8357983e Best regards, -- Konrad Dybcio