Skip to content

Commit 6deb9bf

Browse files
ConchuODbebarino
authored andcommitted
riscv: dts: microchip: reparent mpfs clocks
The 600M clock in the fabric is not the real reference, replace it with a 125M clock which is the correct value for the icicle kit. Rename the msspllclk node to mssrefclk since this is now the input to, not the output of, the msspll clock. Control of the msspll clock has been moved into the clock configurator, so add the register range for it to the clk configurator. Finally, add a new output of the clock config block which will provide the 1M reference clock for the MTIMER and the rtc. Fixes: 528a5b1 ("riscv: dts: microchip: add new peripherals to icicle kit device tree") Fixes: 0fa6107 ("RISC-V: Initial DTS for Microchip ICICLE board") Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20220413075835.3354193-10-conor.dooley@microchip.com Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 1c6a7ea commit 6deb9bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
};
4646

4747
&refclk {
48-
clock-frequency = <600000000>;
48+
clock-frequency = <125000000>;
4949
};
5050

5151
&mmuart1 {

arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
};
142142
};
143143

144-
refclk: msspllclk {
144+
refclk: mssrefclk {
145145
compatible = "fixed-clock";
146146
#clock-cells = <0>;
147147
};
@@ -190,7 +190,7 @@
190190

191191
clkcfg: clkcfg@20002000 {
192192
compatible = "microchip,mpfs-clkcfg";
193-
reg = <0x0 0x20002000 0x0 0x1000>;
193+
reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
194194
clocks = <&refclk>;
195195
#clock-cells = <1>;
196196
};
@@ -393,8 +393,8 @@
393393
reg = <0x0 0x20124000 0x0 0x1000>;
394394
interrupt-parent = <&plic>;
395395
interrupts = <80>, <81>;
396-
clocks = <&clkcfg CLK_RTC>;
397-
clock-names = "rtc";
396+
clocks = <&clkcfg CLK_RTC>, <&clkcfg CLK_RTCREF>;
397+
clock-names = "rtc", "rtcref";
398398
status = "disabled";
399399
};
400400

0 commit comments

Comments
 (0)