mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Frank Wunderlich <linux@fw-web.de>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.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: Re: [RFC v1 14/14] arm64: dts: mediatek: mt7988: add operating-points
Date: Wed, 27 Nov 2024 14:34:45 +0100	[thread overview]
Message-ID: <6660a681-c02a-443a-a1f2-14af5b4477eb@collabora.com> (raw)
In-Reply-To: <20241029103937.45852-15-linux@fw-web.de>

Il 29/10/24 11:39, Frank Wunderlich ha scritto:
> 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 {

Where are those cpuX labels used? I don't see any usage.

>   			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 {

...But you can also be consistent with other devicetrees and follow the pattern
for the node names of the OPP entries.

opp-800000000
opp-1100000000
...etc

Cheers,
Angelo

> +				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>;
> +			};
>   		};
>   	};
>   



  reply	other threads:[~2024-11-27 13:34 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 ` [RFC v1 14/14] arm64: dts: mediatek: mt7988: add operating-points Frank Wunderlich
2024-11-27 13:34   ` AngeloGioacchino Del Regno [this message]
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=6660a681-c02a-443a-a1f2-14af5b4477eb@collabora.com \
    --to=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=linux@fw-web.de \
    --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

all inboxes | Powered by JetHome®