From patchwork Sat Aug 19 10:50:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13358587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59022EE49A5 for ; Sat, 19 Aug 2023 10:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fqw7YKgxfoj13O2CbqnHKK5Qs0Y/mY/uK5ykGP2i90M=; b=NOGprJSaXvH4oi vuw/ZvLIpEXbpZobMAUggMP67loxFUxd+ql9ASsmaZRsE8kBFQg5cNeBJOxaGV1sUg2Iv+yx8+ozI 3iZ960lhA+Bj/JHNDEeWtFA/mecBaPYKKtENYIE1zqY44p/NFcMeLII+aM5sYVTb0QsYWfe6Cqpj2 TweWiKeAIDrxCwLBEZQHDBYzLw2rjgGyx3fg1qFfbLDqaD1+RA++WU7GilltTEDyV57XaFok5r68v 5FpNG/AYvjr2ngXwfQIKb5//gWM/9sALq5ciYLC7cY0bjNwwYoz28ykpCdpbB5Ft9G2tF1ismsxVN Yp+y5FdA8bLC3iXhscXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qXJX9-00Aoms-1a; Sat, 19 Aug 2023 10:50:19 +0000 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qXJX6-00Aom6-28 for linux-arm-kernel@lists.infradead.org; Sat, 19 Aug 2023 10:50:17 +0000 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-34c5fec2a95so2061275ab.3 for ; Sat, 19 Aug 2023 03:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692442215; x=1693047015; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sOHGrFpVbV94GxW582V7S/Br8+c79FnQLF+z0S/cUIg=; b=YackG/t5OxFEpw9bAOamPufsVnsxP/OwqNEwAPvBqI3Pso/gq7E+VnCHZ1D789B2km U598r70iSEb3fPqVFCG504V1gpJnaiBO8rL3Mbe6pXfXyHGAW0Zrg5v+o/EhQXBFsoPK gywGyTBZBxqZhQE/cDt/bTmt2KVNRpDtavjrLoBSluAJpTkN3yl+YtWps1HWR3mv/N3S YLvPX3h32Rnkw/Nw2jrqS3OVYrUI+fFhuIDzLiFYKQylSJKKTdrNX3HLCyeR/TfBtJdQ LI89t/RAvr22J9QtL32vAmVPZjWS9LwWiT70oqdotqROlr81Q7koS4eoRbcuAtMzT81U 9j9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692442215; x=1693047015; 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=sOHGrFpVbV94GxW582V7S/Br8+c79FnQLF+z0S/cUIg=; b=DCHGtA3qex5FHZunaN0J9eK5J/Odx6xeOVqOjlgVjNPezgv9ppiUb8KWxWGw5AfL36 GWkac9bi+N+voqgvNKK58kVmHV6Fv+qXFQmrNX8EwqqtlLWZOY/fxKtd+DqSAhkoGzBj 8aesJOLDtt8O/9v2fRkPjmE06jJ79AEyV0UpV9Ft7pyOMHKTJmCyUDA0/BDKAm/kkA8i K6wnyGGQcTJ5Sbc1vxenyR7tjx8GhPhNQmJmpyPrGSwrXvdnTr/+R3Um+iWHm/+HM+qk IL5OqONfNeVx3ZtP0mOEE8CuiwduipJEIsmsgCJRNGWbSGw4uCI98FJUgaMnTWbjxzbC XeuA== X-Gm-Message-State: AOJu0Yx/QGdgxlnp62udAgqUSOq9WGgqJjKCvzD0W49VgQWq2dgY3WPI sRveP24+b4/PuSJ1aA28S8imYuvG6iY= X-Google-Smtp-Source: AGHT+IGltsqOxipCI150IIex3vtDvzFIfLDHldGuBnX0OVoo2BOEdiVNS0N+e7jqCQFJL5ID4GY4cg== X-Received: by 2002:a05:6e02:106f:b0:34b:ad7a:384f with SMTP id q15-20020a056e02106f00b0034bad7a384fmr2155350ilj.20.1692442215113; Sat, 19 Aug 2023 03:50:15 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:4a28:99c7:cf07:4f94]) by smtp.gmail.com with ESMTPSA id h16-20020a92d090000000b0034ac4ccd097sm1116470ilh.33.2023.08.19.03.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 03:50:14 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Lucas Stach , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 2/2] arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock Date: Sat, 19 Aug 2023 05:50:02 -0500 Message-Id: <20230819105002.132750-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230819105002.132750-1-aford173@gmail.com> References: <20230819105002.132750-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230819_035016_698480_F3299E9B X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 for audio devices. This resulted in an incorrect clock rate when attempting to playback audio, since the AUDIO_PLL2 wasn't set any longer. Fix this by setting the AUDIO_PLL2 rate inside the SAI3 node since it's the SAI3 that needs it. 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 --- V3: Update commit message wording. No functional change V2: No change diff --git a/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts b/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts index 06e91297fb16..acd265d8b58e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts @@ -381,9 +381,10 @@ &pcie_phy { &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>; - assigned-clocks = <&clk IMX8MP_CLK_SAI3>; + assigned-clocks = <&clk IMX8MP_CLK_SAI3>, + <&clk IMX8MP_AUDIO_PLL2> ; assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; - assigned-clock-rates = <12288000>; + assigned-clock-rates = <12288000>, <361267200>; fsl,sai-mclk-direction-output; status = "okay"; };