devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: VIM3: Set the rates of the clocks for the NPU
@ 2023-10-16  8:02 Tomeu Vizoso
  2023-10-16  8:02 ` [PATCH 2/2] pmdomain: amlogic: Fix mask for the second NNA mem PD domain Tomeu Vizoso
  0 siblings, 1 reply; 5+ messages in thread
From: Tomeu Vizoso @ 2023-10-16  8:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: Da Xue, Tomeu Vizoso, Lucas Stach, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Ulf Hansson, devicetree,
	linux-arm-kernel, linux-amlogic, linux-pm

Otherwise they are left at 24MHz and the NPU runs very slowly.

Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Suggested-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
index ff68b911b729..9d5eab6595d0 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
@@ -2502,6 +2502,9 @@ npu: npu@ff100000 {
 		clocks = <&clkc CLKID_NNA_CORE_CLK>,
 			 <&clkc CLKID_NNA_AXI_CLK>;
 		clock-names = "core", "bus";
+		assigned-clocks = <&clkc CLKID_NNA_CORE_CLK>,
+				  <&clkc CLKID_NNA_AXI_CLK>;
+		assigned-clock-rates = <800000000>, <800000000>;
 		resets = <&reset RESET_NNA>;
 		status = "disabled";
 	};
-- 
2.41.0


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

end of thread, other threads:[~2023-10-27  9:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16  8:02 [PATCH 1/2] arm64: dts: VIM3: Set the rates of the clocks for the NPU Tomeu Vizoso
2023-10-16  8:02 ` [PATCH 2/2] pmdomain: amlogic: Fix mask for the second NNA mem PD domain Tomeu Vizoso
2023-10-26 14:36   ` Ulf Hansson
2023-10-26 14:42     ` Neil Armstrong
2023-10-27  9:03   ` Ulf Hansson

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).