arm64: dts: amlogic: meson-g12-common: Set the rates of the clocks for the NPU
authorTomeu Vizoso <tomeu@tomeuvizoso.net>
Wed, 10 Jan 2024 15:37:01 +0000 (16:37 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 13 Feb 2024 08:38:47 +0000 (09:38 +0100)
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>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240110153704.1364073-2-tomeu@tomeuvizoso.net
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

index ff68b911b72971f63150da28357ab976cdb1d9c6..9d5eab6595d022647ceb77a2f48c854f213cc2ed 100644 (file)
                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";
        };