[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7a563716-a7c6-446d-b66d-bc71c6207ef6@collabora.com>
Date: Tue, 20 May 2025 13:27:23 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Frank Wunderlich <linux@...web.de>, Andrew Lunn <andrew@...n.ch>,
Vladimir Oltean <olteanv@...il.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Matthias Brugger <matthias.bgg@...il.com>
Cc: Frank Wunderlich <frank-w@...lic-files.de>,
Arınç ÜNAL <arinc.unal@...nc9.com>,
Landen Chao <Landen.Chao@...iatek.com>, DENG Qingfang <dqfext@...il.com>,
Sean Wang <sean.wang@...iatek.com>, Daniel Golle <daniel@...rotopia.org>,
Lorenzo Bianconi <lorenzo@...nel.org>, Felix Fietkau <nbd@....name>,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH v2 06/14] arm64: dts: mediatek: mt7988: add cci node
Il 16/05/25 20:01, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w@...lic-files.de>
>
> Add cci devicetree node for cpu frequency scaling.
>
> Signed-off-by: Daniel Golle <daniel@...rotopia.org>
> Signed-off-by: Frank Wunderlich <frank-w@...lic-files.de>
> ---
> arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 33 +++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> index ab6fc09940b8..64466acb0e71 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
> @@ -12,6 +12,35 @@ / {
> #address-cells = <2>;
> #size-cells = <2>;
>
> + cci: cci {
> + compatible = "mediatek,mt8183-cci";
While you can keep the mediatek,mt8183-cci fallback, this needs its own compatible
as "mediatek,mt7988-cci", therefore, I had to drop this patch from the ones that I
picked.
Please add the new compatible both here and in the binding.
Cheers,
Angelo
> + clocks = <&mcusys CLK_MCU_BUS_DIV_SEL>,
> + <&topckgen CLK_TOP_XTAL>;
> + clock-names = "cci", "intermediate";
> + operating-points-v2 = <&cci_opp>;
> + };
> +
> + cci_opp: opp-table-cci {
> + compatible = "operating-points-v2";
> + opp-shared;
> + opp-480000000 {
> + opp-hz = /bits/ 64 <480000000>;
> + opp-microvolt = <850000>;
> + };
> + opp-660000000 {
> + opp-hz = /bits/ 64 <660000000>;
> + opp-microvolt = <850000>;
> + };
> + opp-900000000 {
> + opp-hz = /bits/ 64 <900000000>;
> + opp-microvolt = <850000>;
> + };
> + opp-1080000000 {
> + opp-hz = /bits/ 64 <1080000000>;
> + opp-microvolt = <900000>;
> + };
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -25,6 +54,7 @@ cpu0: cpu@0 {
> <&topckgen CLK_TOP_XTAL>;
> clock-names = "cpu", "intermediate";
> operating-points-v2 = <&cluster0_opp>;
> + mediatek,cci = <&cci>;
> };
>
> cpu1: cpu@1 {
> @@ -36,6 +66,7 @@ cpu1: cpu@1 {
> <&topckgen CLK_TOP_XTAL>;
> clock-names = "cpu", "intermediate";
> operating-points-v2 = <&cluster0_opp>;
> + mediatek,cci = <&cci>;
> };
>
> cpu2: cpu@2 {
> @@ -47,6 +78,7 @@ cpu2: cpu@2 {
> <&topckgen CLK_TOP_XTAL>;
> clock-names = "cpu", "intermediate";
> operating-points-v2 = <&cluster0_opp>;
> + mediatek,cci = <&cci>;
> };
>
> cpu3: cpu@3 {
> @@ -58,6 +90,7 @@ cpu3: cpu@3 {
> <&topckgen CLK_TOP_XTAL>;
> clock-names = "cpu", "intermediate";
> operating-points-v2 = <&cluster0_opp>;
> + mediatek,cci = <&cci>;
> };
>
> cluster0_opp: opp-table-0 {
Powered by blists - more mailing lists