Skip to contentSkip to conversation

ARM: dts: imx7ulp: Add cpu clock-frequency property

PATCH In review Anson Huang 2 participants 4 messages Nov 5, 2019 – Dec 4, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx7ulp: Add cpu clock-frequency property

Add "clock-frequency" property to avoid below warning on i.MX7ULP:

[    0.011762] /cpus/cpu@0 missing clock-frequency property
---
 arch/arm/boot/dts/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7ulp.dtsi +1 -0
index d37a192..87b2237 100644
@@ -41,6 +41,7 @@
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <0>;
+			clock-frequency = <500210526>;
 		};
 	};
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Anson Huang

Add "clock-frequency" property to avoid below warning on i.MX7ULP:

[    0.011762] /cpus/cpu@0 missing clock-frequency property
---
 arch/arm/boot/dts/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7ulp.dtsi +0 -0
index d37a192..87b2237 100644

arch/arm/boot/dts/imx7ulp.dtsi line 44

Quoted 4 lines
arch/arm/boot/dts/imx7ulp.dtsi +1 -0
@@ -41,6 +41,7 @@
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <0>;
+			clock-frequency = <500210526>;

I cannot find the binding doc for this property. What is the definition of it, the maximum frequency that the cpu could possibly run at?

Shawn

Quoted 6 lines
arch/arm/boot/dts/imx7ulp.dtsi +0 -0
 		};
 	};
 
Signature · 1 line
2.7.4
#2 lore raw
Quoted 13 lines

Subject: Re: [PATCH] ARM: dts: imx7ulp: Add cpu clock-frequency property

Quoted 9 lines · Anson Huang

Add "clock-frequency" property to avoid below warning on i.MX7ULP:

[    0.011762] /cpus/cpu@0 missing clock-frequency property
---
 arch/arm/boot/dts/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm/boot/dts/imx7ulp.dtsi line 44

Quoted 9 lines
(quoted diff) +0 -0

b/arch/arm/boot/dts/imx7ulp.dtsi index d37a192..87b2237 100644

arch/arm/boot/dts/imx7ulp.dtsi +1 -0
@@ -41,6 +41,7 @@
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <0>;
+			clock-frequency = <500210526>;

I cannot find the binding doc for this property. What is the definition of it, the maximum frequency that the cpu could possibly run at?

The code is as below, maybe the property is missing from the beginning of this code, this property should mean the current frequency of CPU running at I think:

arch/arm/kernel/topology.c

122 rate = of_get_property(cn, "clock-frequency", &len);
123 if (!rate || len != 4) {
124 pr_err("%pOF missing clock-frequency property\n", cn);
125 continue;
126 }

Thanks,
Anson

#3 lore raw

+ Vincent

Quoted 30 lines · Anson Huang
Quoted 13 lines

Subject: Re: [PATCH] ARM: dts: imx7ulp: Add cpu clock-frequency property

Quoted 9 lines · Anson Huang

Add "clock-frequency" property to avoid below warning on i.MX7ULP:

[    0.011762] /cpus/cpu@0 missing clock-frequency property
---
 arch/arm/boot/dts/imx7ulp.dtsi | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm/boot/dts/imx7ulp.dtsi line 44

Quoted 9 lines
(quoted diff) +0 -0

b/arch/arm/boot/dts/imx7ulp.dtsi index d37a192..87b2237 100644

arch/arm/boot/dts/imx7ulp.dtsi +1 -0
@@ -41,6 +41,7 @@
 			compatible = "arm,cortex-a7";
 			device_type = "cpu";
 			reg = <0>;
+			clock-frequency = <500210526>;

I cannot find the binding doc for this property. What is the definition of it, the maximum frequency that the cpu could possibly run at?

The code is as below, maybe the property is missing from the beginning of this code, this property should mean the current frequency of CPU running at I think:

Quoted 7 lines

arch/arm/kernel/topology.c

122 rate = of_get_property(cn, "clock-frequency", &len);
123 if (!rate || len != 4) {
124 pr_err("%pOF missing clock-frequency property\n", cn);
125 continue;
126 }

Yes, I can find the code, but not bindings for it. Considering frequency of a CPU can be scaled in a quite wide range, we need a clear understanding on this property. IIUIC, the property is used to calculate the capacity of CPU, it should be the maximum frequency the CPU could possibly scale to?

Shawn