Skip to content

Commit 465c127

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
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: Niklas Cassel <niklas.cassel@wdc.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20220705215213.1802496-6-mail@conchuod.ie Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 727b05e commit 465c127

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

arch/riscv/boot/dts/canaan/k210.dtsi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@
6969

7070
sram: memory@80000000 {
7171
device_type = "memory";
72+
reg = <0x80000000 0x400000>, /* sram0 4 MiB */
73+
<0x80400000 0x200000>, /* sram1 2 MiB */
74+
<0x80600000 0x200000>; /* aisram 2 MiB */
75+
};
76+
77+
sram_controller: memory-controller {
7278
compatible = "canaan,k210-sram";
73-
reg = <0x80000000 0x400000>,
74-
<0x80400000 0x200000>,
75-
<0x80600000 0x200000>;
76-
reg-names = "sram0", "sram1", "aisram";
7779
clocks = <&sysclk K210_CLK_SRAM0>,
7880
<&sysclk K210_CLK_SRAM1>,
7981
<&sysclk K210_CLK_AI>;

0 commit comments

Comments
 (0)