Skip to content

Commit 868cfff

Browse files
romain-izard-proambarus
authored andcommitted
ARM: dts: at91: sama5d2: use the divided clock for SMC
The SAMA5D2 is different from SAMA5D3 and SAMA5D4, as there are two different clocks for the peripherals in the SoC. The Static Memory controller is connected to the divided master clock. Unfortunately, the device tree does not correctly show this and uses the master clock directly. This clock is then used by the code for the NAND controller to calculate the timings for the controller, and we end up with slow NAND Flash access. Fix the device tree, and the performance of Flash access is improved. Signed-off-by: Romain Izard <romain.izard.pro@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 4ab7ca0) Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 434ba6f commit 868cfff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm/boot/dts/sama5d2.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
0x1 0x0 0x60000000 0x10000000
309309
0x2 0x0 0x70000000 0x10000000
310310
0x3 0x0 0x80000000 0x10000000>;
311-
clocks = <&mck>;
311+
clocks = <&h32ck>;
312312
status = "disabled";
313313

314314
nand_controller: nand-controller {

0 commit comments

Comments
 (0)