From patchwork Tue Nov 14 15:48:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 743851 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43B0641770 for ; Tue, 14 Nov 2023 15:49:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B132172C; Tue, 14 Nov 2023 07:49:16 -0800 (PST) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-52bd9ddb741so8915011a12.0; Tue, 14 Nov 2023 07:49:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699976954; x=1700581754; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8bC0gh5GtET+GY1POn83wCGMR6SSUdpI6TGA9ZU4YvM=; b=GVupiTHviyl7vEUphbr5I2TK8Rs1nURtxoUssbARItdl4CU5PROA+SLTb4Zp3D021b QCRJKkWMrWV7Wx+U/FgSSIUo/onv7vnZxXmmxWEJjMLKDteAKKtsO4T+JZhlQqHM4UTK 8NHeeuu2UevEGlcUL3e85JaEAhOXBRwB9APVXmUcLU2qcIOJ3HTovRJRuWIfuFOMnA9m Enj6oaROnliG663o5dZ/TO3kL+lKi+ocGKuxwtzOqZra69poz88cqEuLJYb45A57uKbv 2wODTaPslxqMpemOTVVuuzMlisndPFbVjRekucZULZQpA0+ra0+vk2dRbmsH7/cqa7zT BkNQ== X-Gm-Message-State: AOJu0Yw1oLTJWQMRpYUSR7hGvZ8nH5Le0bIWYjUrq99kmhW+9M7+W+kE tEtBmAR8KVf/s/vOsholozk= X-Google-Smtp-Source: AGHT+IENt1pIK+n+wp8H+la5uVQPNjn4/lEW7n+Ls2HMUqOuHCwh3SZzMgv4ZZ05LH+OzNrW4jjdfA== X-Received: by 2002:aa7:d889:0:b0:543:5741:c9cd with SMTP id u9-20020aa7d889000000b005435741c9cdmr6861999edq.34.1699976954369; Tue, 14 Nov 2023 07:49:14 -0800 (PST) Received: from ramallet.home (cst-prg-38-127.cust.vodafone.cz. [46.135.38.127]) by smtp.gmail.com with ESMTPSA id v22-20020aa7d816000000b00533e915923asm5211770edq.49.2023.11.14.07.49.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 07:49:13 -0800 (PST) From: Tomeu Vizoso To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Tomeu Vizoso , Lucas Stach , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: amlogic: meson-g12-common: Set the rates of the clocks for the NPU Date: Tue, 14 Nov 2023 16:48:43 +0100 Message-ID: <20231114154843.1262225-1-tomeu@tomeuvizoso.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231106092202.11127-1-tomeu@tomeuvizoso.net> References: <20231106092202.11127-1-tomeu@tomeuvizoso.net> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Otherwise they are left at 24MHz and the NPU runs very slowly. Signed-off-by: Tomeu Vizoso Suggested-by: Lucas Stach Reviewed-by: Neil Armstrong --- v2: Fix subject (Jerome Brunet) --- 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"; };