Linux Power Management development
 help / color / mirror / Atom feed
From: Majid Hajiheidari <majidhhdri@gmail.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: "Abel Vesa" <abelvesa@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Barnabás Czémán" <barnabas.czeman@mainlining.org>,
	"Roman Linev" <admin@mswin.me>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] arm64: dts: qcom: sm6125: Add cpufreq-hw and CPU idle states
Date: Wed, 25 Nov 2026 22:55:48 +0100	[thread overview]
Message-ID: <20261125215550.1834075-1-majidhhdri@gmail.com> (raw)

SM6125 has no CPU frequency scaling and no CPU idle states in mainline:
the CPUs stay at the bootloader clock and only ever enter WFI.

Register addresses and idle latencies come from the downstream
"trinket" device tree of a Xiaomi Mi A3 (laurel-sprout), where the CPU
low power levels match the SM6115 values exactly.

Tested on the Mi A3 on next-20261113: cpufreq 300 MHz - 1.80/2.02 GHz
with schedutil, WFI plus per-CPU power collapse in cpuidle with rising
usage counters.

The binding patch from v1 was applied by Viresh [2] and is no longer
part of the series; patch 1 needs it for dtbs_check.

Open from the v1 discussion [3]: Barnabás Czémán questions binding
GPLL0_OUT_EARLY as the "alternate" clock. The driver only takes the
initial (300 MHz) row from it, and downstream SM6125 (trinket) does not
bind any clock to its cpufreq node, while downstream SM6115 binds GPLL0.
So there is no hardware proof for that clock on SM6125. The binding
requires both clocks today, so they are kept in this version; if the
clocks should become optional for these SoCs, I will respin without
them. Barnabás's own mails did not reach lore, so [3] quotes them.

This is meant to go together with Roman Linev's SM6125 TSENS series [1],
which adds #cooling-cells to the CPUs and per-CPU cooling maps that stay
inert until a cpufreq driver registers cooling devices. That is why
#cooling-cells is not added here.

Not done yet: cluster idle states (PSCI OSI parameters need checking) and
an energy model.

Changes in v2:
- Patch 1: cpufreq-hw regions are 0x1400 long, not 0x1000 (Barnabás)
- Dropped the binding patch, applied by Viresh
- Link to v1: https://lore.kernel.org/r/20261115003158.391171-1-majidhhdri@gmail.com/

Based on next-20261113; also applies cleanly to qcom arm64-for-7.5.

[1] https://lore.kernel.org/r/a3f071d3-6082-47a1-bb00-9d8e72fa3cdd@mswin.me/
[2] https://lore.kernel.org/r/avvnF7zQfYhF11so@vireshk-B250M-D3H/
[3] https://lore.kernel.org/r/20261117173547.1656090-1-majidhhdri@gmail.com/

Majid Hajiheidari (2):
  arm64: dts: qcom: sm6125: Add cpufreq-hw node
  arm64: dts: qcom: sm6125: Add CPU idle states

 arch/arm64/boot/dts/qcom/sm6125.dtsi | 61 ++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)


base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
prerequisite-patch-id: a01c38e015a1f9bc178b74a4a2451f6170eafb54
-- 
2.56.0


             reply	other threads:[~2026-11-25 21:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 21:55 Majid Hajiheidari [this message]
2026-11-25 21:55 ` [PATCH v2 1/2] arm64: dts: qcom: sm6125: Add cpufreq-hw node Majid Hajiheidari
2026-11-25 21:55 ` [PATCH v2 2/2] arm64: dts: qcom: sm6125: Add CPU idle states Majid Hajiheidari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125215550.1834075-1-majidhhdri@gmail.com \
    --to=majidhhdri@gmail.com \
    --cc=abelvesa@kernel.org \
    --cc=admin@mswin.me \
    --cc=andersson@kernel.org \
    --cc=barnabas.czeman@mainlining.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox