aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/dts
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2022-10-25 08:58:49 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2022-11-15 15:37:17 +0800
commit3f3527044d7460543b69931c3385925119dcf945 (patch)
tree6d46a16cc5a82bfbf729a4f6ab92593192413494 /arch/riscv/dts
parent4e405c68fbf53e52fdb36631caa090c081c59bd0 (diff)
downloadu-boot-3f3527044d7460543b69931c3385925119dcf945.zip
u-boot-3f3527044d7460543b69931c3385925119dcf945.tar.gz
u-boot-3f3527044d7460543b69931c3385925119dcf945.tar.bz2
riscv: dts: fix the mpfs's reference clock frequency
The initial devicetree for PolarFire SoC incorrectly created a fixed frequency clock in the devicetree to represent the msspll, but the msspll is not a fixed frequency clock. The actual reference clock on a board is either 125 or 100 MHz, 125 MHz in the case of the icicle kit. Swap the incorrect representation of the msspll out for the actual reference clock. Fixes: dd4ee416a6 ("riscv: dts: Add device tree for Microchip Icicle Kit") Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Padmarao Begari <padmarao.begari@microchip.com>
Diffstat (limited to 'arch/riscv/dts')
-rw-r--r--arch/riscv/dts/microchip-mpfs-icicle-kit.dts4
-rw-r--r--arch/riscv/dts/microchip-mpfs.dtsi14
2 files changed, 10 insertions, 8 deletions
diff --git a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
index 762dcfc..c3f58e2 100644
--- a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
+++ b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
@@ -54,6 +54,10 @@
};
};
+&refclk {
+ clock-frequency = <125000000>;
+};
+
&uart1 {
status = "okay";
};
diff --git a/arch/riscv/dts/microchip-mpfs.dtsi b/arch/riscv/dts/microchip-mpfs.dtsi
index 4f449a3..891dd09 100644
--- a/arch/riscv/dts/microchip-mpfs.dtsi
+++ b/arch/riscv/dts/microchip-mpfs.dtsi
@@ -170,6 +170,11 @@
};
};
+ refclk: refclk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ };
+
soc {
#address-cells = <2>;
#size-cells = <2>;
@@ -225,16 +230,9 @@
&cpu4_intc HART_INT_M_EXT &cpu4_intc HART_INT_S_EXT>;
};
- refclk: refclk {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <600000000>;
- clock-output-names = "msspllclk";
- };
-
clkcfg: clkcfg@20002000 {
compatible = "microchip,mpfs-clkcfg";
- reg = <0x0 0x20002000 0x0 0x1000>;
+ reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
reg-names = "mss_sysreg";
clocks = <&refclk>;
#clock-cells = <1>;