From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795643754; b=q0lPNS4BbkVj8YMNYdtMpWaZeMyUFjV3oKmQc8M7d0tB4vILxucQ5ekUZ8jf4PSq1ras xyWIjwIiX9icLYi2Y1R7yQuP14CV/bLAvWh3NU1DIYNNitkldYosEH/kiWEPqKHR6qgmz C8Xw7MNpKO0GIlWZddV9259LvoGZD/UFV7xiOdpnOx8pyaekuwarxV9h2rkKiOd7Umpr5 qKVYipor2e3qVgWHxmZ+4/PeC6Ss+4egG5Ix6lCHN2H+lO0C3zCMkdv/XYtMsrO3fl0wK jOtvYxncV1TlOvDVcq95fU8TnCjlIhr3JMdymfx5f4Ow/9YQuiAphgzOwQvgCdSRVaQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795643754; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=O5MpsdOOKt6WYnEOMw+jiBh7wLSAzt3pbyqRaYl9xCw=; b=ekZrrI5wca/RAo8mLekbyDc4INrHiNfwwc9k9ZWEQhrxPLIbhpSrykScjo5XWpnMZJK9 CbBayBli90HI5ac08R2LHXjcATIJO2qeW5tZHRCfHAWLPuzxtUBXsjcmOQtzGkvhoYNzp o3uhiab4hZrNfEWPYA98OHreYQ8qTWaccwS4bWOl6BfhA4IoXL2oDOP4L+n3yXV8ppsSn R086wmDuZ+/JVkBpJ/D96R+ZrlItEZzvs/ysEXqV5ONKXZAIXT3usNMxr9ZZBuApKjXvw FuQCTMhKx0Jq+30RBi+8XQeTC5GzRiO0/TQmSQhKtgvGm0Ly1/vG/99ViI+X8CqY2BQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QYdrHTrP; arc=none smtp.remote-ip=209.85.208.47 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5921E606A32E for ; Wed, 25 Nov 2026 21:55:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5921E606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QYdrHTrP Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-6bab10844b5so6768047a12.1 for ; Wed, 25 Nov 2026 13:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795643752; x=1796248552; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=O5MpsdOOKt6WYnEOMw+jiBh7wLSAzt3pbyqRaYl9xCw=; b=QYdrHTrPhMglMeTWmpJY8mRzOL8k6sKwd8JlnzXXPNBtCcJCpPgvDL0SxMbyvWXxPu 2rzNKPPunQctCkMUJg6ZeR1F8Iu5IXx6ShD4cMnYUEVF0UQUdtgMCKKRlrKo62xvbgtb s7Y+j3veXN3VOokGRGjoYtsAyJXBI9EPtjR7ltxOAOprTMrJ6NTdEMCD7aHsurKR6AE/ l/BHsNdeGaQ2zw8sAgUuRUtPJ339DGWibZRw6wpBHWhb6MAF/VLdpFLoajZNCKRDAjj1 HFWlfLH9JTmaPt7wNLzT9yEuQt72YW9JidIFcNNrPU8Pml6qOx3n6aXqC2Ab0TycnsSo Wfew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795643752; x=1796248552; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=O5MpsdOOKt6WYnEOMw+jiBh7wLSAzt3pbyqRaYl9xCw=; b=yp8o1bZXeA7rp24ns+knR3jA/r1ItThfYGkdoEcQoi/iufGcdA3JP8OeldE7TTNBTe 3qN1VP+D3mc5YKX8REETz6c5zuJ0gy1xgKHUkt6YItuigTF95DQfLX3EGi0Rq+S1bDSl 9oj/HSYnGrdDLIQMIsxHDKRe6hHwd8BFDoHJSvKVIeN5EIwBFdohic801Z3duq+p6UNg C5e459tVMpmB8UPSA98GhYqTwtqtqMhboZIudL3GZ3HlZso+9YyPA46hCGGRSzdlKy+W 59vJSYFm22Z21PHuLo+iz9fU3HcLLQEq9FeleqgBDetqHSaR/8rvmfFB61YrsaKoRofz 4/2A== X-Forwarded-Encrypted: i=1; AL+hErFn3pj4uIrGu8PHpNL+5nn4AH2aq5rzed4BC2M3Zu2n4iGaj9gVOTfFLPokQM5V8VB3apT8DlGFf0oQAuc=@vger.kernel.org X-Gm-Message-State: APuU4Z/8zbdkUhtUb3/pgoKofuUGSJS3VZCdTgh6hFis3KASQavJXldP k/W18OJ+D4OWQxqpgwW8zNc1H4QjENV0pIl8yR4C03YrZMUtmeVLZkc= X-Gm-Gg: AZFdTZd13JtMLeLfTRkoc4s7+LlGYV+X3YQVA4EI6+7G4pOo2qj+PZouUAZxNIPFtTc u3+LFFkmbxOvo7SOG0mpCsZ8YbKyAjSx2Mfvc6CQUD29aw+9LrvwgGvsWndRK/QGaVhXlWmm8gk f/GoIZD5TR2ZBL2sthad0RS3sUr6iUxQTf9GjprmQWQqf6OpAOdYkGk3GtnlTHCOfPboelsmMV1 COJb2pcrxp1Fgz9Do27gyf3KnpCDZRLL4EIc2KRax+RTgyRdFfeln3jeH4kXteezO5QM/gIMrZp zhoFI/NIn/VWCrtgwPLFQi/inGp9aFzobmCXUq1FKIZPRiF0NgQPHPooP9xJvrHIg4TD4MXXF39 HPzNE0LMARbdswDay5OX7avZIWjfc11Hp8d6vtCIfP1ZdUKRkQ1hLGiPQ1s89ANog4MyLSNHVcv wXoSeVIlXjx5HQE4JdKPgO8KXZEZvEa3muECLj5L0W6v5LUkFCk8v8G0bVZ2qysTKQYDMSUk8fT jft92AxUg4xGq7Oaw6NnspTO4zXwu1nm5ZPAlKhcy1E3ZC7H7lxu/jzQVAq5GkeNIcN3f4NpiJf pVk2M/ANnnRcnJ9jiHw6C/pJCQGXqkSa7DK4Y8ZHU6yiboOf5G7meNvI/XZ1KW5UXkJD82YcbMc QXGSjVtGjxMdtiGeRRU7xRWbxJw== X-Received: by 2002:a05:6402:370e:b0:6bb:b89:8ee2 with SMTP id 4fb4d7f45d1cf-6bb0b899043mr4209318a12.7.1795643751507; Wed, 25 Nov 2026 13:55:51 -0800 (PST) Received: from sohrab-omarchy.fritz.box (2a02-a44e-4ae7-1-c0e-6d5a-8ae2-915.fixed6.kpn.net. [2a02:a44e:4ae7:1:c0e:6d5a:8ae2:915]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ba370e77d8sm8608871a12.14.2026.11.25.13.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 13:55:51 -0800 (PST) From: Majid Hajiheidari To: Bjorn Andersson , Konrad Dybcio Cc: Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Viresh Kumar , =?UTF-8?q?Barnab=C3=A1s=20Cz=C3=A9m=C3=A1n?= , Roman Linev , 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 Message-ID: <20261125215550.1834075-1-majidhhdri@gmail.com> X-Mailer: git-send-email 2.56.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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