Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2032155rdf; Mon, 6 Nov 2023 02:43:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZmBlCSBOSe5dYWvz6GerdCZQNj31Qdlv/f/dF9BHiRgKk/WMPf62cggH3dIS8kX7CVgDg X-Received: by 2002:a05:6a00:93a3:b0:68f:d1a7:1a3a with SMTP id ka35-20020a056a0093a300b0068fd1a71a3amr32849809pfb.8.1699267416433; Mon, 06 Nov 2023 02:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699267416; cv=none; d=google.com; s=arc-20160816; b=YeCgeWSpAuLOd0ZX/XL/mRBBdrfVfKXb+izSzAZvkrlT15pwJMmM03xt+5PtI/Te+r YF/DPvluIzZSc4KcTEsRdzHf88i5OnfJBxVJ9GgF39uXfYd+QBdZOQc7I+lMFeK2+fnn DEiG3Xuha8fWxLj6QXVdPg+6Y8ebJgJYiZaiBpQfqEAJROjz39OFzG4LwOQmfOqfjHun zqrnNuEL9NVfPODtPi/F+i53/wmUM6NWXpEe7/MLNZrni6SnO1XycHhHNIM45iWbS0Yi DBeUn20PYRZ9Lx8cGXoevATftBwpFfkSSl1h9kJAO9/NPuJtFJ2tLR0RZcUfOV7ROC3j 4pRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=EK4l5HF7xxlWSQTYmo3dGoTvrbNSR6x1ONnxE49iyKE=; fh=xDHJW71I2QcKf4BaNkcSmG0YGxRzPLwv3s16fRnNnyE=; b=tpTLQ2MG9UcTugDKRGB0RfBrsrINntj/S4NWFB3VScB3abqcxkL8zsd3LNaRMwtDOn ptFpBWkSS0o+U2b9Sm2SCHdlPwpsa5U+5Z9c8XWBrwpma+tSRoaru1o9CNxCFIwDN3hY 5qll0CwHFaaxlM0lOfaGss3qkRIuouvnpMVn6yQk/aanz5VXP33XsDcpBcrK6MtHJWml HmC043t4dDM86ORwiCtHOgJQWSmi3djPQuLNyG3DsDTDJCd2e3p6TY+IbsJEFIJRfXRG hVNsyfR6wGYbS7sl0f8oWLlWB1qUWEBGEtj7rijV3C6jsrPuS0eh80aM0kHlh28bUZCS +3hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LaxnwP3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n19-20020a056a0007d300b006c12324042esi7363668pfu.386.2023.11.06.02.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:43:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LaxnwP3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 05F4B80A9ABF; Mon, 6 Nov 2023 02:43:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbjKFKn0 (ORCPT + 99 others); Mon, 6 Nov 2023 05:43:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjKFKnZ (ORCPT ); Mon, 6 Nov 2023 05:43:25 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D605F94 for ; Mon, 6 Nov 2023 02:43:21 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507962561adso5615485e87.0 for ; Mon, 06 Nov 2023 02:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1699267400; x=1699872200; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=EK4l5HF7xxlWSQTYmo3dGoTvrbNSR6x1ONnxE49iyKE=; b=LaxnwP3Stjbr1ttqDmeGvf0CQPQFab6UjmuCtHQ4jX9fv97NRLMDfARo0x9uxBaHI4 U31CfcuOA58TQHBuIqyefgUxdamyNojG1BpWe4wGovoVBKWajnTgJ6jAZ6zDXYZddO5f rmfeSt4ZYdIpcjJjHgnKm/LuhLZV83dKctbJKA7BCPjoyISCCn4QrQJ5a+AKc02TVtvc AtmgzTSj4dwcysiu8F/3x+MqTN0YF1wO22V0NwUsDWDFtI0DC2q0Wnte2+4k3Auyzg+u e6xycFZRci6OPb+pT6CsVJ2RrcO97vYc/NcaigDqQ/dANNWNXdBcW1SYtw4TkDCPhMNZ U+5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699267400; x=1699872200; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EK4l5HF7xxlWSQTYmo3dGoTvrbNSR6x1ONnxE49iyKE=; b=vsAvP1AA5GYW4vpdPjJ4Tc8fl0DzzIPYdhEKMC7ZEG6tdmsDR9xLsPuXU/WiS9pY2w DAHex4agXHlV9JwVXXeysx6OMbY2AMAbaOekpb9YDolvL6nDyzhzUifIf1BIlCkx4zUr 6KgL7rOMozfRpwnvjPYjVoATCD0Wi/Vdw1KnuqVibr85OYwQY/IslcqqL7oaGM60NDFJ xL7p2ZPgt1YZ0qrSXsf9iLPIgi9d+tC1MaR5QYVJkRYUz56kFBzACacd9DPqmaet9dOP s1l6+9iz6rkdwovZ/blMl4Am0vy45ex56sFnlKbVet5G6PHLM3RuH+Hs8ibEacO7FNkM r3ww== X-Gm-Message-State: AOJu0YxpBFArHW0WVgjjI6FmQuVHHfqDQPzU5eyb/z4P04JU4jvRiJ5n hSXV0YxK3WG5iz1yTOauiJpXGg== X-Received: by 2002:ac2:414b:0:b0:4fe:1681:9377 with SMTP id c11-20020ac2414b000000b004fe16819377mr20084251lfi.44.1699267399986; Mon, 06 Nov 2023 02:43:19 -0800 (PST) Received: from localhost ([2a01:e0a:3c5:5fb1:fabf:ec8c:b644:5d3]) by smtp.gmail.com with ESMTPSA id f10-20020a5d58ea000000b00327bf4f2f14sm9113326wrd.88.2023.11.06.02.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:43:19 -0800 (PST) References: <20231106092202.11127-1-tomeu@tomeuvizoso.net> <569e39a0-b91c-46f1-b55d-c9324d66339b@linaro.org> User-agent: mu4e 1.8.13; emacs 29.1 From: Jerome Brunet To: Neil Armstrong , Tomeu Vizoso , linux-kernel@vger.kernel.org Cc: Lucas Stach , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Martin Blumenstingl , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Amlogic Meson SoC support" , "open list:ARM/Amlogic Meson SoC support" Subject: Re: [PATCH RESEND] arm64: dts: VIM3: Set the rates of the clocks for the NPU Date: Mon, 06 Nov 2023 11:41:48 +0100 In-reply-to: <569e39a0-b91c-46f1-b55d-c9324d66339b@linaro.org> Message-ID: <1jy1fb9n7d.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 02:43:34 -0800 (PST) On Mon 06 Nov 2023 at 10:26, Neil Armstrong wrote: > On 06/11/2023 10:22, Tomeu Vizoso wrote: patch title is misleading. It does not target the vim3 only but all g12 and sm1 HWs. It should start with "arm64: dts: amlogic: g12: " instead >> 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"; >> }; > > Reviewed-by: Neil Armstrong