On Thu, 17 Jan 2019 22:06:27 -0300
Paul Cercueil <paul@xxxxxxxxxxxxxxx <mailto:paul@xxxxxxxxxxxxxxx>> wrote:
This is currently done inside the jz4780-bch driver, but it really
should be done here instead.
I disagree with that statement. If it's a per-SoC constraint then you
can select the appropriate rate based on the compatible in the driver.
If the clock rate depends on the NAND chip it probably means it's used
to generate the RE/WE pulse and should depend on the NAND timings
passed to ->setup_data_interface(). In either case, this should not be
specified in the DT.
Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx <mailto:paul@xxxxxxxxxxxxxxx>>
arch/mips/boot/dts/ingenic/ci20.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index 50cff3cbcc6d..aa892ec54d0a 100644
@@ -111,6 +111,9 @@
pinctrl-names = "default";
pinctrl-0 = <&pins_nemc>;
+ assigned-clocks = <&cgu JZ4780_CLK_BCH>;
+ assigned-clock-rates = <200000000>;
reg = <1>;