All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2020-12-29  6:31 ` Andrew-sh.Cheng
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew-sh.Cheng @ 2020-12-29  6:31 UTC (permalink / raw)
  To: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel
  Cc: Andrew-sh.Cheng, srv_heupstream

From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>

Correct dts node name in patch v1: performance-domain
This patch depends on [1] and [2].

[1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
[2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
index 69d45c7b31f1..a907ee7e650a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
@@ -39,6 +39,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x000>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -49,6 +50,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x100>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -59,6 +61,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x200>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -69,6 +72,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x300>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -79,6 +83,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x400>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -89,6 +94,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x500>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -99,6 +105,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x600>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -109,6 +116,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x700>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -194,6 +202,12 @@
 		compatible = "simple-bus";
 		ranges;
 
+		performance: performance-controller@0011bc00 {
+			compatible = "mediatek,cpufreq-hw";
+			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
+			#performance-domain-cells = <1>;
+		};
+
 		gic: interrupt-controller@c000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <4>;
-- 
2.12.5
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2020-12-29  6:31 ` Andrew-sh.Cheng
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew-sh.Cheng @ 2020-12-29  6:31 UTC (permalink / raw)
  To: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel
  Cc: Andrew-sh.Cheng, srv_heupstream

From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>

Correct dts node name in patch v1: performance-domain
This patch depends on [1] and [2].

