Skip to contentSkip to conversation

riscv: dts: sifive: Add missing "clock-frequency" to cpu0/cpu1 nodes

PATCH In review Bin Meng 2 participants 4 messages Aug 7, 2019 – Sep 5, 2019

Subsystems (4)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 riscv: dts: sifive: Add missing "clock-frequency" to cpu0/cpu1 nodes

Add the missing "clock-frequency" property to the cpu0/cpu1 nodes for consistency with other cpu nodes.

---

 arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/riscv/boot/dts/sifive/fu540-c000.dtsi +2 -0
index 42b5ec2..4befc70 100644
@@ -22,6 +22,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		cpu0: cpu@0 {
+			clock-frequency = <0>;
 			compatible = "sifive,e51", "sifive,rocket0", "riscv";
 			device_type = "cpu";
 			i-cache-block-size = <64>;
@@ -37,6 +38,7 @@
 			};
 		};
 		cpu1: cpu@1 {
+			clock-frequency = <0>;
 			compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
 			d-cache-block-size = <64>;
 			d-cache-sets = <64>;
Signature · 1 line
2.7.4
author
#1 lore raw
Quoted 10 lines · Bin Meng

Add the missing "clock-frequency" property to the cpu0/cpu1 nodes for consistency with other cpu nodes.

---

 arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 2 ++
 1 file changed, 2 insertions(+)

ping

#2 lore raw
In reply to Bin Meng
Quoted 4 lines · Bin Meng

Add the missing "clock-frequency" property to the cpu0/cpu1 nodes for consistency with other cpu nodes.

Is this being driven by a schema validator warning? If not, and this property isn't required, it seems better just to drop it. It seems useless?

- Paul

author
#3 lore raw
Quoted 12 lines · Paul Walmsley
Quoted 4 lines · Bin Meng

Add the missing "clock-frequency" property to the cpu0/cpu1 nodes for consistency with other cpu nodes.

Is this being driven by a schema validator warning? If not, and this property isn't required, it seems better just to drop it. It seems useless?

Yes, I think we can drop it. I will send v2.

Regards,
Bin