diff mbox series

arm64: dts: VIM3: Set the rates of the clocks for the NPU

Message ID 20230426052831.59391-1-tomeu@tomeuvizoso.net (mailing list archive)
State New, archived
Headers show
Series arm64: dts: VIM3: Set the rates of the clocks for the NPU | expand

Commit Message

Tomeu Vizoso April 26, 2023, 5:28 a.m. UTC
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-g12b-a311d-khadas-vim3.dts | 3 +++
 1 file changed, 3 insertions(+)

Comments

Neil Armstrong April 27, 2023, 11:38 a.m. UTC | #1
On 26/04/2023 07:28, Tomeu Vizoso wrote:
> 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-g12b-a311d-khadas-vim3.dts | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
> index 4e8266056bca..3a14b21998c4 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
> @@ -52,6 +52,9 @@ galcore {
>   
>   &npu {
>   	status = "okay";
> +	assigned-clocks = <&clkc CLKID_NNA_CORE_CLK>,
> +			  <&clkc CLKID_NNA_AXI_CLK>;
> +	assigned-clock-rates = <800000000>, <800000000>;
>   };
>   
>   /*

Is this specific to VIM3 ?
I think it should be moved to a dtsi file, perhaps meson-g12b.dtsi for now ?

Neil
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
index 4e8266056bca..3a14b21998c4 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts
@@ -52,6 +52,9 @@  galcore {
 
 &npu {
 	status = "okay";
+	assigned-clocks = <&clkc CLKID_NNA_CORE_CLK>,
+			  <&clkc CLKID_NNA_AXI_CLK>;
+	assigned-clock-rates = <800000000>, <800000000>;
 };
 
 /*