Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2000417rdf; Mon, 6 Nov 2023 01:22:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGha23FBKRBIZKQ0ob6UlBGl7MDLCLKo+0Wo1MbFALX9zJTRWbCGrhBfVl/Tdj1P54NjSkW X-Received: by 2002:a17:90b:3ec4:b0:281:3a2:80ee with SMTP id rm4-20020a17090b3ec400b0028103a280eemr1350901pjb.14.1699262551436; Mon, 06 Nov 2023 01:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699262551; cv=none; d=google.com; s=arc-20160816; b=AaQ1Zt6/k9QqgeCDqjeygG5QJIQpUaBlyjpnwg3CVohvVaHP0yJ2XTcHbAW1lvSogv LrFUdlJWAKTOwrmiUNXWQ240v4z+IROtEwjN0SRw+5HOuRQ16pXJzbs269PMNXIoCTVh HYrXAiLpWP8BY2Xlgotkv/t7j/1NCaSS6w4MMv2LLIcvPpAYxEHm+QYhbP2AB0GYd926 ABzujR5t6rLfUJht8C3IepR31zhJmmeQ4MICCoYAIZIk2u/p4R3If/+JEMvnkmJrf1HL sauetiaXD98z0xqKy3ttvwWQJsHc9m3ulmXoLXQ9xLh/dqvGnWJbyVWfAfV87OFKEuR5 j/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7vxzdd7hvG1LZGKkqhTZumSilwKU2j2TuY6Cx8E9gJo=; fh=6Kl6oYCz2OnJQ9snSg39ePww5QxE7uDjgVZFmVAK91Q=; b=XXPja/uX7Mwa/LkPciHF0nLHaCgvERmoaOUREx21MSun89VpL27gsit5kN5PZeiFvZ hhXpp0g41TyjS6Cxi6XDIF+Dhgr7D5B2gT8luftR4YTorxlfSvLS5GJSGfjBEF3AAl8X 9Aj9/K/5vGI8y5jbvUAUfU+/CwPdNJjLh1AUd1m8GEqhkUtvR4peK++04mlO4r1aKiYV 4fv9aXiCyzYvsccmHclHWLBKoI4OcxIdm4p2yEaBrJ3yNYGMqIewi0szox1j75vSDLYi EF0RGBxzjjlS5jBbER7QoIwI7CdcKoUPg9WZIs3kn9cY+e/fXe7FPDMy6nh4cNQ67vfe CLCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t2-20020a17090ae50200b002790fa91d77si7911661pjy.145.2023.11.06.01.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 01:22:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BDBB98083DD4; Mon, 6 Nov 2023 01:22:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231246AbjKFJWS (ORCPT + 99 others); Mon, 6 Nov 2023 04:22:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbjKFJWQ (ORCPT ); Mon, 6 Nov 2023 04:22:16 -0500 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DBEFDF; Mon, 6 Nov 2023 01:22:12 -0800 (PST) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-991c786369cso614750366b.1; Mon, 06 Nov 2023 01:22:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699262530; x=1699867330; 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=7vxzdd7hvG1LZGKkqhTZumSilwKU2j2TuY6Cx8E9gJo=; b=ZAVfNjQXQ9iIYVR8xPs5bXtfwI1GmrzhAY0nAmwC7iJiEGthN41WxKuvWbTOpGCvah SlgAzOFzdowtHPre1yIbkLyWQ/T0NlnjO2jVqopbS5kmwsk22HS+fIqkl/323RdoNJJq RXqHD6Q2ZTV0wJqoW0dX505zax0MBFOv4iWE0CoUFJnjbsj0iVJBwbihusnAJbNQqWJs CT9LFrd21T2LmLGfrxRVfBam9vTsmk0RI2HoDc0t+51CbdQsqLm8DJ2gMlLvECrek2id PUpC/yr3kfdrceEpXaV0syosNb0VAaeGZ5IqZa2scXL7nESbAf/2nCSfuKEpPAJvHuwb NTwA== X-Gm-Message-State: AOJu0YwB3G+xi3XtrrTD1rwA4YNoaMIN/DMXy9dOJ4PdXXDsRYTIdCFW ddXbL5rbiYx/CtM0NOl+Ex2fBrmMT04= X-Received: by 2002:a17:907:31c3:b0:9bf:122a:7db2 with SMTP id xf3-20020a17090731c300b009bf122a7db2mr13821438ejb.66.1699262529951; Mon, 06 Nov 2023 01:22:09 -0800 (PST) Received: from ramallet.home (cst-prg-38-127.cust.vodafone.cz. [46.135.38.127]) by smtp.gmail.com with ESMTPSA id w5-20020a05640234c500b005402748cf29sm4098608edc.50.2023.11.06.01.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 01:22:09 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: Tomeu Vizoso , Lucas Stach , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 RESEND] arm64: dts: VIM3: Set the rates of the clocks for the NPU Date: Mon, 6 Nov 2023 10:22:02 +0100 Message-ID: <20231106092202.11127-1-tomeu@tomeuvizoso.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 01:22:29 -0800 (PST) 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-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