[Letux-kernel] [PATCH 5/5] [hack] MIPS: DTS: ingenic/mipsbook_400: force external clocks for the timers
Lubomir Rintel
lkundrak at v3.sk
Fri Nov 27 04:15:44 CET 2020
The CGU driver doesn't provide pclk_div_4, pclk_div_16, pclk_div_64 or
pclk_div_256 clock. Avoid attempting to use any of them.
Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
arch/mips/boot/dts/ingenic/mipsbook_400.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/mipsbook_400.dts b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
index c99c331ab6262..48a5856f812ff 100644
--- a/arch/mips/boot/dts/ingenic/mipsbook_400.dts
+++ b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
@@ -1,6 +1,7 @@
/dts-v1/;
#include "jz4730.dtsi"
+#include <dt-bindings/clock/ingenic,tcu.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
@@ -341,6 +342,11 @@ panel_input: endpoint {
};
};
+&tcu {
+ assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, <&tcu TCU_CLK_TIMER2>;
+ assigned-clock-parents = <&cgu JZ4730_CLK_EXT>, <&cgu JZ4730_CLK_EXT>, <&cgu JZ4730_CLK_EXT>;
+};
+
&ext {
clock-frequency = <3686400>;
};
--
2.28.0
More information about the Letux-kernel
mailing list