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: 13224056 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA6CFC7618E for ; Wed, 26 Apr 2023 05:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5CDL/A+/7Sn9JPavllkeB5D01te/W+wuVsBYHgWGuOY=; b=UmF1iOYuy42nWT Rr+EvKgkB6ULQuPxjenEBEKBWYdTDaMxwzrp523p1YUQ3ohNFhMXsKvJ5c14vzmGkHziJQ1i32ZP5 430dGqXmgxSH+AVtmx0RAHUVTR3S6ddzT+S7NWaF8opa8iSJzwMCsOh2R+tPlyqMWZEqO9oSfWiBx 9g74aGf/ejjxC3z93iEkvJWBVGnuVKikWpZlNLQtFRQuPB9amwq419sVbjQGftP+ru5GQhwkq4DjW p3w44AVs8jMh/h78FZ346Q/kfuyFujhS8bXZvHvtg4KxgUCU67Glydnto7BNGKzrD12pPvXE3uVRi Vie/jJUqvBw5jFPCsfAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1prXhv-002pTR-0D; Wed, 26 Apr 2023 05:28:47 +0000 Received: from mail-ej1-f41.google.com ([209.85.218.41]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1prXhs-002pSq-01; Wed, 26 Apr 2023 05:28:45 +0000 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-94f0dd117dcso970847666b.3; Tue, 25 Apr 2023 22:28:42 -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=R9UbgCzgCnQxviWRbc9WXPLniRsygJOZUrf6/K1fyQPf2qUwwGYOR/NNsROiJQlZPa BjjsUPYdUE33hTDwI8yJP8Wxz9/dCYh4nhIP2Kpu15h/w+SUIbE8zlxP+5Y0Zmwfta2n nDXYC9BO3fb6/QwXqm/UpYP6Gs65HNo/vYQ/SSOELta5E/JnWjRKEZ0E3dqAarM8hbOB 1ev1oepwSQLt9z0xMM6AOUgRSAWi93X2V3Z1cLYeMcvd8YXhlBZ7ZiCo1H4dp15Rcisj Qv2PgkQnMN5Ishvlr1ieL9TV84U1B9R0FaAqgmYMxHtdfEJeF7aWm1TgcmkAWucwpfoh 7kdg== X-Gm-Message-State: AAQBX9cNocrPtDgbGV+bWvqfNMjOIme0sWWaW7d6BB4WK43Qji/LH42K /so3TkSRPEfIlNrDKFAT13dtH7K1uwc= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230425_222844_044100_1D732D43 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; }; /*