Unverified Commit 465c1274 authored by Conor Dooley's avatar Conor Dooley Committed by Palmer Dabbelt
Browse files

riscv: dts: canaan: fix the k210's memory node



The k210 U-Boot port has been using the clocks defined in the
devicetree to bring up the board's SRAM, but this violates the
dt-schema. As such, move the clocks to a dedicated node with
the same compatible string. The regs property does not fit in
either node, so is replaced by comments.

Tested-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220705215213.1802496-6-mail@conchuod.ie


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 727b05e4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -69,11 +69,13 @@

	sram: memory@80000000 {
		device_type = "memory";
		reg = <0x80000000 0x400000>, /* sram0 4 MiB */
		      <0x80400000 0x200000>, /* sram1 2 MiB */
		      <0x80600000 0x200000>; /* aisram 2 MiB */
	};

	sram_controller: memory-controller {
		compatible = "canaan,k210-sram";
		reg = <0x80000000 0x400000>,
		      <0x80400000 0x200000>,
		      <0x80600000 0x200000>;
		reg-names = "sram0", "sram1", "aisram";
		clocks = <&sysclk K210_CLK_SRAM0>,
			 <&sysclk K210_CLK_SRAM1>,
			 <&sysclk K210_CLK_AI>;