From: Sean Anderson Date: Thu, 4 Feb 2021 23:39:22 -0500 Subject: [RFC PATCH 12/13] riscv: k210: Increase SPI3 bus clock to CPU speed In-Reply-To: <20210205043924.149504-1-seanga2@gmail.com> References: <20210205043924.149504-1-seanga2@gmail.com> Message-ID: <20210205043924.149504-13-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de By default the SPI3 bus clock is ~100MHz, 1/4th of the CPU clock. This causes decreased performance when accessing this peripheral. Signed-off-by: Sean Anderson --- arch/riscv/dts/k210.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi index 81b04018c6..dac7c62289 100644 --- a/arch/riscv/dts/k210.dtsi +++ b/arch/riscv/dts/k210.dtsi @@ -600,6 +600,8 @@ interrupts = <4>; clocks = <&sysclk K210_CLK_SPI3>; clock-names = "ssi_clk"; + assigned-clocks = <&sysclk K210_CLK_SPI3>; + assigned-clock-rates = <390000000>; resets = <&sysrst K210_RST_SPI3>; /* Could possibly go up to 200 MHz */ spi-max-frequency = <100000000>; -- 2.29.2