Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp42165rdh; Wed, 20 Dec 2023 22:10:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfDZfjAjrttIw/lS8C1+dWhI9lxV9ZlxXiTMP4q2l5KPlXoL8xScXPRY7m/IRR5IQsM+XD X-Received: by 2002:a05:622a:1a85:b0:425:4043:50cd with SMTP id s5-20020a05622a1a8500b00425404350cdmr28271091qtc.92.1703139002289; Wed, 20 Dec 2023 22:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703139002; cv=none; d=google.com; s=arc-20160816; b=h0E4MGY4wiuN7ttislO5TSxWODm3oEGUPg11T3osGKRbfxfo+MF1/yntqOij5ZI2Zr N7FbcGAqWUiI7V26NH9P48t892ZlupkKCAiIC6POR+6eJFk4j5IXNm2lWcEoxgPNFRpu 1hYGSX++mRWeHgZjdKoCJTEt3ZsrW5ketxISi5dFsHeNSqRtXIxzwqdTMt1k2AGnS20j 6GYrE8iffVGymOia40ZZez1sPKgMsztNMS3IcOhWJ9G3wAHrX+0HUTcyQ1Imzw8fZHbW 2+rA65NN4OGoid3Pfl7+ztnzSTSeEM3wunD1+rSWg20L7Y6zoxujNBkD6VRccFqeJNn2 /BSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:to:from; bh=MOgKzq8r247dhiAA2k9z+o+zF61Ny9anNu9ohf5pBd0=; fh=4f8ZT1vlgEF9opqhPDNl3zHA+ebU6uCwHuC4q7u6ZBI=; b=nzZOARuZMxr2s78+ZiXsOTCsbRZR3wIpBsig7Cc16aoWwK5r+LSo+8sMZZSoYvCtDt yDIOBLMEKArmRdOd3w9HmXhL1VH0u8RoNszrcBwZoOU9tCt/rTkQFxbSzvOPdZhu0bT5 CMKrC/IijQnI0RSVwzupgAHd7X5g6qHfsiqQb+BSazxSj481bjOEzOfRxzYmaA45vGgg KReR7p4YbMrM83EsMs7wr44fIFDypEmUPENO/0NuPxCUPEu7ibZ+aiHQMi+MjLaPkJ5o x+YVJj+uD2sS4js/CB3ub7tV/H/pCb6YIqkv/DEu97khxDo4GS328QegSDh/VTLcmS+i 7m1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y13-20020a05622a164d00b00425fea03c12si1453054qtj.388.2023.12.20.22.10.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 22:10:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E99D1C223C9 for ; Thu, 21 Dec 2023 06:10:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D17EBA39; Thu, 21 Dec 2023 06:09:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7D1DAD5E; Thu, 21 Dec 2023 06:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3D8441A06C0; Thu, 21 Dec 2023 07:04:29 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 079A31A0280; Thu, 21 Dec 2023 07:04:29 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 7EB8B180226C; Thu, 21 Dec 2023 14:04:27 +0800 (+08) From: Shengjiu Wang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: imx8mn-evk: Add PDM micphone sound card support Date: Thu, 21 Dec 2023 13:23:08 +0800 Message-Id: <1703136188-7222-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1703136188-7222-1-git-send-email-shengjiu.wang@nxp.com> References: <1703136188-7222-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add PDM micphone sound card support, configure the pinmux. This sound card supports recording sound from PDM micphone and convert the PDM format data to PCM data. Signed-off-by: Shengjiu Wang --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index a0e13d3324ed..7d055b63535a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -110,6 +110,18 @@ sound-spdif { spdif-out; spdif-in; }; + + sound-micfil { + compatible = "fsl,imx-audio-card"; + model = "micfil-audio"; + pri-dai-link { + link-name = "micfil hifi"; + format = "i2s"; + cpu { + sound-dai = <&micfil>; + }; + }; + }; }; &easrc { @@ -285,6 +297,16 @@ &isi { status = "okay"; }; +&micfil { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdm>; + assigned-clocks = <&clk IMX8MN_CLK_PDM>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <196608000>; + status = "okay"; +}; + &mipi_csi { status = "okay"; @@ -522,6 +544,18 @@ MX8MN_IOMUXC_I2C3_SDA_GPIO5_IO19 0x1c3 >; }; + pinctrl_pdm: pdmgrp { + fsl,pins = < + MX8MN_IOMUXC_SAI5_MCLK_SAI5_MCLK 0xd6 + MX8MN_IOMUXC_SAI5_RXC_PDM_CLK 0xd6 + MX8MN_IOMUXC_SAI5_RXFS_SAI5_RX_SYNC 0xd6 + MX8MN_IOMUXC_SAI5_RXD0_PDM_BIT_STREAM0 0xd6 + MX8MN_IOMUXC_SAI5_RXD1_PDM_BIT_STREAM1 0xd6 + MX8MN_IOMUXC_SAI5_RXD2_PDM_BIT_STREAM2 0xd6 + MX8MN_IOMUXC_SAI5_RXD3_PDM_BIT_STREAM3 0xd6 + >; + }; + pinctrl_pmic: pmicirqgrp { fsl,pins = < MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 -- 2.34.1