devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Wunderlich <linux@fw-web.de>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: Frank Wunderlich <frank-w@public-files.de>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org
Subject: [RFC v1 14/14] arm64: dts: mediatek: mt7988: add operating-points
Date: Tue, 29 Oct 2024 11:39:33 +0100	[thread overview]
Message-ID: <20241029103937.45852-15-linux@fw-web.de> (raw)
In-Reply-To: <20241029103937.45852-1-linux@fw-web.de>

From: Frank Wunderlich <frank-w@public-files.de>

Add operating points defining frequency/voltages of cpu cores.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 45 +++++++++++++++++++++--
 1 file changed, 41 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index e037854666c1..25669d498617 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -16,32 +16,69 @@ cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		cpu@0 {
+		cpu0: cpu@0 {
 			compatible = "arm,cortex-a73";
 			reg = <0x0>;
 			device_type = "cpu";
 			enable-method = "psci";
+			clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>,
+				 <&topckgen CLK_TOP_XTAL>;
+			clock-names = "cpu", "intermediate";
+			operating-points-v2 = <&cluster0_opp>;
 		};
 
-		cpu@1 {
+		cpu1: cpu@1 {
 			compatible = "arm,cortex-a73";
 			reg = <0x1>;
 			device_type = "cpu";
 			enable-method = "psci";
+			clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>,
+				 <&topckgen CLK_TOP_XTAL>;
+			clock-names = "cpu", "intermediate";
+			operating-points-v2 = <&cluster0_opp>;
 		};
 
-		cpu@2 {
+		cpu2: cpu@2 {
 			compatible = "arm,cortex-a73";
 			reg = <0x2>;
 			device_type = "cpu";
 			enable-method = "psci";
+			clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>,
+				 <&topckgen CLK_TOP_XTAL>;
+			clock-names = "cpu", "intermediate";
+			operating-points-v2 = <&cluster0_opp>;
 		};
 
-		cpu@3 {
+		cpu3: cpu@3 {
 			compatible = "arm,cortex-a73";
 			reg = <0x3>;
 			device_type = "cpu";
 			enable-method = "psci";
+			clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>,
+				 <&topckgen CLK_TOP_XTAL>;
+			clock-names = "cpu", "intermediate";
+			operating-points-v2 = <&cluster0_opp>;
+		};
+
+		cluster0_opp: opp-table-0 {
+			compatible = "operating-points-v2";
+			opp-shared;
+			opp00 {
+				opp-hz = /bits/ 64 <800000000>;
+				opp-microvolt = <850000>;
+			};
+			opp01 {
+				opp-hz = /bits/ 64 <1100000000>;
+				opp-microvolt = <850000>;
+			};
+			opp02 {
+				opp-hz = /bits/ 64 <1500000000>;
+				opp-microvolt = <850000>;
+			};
+			opp03 {
+				opp-hz = /bits/ 64 <1800000000>;
+				opp-microvolt = <900000>;
+			};
 		};
 	};
 
-- 
2.43.0


  parent reply	other threads:[~2024-10-29 10:39 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-29 10:39 [RFC v1 00/14] Add some mt7988 DTS labels and new nodes Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 01/14] arm64: dts: mediatek: mt7988: add missing label for apmixedsys Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno
2024-10-29 10:39 ` [RFC v1 02/14] arm64: dts: mediatek: mt7988: add labels for i2c nodes Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 03/14] arm64: dts: mediatek: mt7988: add labels for usb nodes Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 04/14] arm64: dts: mediatek: mt7988: add serial labels Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 05/14] arm64: dts: mediatek: mt7988: add label for pwm node Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 06/14] arm64: dts: mediatek: mt7988: add label for efuse Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 07/14] arm64: dts: mediatek: mt7988: add mmc support Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 08/14] arm64: dts: mediatek: mt7988: add fixed regulators for 1v8 and 3v3 Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno
2024-10-29 10:39 ` [RFC v1 09/14] arm64: dts: mediatek: mt7988: extend efuse node Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 10/14] arm64: dts: mediatek: mt7988: add lvts node Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno
2024-11-27 15:29     ` Aw: " Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 11/14] arm64: dts: mediatek: mt7988: add thermal-zone Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno
2024-10-29 10:39 ` [RFC v1 12/14] arm64: dts: mediatek: mt7988: add reserved memory Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno
2024-11-27 15:48     ` Aw: " Frank Wunderlich
2024-10-29 10:39 ` [RFC v1 13/14] arm64: dts: mediatek: mt7988: add mcu-sys node for cpu Frank Wunderlich
2024-10-29 10:39 ` Frank Wunderlich [this message]
2024-11-27 13:34   ` [RFC v1 14/14] arm64: dts: mediatek: mt7988: add operating-points AngeloGioacchino Del Regno
2024-11-27 15:06     ` Aw: " Frank Wunderlich
2024-11-27 10:33 ` Aw: [RFC v1 00/14] Add some mt7988 DTS labels and new nodes Frank Wunderlich

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=20241029103937.45852-15-linux@fw-web.de \
    --to=linux@fw-web.de \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frank-w@public-files.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.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;
as well as URLs for NNTP newsgroup(s).