devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: dts: socfpga: denali needs nand_x_clk too
@ 2018-06-19 12:07 Richard Weinberger
  2018-06-20  4:52 ` Marek Vasut
  2018-06-22 14:37 ` Masahiro Yamada
  0 siblings, 2 replies; 15+ messages in thread
From: Richard Weinberger @ 2018-06-19 12:07 UTC (permalink / raw)
  To: devicetree
  Cc: linux-kernel, linux-mtd, dinguyen, robh+dt, mark.rutland,
	marek.vasut, computersforpeace, dwmw2, miquel.raynal,
	boris.brezillon, yamada.masahiro, Richard Weinberger

The denali NAND flash controller needs at least two clocks to operate,
nand_clk and nand_x_clk.
Since 1bb88666775e ("mtd: nand: denali: handle timing parameters by
setup_data_interface()") nand_x_clk is used to derive timing settings.

Signed-off-by: Richard Weinberger <richard@nod.at>
---
Strictly speaking denali needs a ecc_clk too, but AFAIK such a clock
is not present on this SoC.
But my SoCFPGA knowledge is very limited.

Thanks,
//richard
---
 arch/arm/boot/dts/socfpga.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 486d4e7433ed..562f7b375bbd 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -754,7 +754,8 @@
 			reg-names = "nand_data", "denali_reg";
 			interrupts = <0x0 0x90 0x4>;
 			dma-mask = <0xffffffff>;
-			clocks = <&nand_clk>;
+			clocks = <&nand_clk>, <&nand_x_clk>;
+			clock-names = "nand", "nand_x";
 			status = "disabled";
 		};
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-07-02 13:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-19 12:07 [PATCH] arm: dts: socfpga: denali needs nand_x_clk too Richard Weinberger
2018-06-20  4:52 ` Marek Vasut
2018-06-20  5:27   ` Richard Weinberger
2018-06-21  4:41     ` Marek Vasut
2018-06-22 14:37 ` Masahiro Yamada
2018-06-22 15:58   ` Richard Weinberger
2018-06-25 14:50     ` Dinh Nguyen
2018-06-25 14:55       ` Boris Brezillon
2018-06-26  2:38         ` Masahiro Yamada
2018-06-26 18:09           ` Miquel Raynal
2018-06-27  2:52             ` Masahiro Yamada
2018-06-27 14:55               ` Dinh Nguyen
2018-06-27 21:34                 ` Boris Brezillon
2018-07-02  1:35                 ` Masahiro Yamada
2018-07-02 13:19                   ` Dinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).