Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp639322rdh; Sun, 24 Sep 2023 05:47:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+l+/vtqT/q1ET4wIn20Ts0Imkdkx5Xc0I4fI3cMwwBBHGBIHiZUC5C5t3ELxv/DaaTAV3 X-Received: by 2002:a05:6830:1516:b0:6c0:7bab:28ed with SMTP id k22-20020a056830151600b006c07bab28edmr5516795otp.16.1695559640222; Sun, 24 Sep 2023 05:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695559640; cv=none; d=google.com; s=arc-20160816; b=bY+Q7K+1f0bvnef///a1EXIce9eNvXD04cP0iZoKNXDrqnVZgZsmV5BcvR6uFvGADn aA9+HGQ1HlKEAw+2cFJFL81mR+fXsFRntD0V7ddKHyGGeiF+aZ0Fe+5+DmdGdTUz1YRh izNJGTAQdcwJkzX0LXSpfEf1hOb6Ys6XZQ1bxopHRkxVvK6lLaHxHi4NzttQ3/ZXK8so C6MHYoCzmyHh9eORcxYQLYZ9M0O8EUC9najQvQHxg2mpfeoJYO5HuR9WMoAdyfauJmyp w02XYrA9RWOpwyIgTvmnZ2QtoqNAi7HIJG2bJ55+igvV3f2cA6gPA/n6tmlqX+tkWMpQ GiYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=c03CVh3H0fXCP9XYMuY9D+SCwEh39uFribAAgvzuXP8=; fh=y+qtrUAwc6MXVicDJ5rSKb0kF3i0WO3WDa0v0fIk678=; b=b5F6nEPqH9CoDxKSkXdvI0CG0bxpUaCcHil1yMz9dJCfdtebV4GHmaaDxPlCr9qD8k nFaB4Rk1TtTDyzQW6Owc++P8BSRiczOhLxxW2Md8Im7aHk6V4wKAXLsxKN4eYNGLqwVh pID6AMTnKZKcA/Gd2Vr1fF4x567c9DhTSL99fIHe6a0q3pPslHzRDrv3fW/6z2aQjW2A QPwVHXXkLFk/Uiyca/9Qk9+vVYu329gYglhl9TCSLT0XO+/dcO8ngaHwHexqNqVEDyaz NsfDGxcm5z52hgntJ2RondCdjZCkKe9mWSkVW9IqaEbYT3MGEpubWPX5g3kUohA7vOoK LZvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ItdJ5hH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u125-20020a627983000000b00690f62927casi7827400pfc.178.2023.09.24.05.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 05:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ItdJ5hH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BC05B8082CEA; Sun, 24 Sep 2023 05:45:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjIXMmo (ORCPT + 99 others); Sun, 24 Sep 2023 08:42:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjIXMmn (ORCPT ); Sun, 24 Sep 2023 08:42:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6EFC6 for ; Sun, 24 Sep 2023 05:42:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA273C433C8; Sun, 24 Sep 2023 12:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695559357; bh=f9QaCT7P+Eym8wOvTxbBRKuAxNofL+bJzAubHNGHt38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ItdJ5hH5RCJ6d6zgIM5fgBlbKBcGnfLZiplra28IUBfcyypc6M0goS5gFA+Lrc6nr jzqhfMiqooOm5w4gGJk3DmTRMTk8z15JKyhAvJ9h7JO0ZzVt8qOwNiGdxKMW6hrtFo a5tWUZLakstd9aljmPuKFY63a2bFhcZfgCj7Ad96N6qa6s24hxBgxwHn2HeLyTZ6fP X+fmvPta6ILhdaWuTvKKRTmJHhPYssFBl6NGnKSrB7DUjF3mQJ2L5mSTjSrJvGnQ3b zin6fQm/DOfbFnvNLyi/Pg4FXu7dGsEs78XOSGZRwNumv/RUizVqHe6GE9zyQbBb9y o9StdWYawQGxQ== Date: Sun, 24 Sep 2023 20:42:24 +0800 From: Shawn Guo To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, aford@beaconembedded.com, Lucas Stach , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 1/2] arm64: dts: imx8mp: Fix SDMA2/3 clocks Message-ID: <20230924124224.GC7231@dragon> References: <20230819105002.132750-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230819105002.132750-1-aford173@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Sun, 24 Sep 2023 05:45:13 -0700 (PDT) On Sat, Aug 19, 2023 at 05:50:01AM -0500, Adam Ford wrote: > Commit 16c984524862 ("arm64: dts: imx8mp: don't initialize audio clocks > from CCM node") removed the Audio clocks from the main clock node, because > the intent is to force people to setup the audio PLL clocks per board > instead of having a common set of rates, since not all boards may use > the various audio PLL clocks in the same way. > > Unfortunately, with this parenting removed, the SDMA2 and SDMA3 > clocks were slowed to 24MHz because the SDMA2/3 clocks are controlled > via the audio_blk_ctrl which is clocked from IMX8MP_CLK_AUDIO_ROOT, > and that clock is enabled by pgc_audio. > > Per the TRM, "The SDMA2/3 target frequency is 400MHz IPG and 400MHz > AHB, always 1:1 mode, to make sure there is enough throughput for all > the audio use cases." > > Instead of cluttering the clock node, place the clock rate and parent > information into the pgc_audio node. > > With the parenting and clock rates restored for IMX8MP_CLK_AUDIO_AHB, > and IMX8MP_CLK_AUDIO_AXI_SRC, it appears the SDMA2 and SDMA3 run at > 400MHz again. > > Fixes: 16c984524862 ("arm64: dts: imx8mp: don't initialize audio clocks from CCM node") > Signed-off-by: Adam Ford > Reviewed-by: Lucas Stach > Reviewed-by: Fabio Estevam Applied both, thanks!