From patchwork Wed Dec 7 10:27:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13066943 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 CD97EC352A1 for ; Wed, 7 Dec 2022 10:29:23 +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: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:In-Reply-To:References: List-Owner; bh=fIgvq3zQGxQoh0BRrk5wkdfN55NkWLZwuTYVK2dd1cQ=; b=Q28ouByGCo+1mt AoG4nO6gWcLcCXn3sFJloDF8/IlXZsxpIh3hEkGVOQ2gdOeZhSvesE2gfJM78esjZr999B3neqVYl OzWqMcJDVPTZB5hfpTfBY586OJZ0Lz1tJGLPqqYqZsBfPH0ZvIBuzMFdb5PsSr9GudhEyA+LWUmW7 jidpxNaKg4QckaQeIAa0PgKQ721ngnHEbIipc4YLbclnht76a+GmeysAYpYWRcfd4ZXxWdQq88eo7 LMfXCPhFxjUWhaR7tLeVI0q9c+yIrHbCXQFNLJYCuOHLnXbq0N9NKBcdUmatksB0HfcP3RJ52TgGJ 6ovw5nRHjKmTqZndIDrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2rew-00HF0u-QG; Wed, 07 Dec 2022 10:28:15 +0000 Received: from smtp-out-01.comm2000.it ([212.97.32.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2rei-00HEp8-4J for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2022 10:28:05 +0000 Received: from francesco-nb.toradex.int (31-10-206-125.static.upc.ch [31.10.206.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: francesco@dolcini.it) by smtp-out-01.comm2000.it (Postfix) with ESMTPSA id 4B84F844A88; Wed, 7 Dec 2022 11:27:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailserver.it; s=mailsrv; t=1670408876; bh=6nY4UGDtFWzpJk/6PJlbB14/CONbBYG3h7N8pHJt1Ns=; h=From:To:Cc:Subject:Date; b=vftRN8+Fd1tmObLurAmkG2gpNJ6LzEYAIOKtRoho6C1YGR7tMA/JXnKUWghC8jxKf ZBjc6lR+tH+ZT13UwY2ijk6AxYX/4+XXLZmQBWOZotRdxR5NCbuEsEsbSApuE1mjI1 96ntVelOsgZI4sa4yf99Nfyfsi2brndzlSJZiVCYc9dpevicSRkXvJ5TTEtI82Yw0+ FcQfyOUIrL8hg8S+LsLDvzUKZpaapUkGaJ9VA4zN6E0LlhLkKi8/lCAwZeDny5WBH7 kKxFblv11gM6jNd1aTdUZWJ6dNKHNtKsZydWsqsdKX20IlL6S/eK+lXTFPjDOeWrft 8hY416BQ19rxA== From: Francesco Dolcini To: linux-arm-kernel@lists.infradead.org Cc: Emanuele Ghidoli , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, Francesco Dolcini Subject: [PATCH v1] arm64: dts: verdin-imx8mm: fix dev board audio playback Date: Wed, 7 Dec 2022 11:27:49 +0100 Message-Id: <20221207102749.180485-1-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221207_022800_393095_1E6D0078 X-CRM114-Status: GOOD ( 11.18 ) 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 From: Emanuele Ghidoli Set optional `simple-audio-card,mclk-fs` parameter to ensure a proper clock to the nau8822 audio codec. Without this change with an audio stream rate of 44.1 kHz the playback is faster. Set the MCLK at the right frequency, codec can properly use it to generate 44.1 kHz I2S-FS. Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini") Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi index 73cc3fafa018..b2bcd2282170 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi @@ -11,6 +11,7 @@ sound_card: sound-card { simple-audio-card,bitclock-master = <&dailink_master>; simple-audio-card,format = "i2s"; simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,mclk-fs = <256>; simple-audio-card,name = "imx8mm-nau8822"; simple-audio-card,routing = "Headphones", "LHP",