Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1063168rdd; Wed, 10 Jan 2024 07:38:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKYJ/FvqQlMwtiA+MVpw7BI1JuiSS88/q5XL3UToWdPZcSjmBwYdMd2U8HiMhQEmzvYg2l X-Received: by 2002:a17:907:90c4:b0:a23:6462:4d66 with SMTP id gk4-20020a17090790c400b00a2364624d66mr674931ejb.85.1704901098695; Wed, 10 Jan 2024 07:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704901098; cv=none; d=google.com; s=arc-20160816; b=VbFzIOEtp9UNkMm+VnWyHnK/xVS3NOc3KF4DCAcW8yFRp3jkxY0BF9b0FBZfgAx+mO oZCk7gjLGmRrkAjO8QYm9WGK1SKDR85KWiuaxOJA2M9c4G6m9dZ9hwChZ2XQbyrQ1+bo Ry7mJqbNZbFSkY91Q1j3Ag2SXdG+mpkWYlnJsqevbIF7gFs2vgOHtff/iiiManX7A2lC jZ0BKdPTL4k2Ox/lL3Hgu/Ie6jmphf3gitq4LqRoaym9YrxhpIHN6TrpPGVcZQocTXBq IzvEgcFddloUVwnwESozSOWOUge1icuFG+FxDi0JCeJoymxljTjuGfQ7KL4flGyWq78v h3/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=E4XrHqEPP20R01xmGCuOPfv+KVCp64Vi1x9YnoG1SFg=; fh=47sO7Dxxxe3JPs2TJz5OuCkQprg8fK0VD/DLCUHPtmI=; b=ukcYkb8BU/UrYJQ+mYnW2fXaATVTgbDxfkHz1aUmlK0Htt6RVC8iMoIt5bQPL+EGpp mJh2SEkCegS9k4CGVp42FUueARwrj0ucKtidgPp7+E1v27rc5vlhs6jd3Z51UDfO4yI2 6GucuHc+BXZMdgrGQgCLJY0cL0mgu/ffLDINtcKanmEI59PvW8GdaQ8pLBh8QsAGr5Z/ Ak2Y2qnG3tc70IzCTZ22qobUuLJEPsNdECIfKLMhIOT/O+vSMcz/ktYr32F4B6iin/h4 2y/+Oy4KvcbFGSRN/w5uietDNlQgkG5bCRiihbOFPDzR1Wjo5DNOWA0EGtW4EiDdXvHc 4BsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l11-20020a170906078b00b00a2b2a49f202si1847086ejc.918.2024.01.10.07.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 07:38:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22430-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6BC991F27320 for ; Wed, 10 Jan 2024 15:38:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 987C24C606; Wed, 10 Jan 2024 15:38:01 +0000 (UTC) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AE0A4C3A6; Wed, 10 Jan 2024 15:37:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tomeuvizoso.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-557e76e1bd6so3086995a12.1; Wed, 10 Jan 2024 07:37:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704901078; x=1705505878; 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=E4XrHqEPP20R01xmGCuOPfv+KVCp64Vi1x9YnoG1SFg=; b=Yec0dMz+qlYYGXA8BComR+SImhD9KoGUA5oY1YqorNC/gSsPB7EJfq85lNSazRk7/J gWs92ERkMG68QgmQn3la/8SPJZpa7z8cGEkb9knHRa9kxWPmR1kK1ig2fXuhQ6YG+D/B INrNS6ZArBITSKcX8tjaJStW+FZnxZo0CWu8Idh1aa5h8x8fvOx9zUI8Uh8ukvriVqsP gw8Ozw9u3V55ogQY8Ibk7iwdyhdaEB9VRBtezfrWpZek1TEGu/SqswJBB0oRe3eG14iu zAYFvi/ZRSoY2AC4pErp+G08jTom0LYXKMFY8TtwPdEiJ6xeX7jjZ3LWp0yT3fjfiBdo 5Huw== X-Gm-Message-State: AOJu0Yw3q+Ny7pzInHAAJXpnfBgZ2huB50ibKMPp1WK0dtMd7vKtfYIb d57Z/V91tNLV2AoD+DlY5Yw= X-Received: by 2002:a50:f60f:0:b0:557:c43:1fc3 with SMTP id c15-20020a50f60f000000b005570c431fc3mr498857edn.76.1704901077760; Wed, 10 Jan 2024 07:37:57 -0800 (PST) Received: from ramallet.home (cst-prg-39-31.cust.vodafone.cz. [46.135.39.31]) by smtp.gmail.com with ESMTPSA id da11-20020a056402176b00b0055668ccd9a3sm2113105edb.17.2024.01.10.07.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 07:37:57 -0800 (PST) From: Tomeu Vizoso To: Cc: Tomeu Vizoso , Lucas Stach , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] arm64: dts: amlogic: meson-g12-common: Set the rates of the clocks for the NPU Date: Wed, 10 Jan 2024 16:37:01 +0100 Message-ID: <20240110153704.1364073-2-tomeu@tomeuvizoso.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110153704.1364073-1-tomeu@tomeuvizoso.net> References: <20240110153704.1364073-1-tomeu@tomeuvizoso.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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.43.0