Skip to contentSkip to conversation

riscv: dts: microchip: Define hart clocks

PATCH In review Bin Meng 2 participants 3 messages Jun 16, 2021 – Jul 13, 2021

Subsystems (3)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 riscv: dts: microchip: Define hart clocks

From: Bin Meng <[email protected]>

Declare that each hart in the DT is clocked by <&clkcfg 0>.

---
Similar to https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/,
this adds the same <clock> property to PolarFire SoC CPU nodes so that we can
calculate the running frequency of the hart.

 arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +5 -0
index a00d9dc560d3..0659068b62f7 100644
@@ -24,6 +24,7 @@ cpu@0 {
 			i-cache-size = <16384>;
 			reg = <0>;
 			riscv,isa = "rv64imac";
+			clocks = <&clkcfg 0>;
 			status = "disabled";
 
 			cpu0_intc: interrupt-controller {
@@ -50,6 +51,7 @@ cpu@1 {
 			reg = <1>;
 			riscv,isa = "rv64imafdc";
 			tlb-split;
+			clocks = <&clkcfg 0>;
 			status = "okay";
 
 			cpu1_intc: interrupt-controller {
@@ -76,6 +78,7 @@ cpu@2 {
 			reg = <2>;
 			riscv,isa = "rv64imafdc";
 			tlb-split;
+			clocks = <&clkcfg 0>;
 			status = "okay";
 
 			cpu2_intc: interrupt-controller {
@@ -102,6 +105,7 @@ cpu@3 {
 			reg = <3>;
 			riscv,isa = "rv64imafdc";
 			tlb-split;
+			clocks = <&clkcfg 0>;
 			status = "okay";
 
 			cpu3_intc: interrupt-controller {
@@ -128,6 +132,7 @@ cpu@4 {
 			reg = <4>;
 			riscv,isa = "rv64imafdc";
 			tlb-split;
+			clocks = <&clkcfg 0>;
 			status = "okay";
 			cpu4_intc: interrupt-controller {
 				#interrupt-cells = <1>;
Signature · 1 line
2.25.1
author
#1 lore raw
Quoted 7 lines · Bin Meng

From: Bin Meng <[email protected]>

Declare that each hart in the DT is clocked by <&clkcfg 0>.

Quoted 8 lines

---
Similar to https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/,
this adds the same <clock> property to PolarFire SoC CPU nodes so that we can
calculate the running frequency of the hart.

 arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

Ping?

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Bin Meng
Quoted 61 lines · Bin Meng

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

From: Bin Meng <[email protected]>

Declare that each hart in the DT is clocked by <&clkcfg 0>.

---
Similar to https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/,
this adds the same <clock> property to PolarFire SoC CPU nodes so that we can
calculate the running frequency of the hart.

  arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 5 +++++
  1 file changed, 5 insertions(+)
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +5 -1
index a00d9dc560d3..0659068b62f7 100644
@@ -24,6 +24,7 @@ cpu@0 {
                         i-cache-size = <16384>;
                         reg = <0>;
                         riscv,isa = "rv64imac";
+                       clocks = <&clkcfg 0>;
                         status = "disabled";
 
                         cpu0_intc: interrupt-controller {
@@ -50,6 +51,7 @@ cpu@1 {
                         reg = <1>;
                         riscv,isa = "rv64imafdc";
                         tlb-split;
+                       clocks = <&clkcfg 0>;
                         status = "okay";
 
                         cpu1_intc: interrupt-controller {
@@ -76,6 +78,7 @@ cpu@2 {
                         reg = <2>;
                         riscv,isa = "rv64imafdc";
                         tlb-split;
+                       clocks = <&clkcfg 0>;
                         status = "okay";
 
                         cpu2_intc: interrupt-controller {
@@ -102,6 +105,7 @@ cpu@3 {
                         reg = <3>;
                         riscv,isa = "rv64imafdc";
                         tlb-split;
+                       clocks = <&clkcfg 0>;
                         status = "okay";
 
                         cpu3_intc: interrupt-controller {
@@ -128,6 +132,7 @@ cpu@4 {
                         reg = <4>;
                         riscv,isa = "rv64imafdc";
                         tlb-split;
+                       clocks = <&clkcfg 0>;
                         status = "okay";
                         cpu4_intc: interrupt-controller {
                                 #interrupt-cells = <1>;
--
Quoted 2 lines

2.25.1

Quoted 4 lines

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv