k210: dts: Set PLL1 to the same rate as PLL0
authorSean Anderson <seanga2@gmail.com>
Fri, 11 Jun 2021 04:16:15 +0000 (00:16 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 17 Jun 2021 01:40:58 +0000 (09:40 +0800)
Linux has had some stability issues when using AISRAM with a different
frequency from SRAM. Mirror their change here now that we relocate into
AISRAM.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/k210.dtsi
configs/sipeed_maix_bitm_defconfig

index 2492af8..8bcd3ce 100644 (file)
                                        #clock-cells = <1>;
                                        compatible = "kendryte,k210-clk";
                                        clocks = <&in0>;
+                                       assigned-clocks = <&sysclk K210_CLK_PLL1>;
+                                       assigned-clock-rates = <390000000>;
                                        u-boot,dm-pre-reloc;
                                };
 
index bd877cd..6a06f65 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_MTDIDS_DEFAULT="nor0=spi3:0"
 CONFIG_MTDPARTS_DEFAULT="nor0:1M(u-boot),0x1000@0xfff000(env)"
 # CONFIG_NET is not set
+CONFIG_CLK_K210_SET_RATE=y
 # CONFIG_INPUT is not set
 CONFIG_SF_DEFAULT_BUS=3
 # CONFIG_DM_ETH is not set