From patchwork Wed Apr 26 05:28:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 677244 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8569C7618E for ; Wed, 26 Apr 2023 05:28:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239361AbjDZF2t (ORCPT ); Wed, 26 Apr 2023 01:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239223AbjDZF2s (ORCPT ); Wed, 26 Apr 2023 01:28:48 -0400 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 789E62D4E; Tue, 25 Apr 2023 22:28:43 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-94f0dd117dcso970847566b.3; Tue, 25 Apr 2023 22:28:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682486922; x=1685078922; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6sKTnga5osoBChiq0wC1tiBZnMTBNSiyIak8o4AC7LI=; b=djsY6zxING+g2l5KOLqSIPqSIeSPFcbcuGKUzAGuj2UFRivzX/RuQYRCmN2jqtmIm8 VGx6fwTYoauSqJwQAnMC6EQsIjvlTJ72kF1JQDVyMeefckikBpS2j3cviqyOae7wtcXb XPCbiJQTJi2L8tw2BeS+OEV8ip8n15Xor8COAlGdysVjag2FEpahr2TWT3zPhGsqiehe qjgXcR2iUgzLDMkLS6ti4UreHt1YikUMIK29GCK7oAyWCr7nC1vQAzgCSTzQ3xelEmge kqqauDaClv4AFSD+Jx3liqD4BsQftz7yKBcI5qxfPcfIXOGgHHpYpR+IPHeBahI3w/XA 3GyQ== X-Gm-Message-State: AAQBX9fmADb3K16E0VK27t67yr/XIogdD/+Rv76vIt+5qG3AKJM0mfOz eEXMPiVRaiC90aYvdHOBt3jxZZ4r8Bk= X-Google-Smtp-Source: AKy350afIwgIUzk7/1vNhIB1UUFEJtteADzFrDD5QGP+/lq4u5bIcqIkZK/MyC4E+wHZ/4sZ2kJT5g== X-Received: by 2002:a17:907:7e94:b0:94e:d75b:5998 with SMTP id qb20-20020a1709077e9400b0094ed75b5998mr18238906ejc.5.1682486921617; Tue, 25 Apr 2023 22:28:41 -0700 (PDT) Received: from cizrna.home (cst-prg-36-136.cust.vodafone.cz. [46.135.36.136]) by smtp.gmail.com with ESMTPSA id i21-20020a05640200d500b00501d73cfc86sm6598206edu.9.2023.04.25.22.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 22:28:40 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: Tomeu Vizoso , Lucas Stach , Rob Herring , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support) Subject: [PATCH] arm64: dts: VIM3: Set the rates of the clocks for the NPU Date: Wed, 26 Apr 2023 07:28:31 +0200 Message-Id: <20230426052831.59391-1-tomeu@tomeuvizoso.net> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Otherwise they are left at 24MHz and the NPU runs very slowly. Signed-off-by: Tomeu Vizoso Suggested-by: Lucas Stach --- 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>; }; /*