From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795643754; b=JPxHZfbKWUgkJHSAWL0lBrcnvFgXJ4Jy5VVKRLQx3YTKhQgI9HBRWMCA770OkfNxa6qu h/eEnvDwcQPkN5CpNrAgFSYLqimouo2eGsdcdWX5XRCUt5NOhrol499Cub9DTvHZRj+4w dsmvBT6+B2zr+KsFUJRbonn29aitQ2TzCYlqf0Lg98nJBbBUgJ1DIDLQMwhwpQxL/CnCx 7esCSZdSxnmETyy10kNxXhUTsb7aRio19pxMO4zpVa+XkIUc9sda/oxdILe27XlJqfntM xZ8m+ETJ1CiSqZQhqtVAAZX0RUWhLzWwQedHflOANy9ggQLw4Ad5DY7iNTBm9Nxu9Eg== 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=q7Zz5C3s1OJgmCJShZieQcLJIKfYy85hns3KUgqxLqksb2+pdG0FjloPoaz8J4caDYWo iL5XNAKN0iBq+by0TZvgVAGbQH+v+of7pk026mluEZa0pc6dxjQ15i1j20lr6cvy4AntC o+ibcfKfldcUc2uVAdovgtGL/EcVdpoM+WWFzOpAbPK1Shjg5eD2B4TKrwtVzYFEDwLAd VcYBQ/QcCOkPrlWwAJ5c2c74u5jcNU/6bvchC3bVpqRMYhYfer5XJN1B7bA9aMsvYdOLw 1dhkI+ePAVJPxVj/Y9jooQqI6k9Bg8q39ADWhO2nD1uXH15vOz/qS5McYnE0A+SC3YA== 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.52 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 57C4F606A327 for ; Wed, 25 Nov 2026 21:55:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 57C4F606A327 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-f52.google.com with SMTP id 4fb4d7f45d1cf-6b87a1a2babso13074005a12.0 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=BSYd2xMQ1myXWkzAe1jNShkXygDc40a4Eb/qQ/gLqHlAWtBfIj3QwiyPMRy0SFDUeG 4tpsGwJqB9CzHaXEfAtLpmRb23DCQYzlmuwfeGXkhyR0/k70uevkAaImZ+4bSIvNPDYd bt9jMRiq/oyE6j7wUFIjdIjcUStePkx6pdgA/a5rUjBtXDwHHaTOpK1H0ap+QLBiKmQ9 jtOC80NxciBL2DOEFLgfNC7ObqxzJNT6cB2wErFdZseU/ExPPCBE4BAKIBg/wLmkVpUD nXD8bLF+6bmVjejX+hjrw13hWqM2dtTts/uu0A3VrrvUpvqGfiEMIRE5GAsz29HV0Xzs M6qg== X-Forwarded-Encrypted: i=1; AL+hErFFe4XbaHMTk5DMhamE0ZKB7kFSxXfr0tO38i5Y4zlq8i3VfHXllhnVmzF8aaTobaSAM37Qm31ziJHR@vger.kernel.org X-Gm-Message-State: APuU4Z9KAXcCM02uRGnpTUNonAEOXMGs0jQbkFpIORQsLmIF9n0/bXny 7NFAVmHyix7s7UOLdDlYWkVhEMrl6kGrWTI77+/kzPPJLvDWdKw9oAA= X-Gm-Gg: AZFdTZcrLoOWx3QaN1Z4O3GmzkdwLbKOf6KiVUaXMHeJIjAAoftshD6KAmS980QupFo shJSind5fDZRhQy4TSCfGygdpIIKb6gvy7/25Hrbe1VwKaRLWebzaHUbwuN80yI0MgPefOnd7aU ArG5QDkW3nTwINCo544T9zNyVfGDMM8ZGQum8D5lvdXtCDL/ui6+tVtbuNANKsD1DFrx/D/iMSe sxRlq4jkFAY63nWHV7n+eLWynoC++OZendNOjMLjYMa0ZCKgQSyjqaaaVqyq/CDepNf4y0ifug5 1fMIA24UMlNwCSwmyIB7A3/wTiIaf6wzCwB2mpUK3LkCkFD33LuQJVxmhLHeHjbJtl+ePYk3Uy4 P+23sjocbJgrYCPsPiCDSC9PpaspS/Yp40+DMoS+BMG+YVVyfMGG6FLjlOCWybIDSg9PWdcSjCK WNlLAKPQYcMm/cEN4Imkii7i6RwsVCZIqVRsY/66P5Czp2+gKfweDUmulOuvbG+KZDnV1dWQEHK 7b+UC72eZ+urUnENiDifoFnx/bT1NHV0FwkDiXO4Ga1GFxjIj9QBD5zyMY+GPvah6fDrcjFcliZ FyxAKm9qlyOJQiS1/pWUApKU0UzEjUWY2wt6ck31AFZtLtCfLBhglbHsSD8ysL9UOaweFQXGajG xPTixSpC/6Y7IEOZ6T+mhW5jBJQ== 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: devicetree@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