[1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
[2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
index 69d45c7b31f1..a907ee7e650a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
@@ -39,6 +39,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x000>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -49,6 +50,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x100>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -59,6 +61,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x200>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -69,6 +72,7 @@
 			compatible = "arm,cortex-a55";
 			reg = <0x300>;
 			enable-method = "psci";
+			performance-domains = <&performance 0>;
 			clock-frequency = <1701000000>;
 			next-level-cache = <&l2_0>;
 			capacity-dmips-mhz = <530>;
@@ -79,6 +83,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x400>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -89,6 +94,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x500>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -99,6 +105,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x600>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -109,6 +116,7 @@
 			compatible = "arm,cortex-a76";
 			reg = <0x700>;
 			enable-method = "psci";
+			performance-domains = <&performance 1>;
 			clock-frequency = <2171000000>;
 			next-level-cache = <&l2_1>;
 			capacity-dmips-mhz = <1024>;
@@ -194,6 +202,12 @@
 		compatible = "simple-bus";
 		ranges;
 
+		performance: performance-controller@0011bc00 {
+			compatible = "mediatek,cpufreq-hw";
+			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
+			#performance-domain-cells = <1>;
+		};
+
 		gic: interrupt-controller@c000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <4>;
-- 
2.12.5
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
  2020-12-29  6:31 ` Andrew-sh.Cheng
  (?)
@ 2022-02-10 14:46   ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 14:46 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi Andrew,

On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> 
> Correct dts node name in patch v1: performance-domain
> This patch depends on [1] and [2].
> 
> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/

Those two series are now merged, so no dependencies missing for this patch any
longer.

Please rebase this patch, as there are some conflicts. I've already verified it,
and after you rebase I can send a reviewed-by.

Thanks,
Nícolas

> 
> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> index 69d45c7b31f1..a907ee7e650a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> @@ -39,6 +39,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x000>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -49,6 +50,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x100>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -59,6 +61,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x200>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -69,6 +72,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x300>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -79,6 +83,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x400>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -89,6 +94,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x500>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -99,6 +105,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x600>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -109,6 +116,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x700>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -194,6 +202,12 @@
>  		compatible = "simple-bus";
>  		ranges;
>  
> +		performance: performance-controller@0011bc00 {
> +			compatible = "mediatek,cpufreq-hw";
> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> +			#performance-domain-cells = <1>;
> +		};
> +
>  		gic: interrupt-controller@c000000 {
>  			compatible = "arm,gic-v3";
>  			#interrupt-cells = <4>;
> -- 
> 2.12.5
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-10 14:46   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 14:46 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi Andrew,

On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> 
> Correct dts node name in patch v1: performance-domain
> This patch depends on [1] and [2].
> 
> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/

Those two series are now merged, so no dependencies missing for this patch any
longer.

Please rebase this patch, as there are some conflicts. I've already verified it,
and after you rebase I can send a reviewed-by.

Thanks,
Nícolas

> 
> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> index 69d45c7b31f1..a907ee7e650a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> @@ -39,6 +39,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x000>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -49,6 +50,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x100>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -59,6 +61,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x200>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -69,6 +72,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x300>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -79,6 +83,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x400>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -89,6 +94,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x500>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -99,6 +105,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x600>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -109,6 +116,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x700>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -194,6 +202,12 @@
>  		compatible = "simple-bus";
>  		ranges;
>  
> +		performance: performance-controller@0011bc00 {
> +			compatible = "mediatek,cpufreq-hw";
> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> +			#performance-domain-cells = <1>;
> +		};
> +
>  		gic: interrupt-controller@c000000 {
>  			compatible = "arm,gic-v3";
>  			#interrupt-cells = <4>;
> -- 
> 2.12.5
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
> 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-10 14:46   ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 14:46 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi Andrew,

On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> 
> Correct dts node name in patch v1: performance-domain
> This patch depends on [1] and [2].
> 
> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/

Those two series are now merged, so no dependencies missing for this patch any
longer.

Please rebase this patch, as there are some conflicts. I've already verified it,
and after you rebase I can send a reviewed-by.

Thanks,
Nícolas

> 
> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> index 69d45c7b31f1..a907ee7e650a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> @@ -39,6 +39,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x000>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -49,6 +50,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x100>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -59,6 +61,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x200>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -69,6 +72,7 @@
>  			compatible = "arm,cortex-a55";
>  			reg = <0x300>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 0>;
>  			clock-frequency = <1701000000>;
>  			next-level-cache = <&l2_0>;
>  			capacity-dmips-mhz = <530>;
> @@ -79,6 +83,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x400>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -89,6 +94,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x500>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -99,6 +105,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x600>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -109,6 +116,7 @@
>  			compatible = "arm,cortex-a76";
>  			reg = <0x700>;
>  			enable-method = "psci";
> +			performance-domains = <&performance 1>;
>  			clock-frequency = <2171000000>;
>  			next-level-cache = <&l2_1>;
>  			capacity-dmips-mhz = <1024>;
> @@ -194,6 +202,12 @@
>  		compatible = "simple-bus";
>  		ranges;
>  
> +		performance: performance-controller@0011bc00 {
> +			compatible = "mediatek,cpufreq-hw";
> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> +			#performance-domain-cells = <1>;
> +		};
> +
>  		gic: interrupt-controller@c000000 {
>  			compatible = "arm,gic-v3";
>  			#interrupt-cells = <4>;
> -- 
> 2.12.5
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
  2022-02-10 14:46   ` Nícolas F. R. A. Prado
  (?)
@ 2022-02-10 18:56     ` Nícolas F. R. A. Prado
  -1 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 18:56 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi again,
please see my comment below.

On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
> Hi Andrew,
> 
> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> > From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> > 
> > Correct dts node name in patch v1: performance-domain
> > This patch depends on [1] and [2].
> > 
> > [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> > [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
> 
> Those two series are now merged, so no dependencies missing for this patch any
> longer.
> 
> Please rebase this patch, as there are some conflicts. I've already verified it,
> and after you rebase I can send a reviewed-by.
> 
> Thanks,
> Nícolas
> 
> > 
> > Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> > ---
> >  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > index 69d45c7b31f1..a907ee7e650a 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > @@ -39,6 +39,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x000>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -49,6 +50,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x100>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -59,6 +61,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x200>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -69,6 +72,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x300>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -79,6 +83,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x400>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -89,6 +94,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x500>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -99,6 +105,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x600>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -109,6 +116,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x700>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -194,6 +202,12 @@
> >  		compatible = "simple-bus";
> >  		ranges;
> >  
> > +		performance: performance-controller@0011bc00 {

Actually there is a warning being introduced here on dtbs_check:

	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
		From schema: [...]/dtschema/schemas/simple-bus.yaml

So you should also change the address to not start with zeros: 11bc00

Thanks,
Nícolas

> > +			compatible = "mediatek,cpufreq-hw";
> > +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> > +			#performance-domain-cells = <1>;
> > +		};
> > +
> >  		gic: interrupt-controller@c000000 {
> >  			compatible = "arm,gic-v3";
> >  			#interrupt-cells = <4>;
> > -- 
> > 2.12.5
> > _______________________________________________
> > Linux-mediatek mailing list
> > Linux-mediatek@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-mediatek
> > 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-10 18:56     ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 18:56 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi again,
please see my comment below.

On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
> Hi Andrew,
> 
> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> > From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> > 
> > Correct dts node name in patch v1: performance-domain
> > This patch depends on [1] and [2].
> > 
> > [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> > [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
> 
> Those two series are now merged, so no dependencies missing for this patch any
> longer.
> 
> Please rebase this patch, as there are some conflicts. I've already verified it,
> and after you rebase I can send a reviewed-by.
> 
> Thanks,
> Nícolas
> 
> > 
> > Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> > ---
> >  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > index 69d45c7b31f1..a907ee7e650a 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > @@ -39,6 +39,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x000>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -49,6 +50,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x100>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -59,6 +61,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x200>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -69,6 +72,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x300>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -79,6 +83,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x400>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -89,6 +94,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x500>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -99,6 +105,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x600>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -109,6 +116,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x700>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -194,6 +202,12 @@
> >  		compatible = "simple-bus";
> >  		ranges;
> >  
> > +		performance: performance-controller@0011bc00 {

Actually there is a warning being introduced here on dtbs_check:

	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
		From schema: [...]/dtschema/schemas/simple-bus.yaml

So you should also change the address to not start with zeros: 11bc00

Thanks,
Nícolas

> > +			compatible = "mediatek,cpufreq-hw";
> > +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> > +			#performance-domain-cells = <1>;
> > +		};
> > +
> >  		gic: interrupt-controller@c000000 {
> >  			compatible = "arm,gic-v3";
> >  			#interrupt-cells = <4>;
> > -- 
> > 2.12.5
> > _______________________________________________
> > Linux-mediatek mailing list
> > Linux-mediatek@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-mediatek
> > 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-10 18:56     ` Nícolas F. R. A. Prado
  0 siblings, 0 replies; 11+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-02-10 18:56 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream

Hi again,
please see my comment below.

On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
> Hi Andrew,
> 
> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
> > From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
> > 
> > Correct dts node name in patch v1: performance-domain
> > This patch depends on [1] and [2].
> > 
> > [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
> > [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
> 
> Those two series are now merged, so no dependencies missing for this patch any
> longer.
> 
> Please rebase this patch, as there are some conflicts. I've already verified it,
> and after you rebase I can send a reviewed-by.
> 
> Thanks,
> Nícolas
> 
> > 
> > Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
> > ---
> >  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > index 69d45c7b31f1..a907ee7e650a 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> > @@ -39,6 +39,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x000>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -49,6 +50,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x100>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -59,6 +61,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x200>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -69,6 +72,7 @@
> >  			compatible = "arm,cortex-a55";
> >  			reg = <0x300>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 0>;
> >  			clock-frequency = <1701000000>;
> >  			next-level-cache = <&l2_0>;
> >  			capacity-dmips-mhz = <530>;
> > @@ -79,6 +83,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x400>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -89,6 +94,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x500>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -99,6 +105,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x600>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -109,6 +116,7 @@
> >  			compatible = "arm,cortex-a76";
> >  			reg = <0x700>;
> >  			enable-method = "psci";
> > +			performance-domains = <&performance 1>;
> >  			clock-frequency = <2171000000>;
> >  			next-level-cache = <&l2_1>;
> >  			capacity-dmips-mhz = <1024>;
> > @@ -194,6 +202,12 @@
> >  		compatible = "simple-bus";
> >  		ranges;
> >  
> > +		performance: performance-controller@0011bc00 {

Actually there is a warning being introduced here on dtbs_check:

	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
		From schema: [...]/dtschema/schemas/simple-bus.yaml

So you should also change the address to not start with zeros: 11bc00

Thanks,
Nícolas

> > +			compatible = "mediatek,cpufreq-hw";
> > +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
> > +			#performance-domain-cells = <1>;
> > +		};
> > +
> >  		gic: interrupt-controller@c000000 {
> >  			compatible = "arm,gic-v3";
> >  			#interrupt-cells = <4>;
> > -- 
> > 2.12.5
> > _______________________________________________
> > Linux-mediatek mailing list
> > Linux-mediatek@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-mediatek
> > 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
  2022-02-10 18:56     ` Nícolas F. R. A. Prado
  (?)
@ 2022-02-17 10:34       ` AngeloGioacchino Del Regno
  -1 siblings, 0 replies; 11+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-17 10:34 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream,
	Nícolas F. R. A. Prado

Il 10/02/22 19:56, Nícolas F. R. A. Prado ha scritto:
> Hi again,
> please see my comment below.
> 
> On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
>> Hi Andrew,
>>
>> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
>>> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
>>>
>>> Correct dts node name in patch v1: performance-domain
>>> This patch depends on [1] and [2].
>>>
>>> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
>>> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
>>
>> Those two series are now merged, so no dependencies missing for this patch any
>> longer.
>>
>> Please rebase this patch, as there are some conflicts. I've already verified it,
>> and after you rebase I can send a reviewed-by.
>>
>> Thanks,
>> Nícolas
>>
>>>
>>> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
>>> ---
>>>   arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>>>   1 file changed, 14 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> index 69d45c7b31f1..a907ee7e650a 100644
>>> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> @@ -39,6 +39,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x000>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -49,6 +50,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x100>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -59,6 +61,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x200>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -69,6 +72,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x300>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -79,6 +83,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x400>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -89,6 +94,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x500>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -99,6 +105,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x600>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -109,6 +116,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x700>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -194,6 +202,12 @@
>>>   		compatible = "simple-bus";
>>>   		ranges;
>>>   
>>> +		performance: performance-controller@0011bc00 {
> 
> Actually there is a warning being introduced here on dtbs_check:
> 
> 	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
> 		From schema: [...]/dtschema/schemas/simple-bus.yaml
> 
> So you should also change the address to not start with zeros: 11bc00
> 
> Thanks,
> Nícolas
> 
>>> +			compatible = "mediatek,cpufreq-hw";
>>> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
>>> +			#performance-domain-cells = <1>;
>>> +		};
>>> +
>>>   		gic: interrupt-controller@c000000 {
>>>   			compatible = "arm,gic-v3";
>>>   			#interrupt-cells = <4>;
>>> -- 
>>> 2.12.5

Hello Andrew,

are you still interested in upstreaming this patch?
If you are, please update it with the suggested changes.

Thank you,
Angelo

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-17 10:34       ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 11+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-17 10:34 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream,
	Nícolas F. R. A. Prado

Il 10/02/22 19:56, Nícolas F. R. A. Prado ha scritto:
> Hi again,
> please see my comment below.
> 
> On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
>> Hi Andrew,
>>
>> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
>>> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
>>>
>>> Correct dts node name in patch v1: performance-domain
>>> This patch depends on [1] and [2].
>>>
>>> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
>>> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
>>
>> Those two series are now merged, so no dependencies missing for this patch any
>> longer.
>>
>> Please rebase this patch, as there are some conflicts. I've already verified it,
>> and after you rebase I can send a reviewed-by.
>>
>> Thanks,
>> Nícolas
>>
>>>
>>> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
>>> ---
>>>   arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>>>   1 file changed, 14 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> index 69d45c7b31f1..a907ee7e650a 100644
>>> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> @@ -39,6 +39,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x000>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -49,6 +50,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x100>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -59,6 +61,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x200>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -69,6 +72,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x300>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -79,6 +83,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x400>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -89,6 +94,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x500>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -99,6 +105,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x600>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -109,6 +116,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x700>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -194,6 +202,12 @@
>>>   		compatible = "simple-bus";
>>>   		ranges;
>>>   
>>> +		performance: performance-controller@0011bc00 {
> 
> Actually there is a warning being introduced here on dtbs_check:
> 
> 	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
> 		From schema: [...]/dtschema/schemas/simple-bus.yaml
> 
> So you should also change the address to not start with zeros: 11bc00
> 
> Thanks,
> Nícolas
> 
>>> +			compatible = "mediatek,cpufreq-hw";
>>> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
>>> +			#performance-domain-cells = <1>;
>>> +		};
>>> +
>>>   		gic: interrupt-controller@c000000 {
>>>   			compatible = "arm,gic-v3";
>>>   			#interrupt-cells = <4>;
>>> -- 
>>> 2.12.5

Hello Andrew,

are you still interested in upstreaming this patch?
If you are, please update it with the suggested changes.

Thank you,
Angelo

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes
@ 2022-02-17 10:34       ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 11+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-17 10:34 UTC (permalink / raw)
  To: Andrew-sh.Cheng
  Cc: Rob Herring, Matthias Brugger, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel, srv_heupstream,
	Nícolas F. R. A. Prado

Il 10/02/22 19:56, Nícolas F. R. A. Prado ha scritto:
> Hi again,
> please see my comment below.
> 
> On Thu, Feb 10, 2022 at 09:47:04AM -0500, Nícolas F. R. A. Prado wrote:
>> Hi Andrew,
>>
>> On Tue, Dec 29, 2020 at 02:31:11PM +0800, Andrew-sh.Cheng wrote:
>>> From: "Andrew-sh.Cheng" <andrew-sh.cheng@mediatek.com>
>>>
>>> Correct dts node name in patch v1: performance-domain
>>> This patch depends on [1] and [2].
>>>
>>> [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html
>>> [2]https://patchwork.kernel.org/project/linux-mediatek/patch/1607586516-6547-3-git-send-email-hector.yuan@mediatek.com/
>>
>> Those two series are now merged, so no dependencies missing for this patch any
>> longer.
>>
>> Please rebase this patch, as there are some conflicts. I've already verified it,
>> and after you rebase I can send a reviewed-by.
>>
>> Thanks,
>> Nícolas
>>
>>>
>>> Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
>>> ---
>>>   arch/arm64/boot/dts/mediatek/mt8192.dtsi | 14 ++++++++++++++
>>>   1 file changed, 14 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> index 69d45c7b31f1..a907ee7e650a 100644
>>> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
>>> @@ -39,6 +39,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x000>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -49,6 +50,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x100>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -59,6 +61,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x200>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -69,6 +72,7 @@
>>>   			compatible = "arm,cortex-a55";
>>>   			reg = <0x300>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 0>;
>>>   			clock-frequency = <1701000000>;
>>>   			next-level-cache = <&l2_0>;
>>>   			capacity-dmips-mhz = <530>;
>>> @@ -79,6 +83,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x400>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -89,6 +94,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x500>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -99,6 +105,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x600>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -109,6 +116,7 @@
>>>   			compatible = "arm,cortex-a76";
>>>   			reg = <0x700>;
>>>   			enable-method = "psci";
>>> +			performance-domains = <&performance 1>;
>>>   			clock-frequency = <2171000000>;
>>>   			next-level-cache = <&l2_1>;
>>>   			capacity-dmips-mhz = <1024>;
>>> @@ -194,6 +202,12 @@
>>>   		compatible = "simple-bus";
>>>   		ranges;
>>>   
>>> +		performance: performance-controller@0011bc00 {
> 
> Actually there is a warning being introduced here on dtbs_check:
> 
> 	soc: 'performance-controller@0011bc00' does not match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$', 'pinctrl-[0-9]+'
> 		From schema: [...]/dtschema/schemas/simple-bus.yaml
> 
> So you should also change the address to not start with zeros: 11bc00
> 
> Thanks,
> Nícolas
> 
>>> +			compatible = "mediatek,cpufreq-hw";
>>> +			reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;
>>> +			#performance-domain-cells = <1>;
>>> +		};
>>> +
>>>   		gic: interrupt-controller@c000000 {
>>>   			compatible = "arm,gic-v3";
>>>   			#interrupt-cells = <4>;
>>> -- 
>>> 2.12.5

Hello Andrew,

are you still interested in upstreaming this patch?
If you are, please update it with the suggested changes.

Thank you,
Angelo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-02-17 10:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29  6:31 [PATCH v2] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes Andrew-sh.Cheng
2020-12-29  6:31 ` Andrew-sh.Cheng
2022-02-10 14:46 ` Nícolas F. R. A. Prado
2022-02-10 14:46   ` Nícolas F. R. A. Prado
2022-02-10 14:46   ` Nícolas F. R. A. Prado
2022-02-10 18:56   ` Nícolas F. R. A. Prado
2022-02-10 18:56     ` Nícolas F. R. A. Prado
2022-02-10 18:56     ` Nícolas F. R. A. Prado
2022-02-17 10:34     ` AngeloGioacchino Del Regno
2022-02-17 10:34       ` AngeloGioacchino Del Regno
2022-02-17 10:34       ` AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.