Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp42158rdh; Wed, 20 Dec 2023 22:10:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLuiUp6Z4FSxxwf1LdtQ5j6UtLJ55vP+o3OMjjq+hDNFYdXxDUU6ITZ205SJ+dFHvo6lNh X-Received: by 2002:a17:902:dad2:b0:1d3:cc53:ea79 with SMTP id q18-20020a170902dad200b001d3cc53ea79mr4502549plx.41.1703139000891; Wed, 20 Dec 2023 22:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703139000; cv=none; d=google.com; s=arc-20160816; b=HfckdjKZciF8dS5CjzhgQpfAwrKLSiHfhaqzogsMTM3GCGPlYQ92i7f7IlFP6jHmjs LEgJcQ/e318tP1LLiuVVWy555pvCuU+pnjbjQae8MLbm5Jn1DURTuzW8eEgqHORBGtTQ UToNoy2nCy0n3HKh0VLGj9s8SEpM/4E1W6I9ONhDMEOIV906gnud+kfnETQ3nMrZI1xD OMI0NJ8QhoSBOqvjx8Zx91dDNyw1FLD8qRytPRLHamcaOVZr8G7sQ5/DZw8p+/aud7Pv MqUap8qlT1uYn1Cl4dy6Wx7sdbPEAXs8YquIAYs7Kspmp03PmoFnT8IqapuEcnYuefkZ SyKQ== 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:message-id:date :subject:to:from; bh=kUcDA5ZkxJOMKrLzGRlgZPcyESpAqBJJ/u3tttxmdiY=; fh=4f8ZT1vlgEF9opqhPDNl3zHA+ebU6uCwHuC4q7u6ZBI=; b=jOIs4LX3Q/yU0/YGghJMpbY6A+cgVarM/YIjJcR3sAld1PIR2JeVdgI8fxrmU47dzv 0z/ICv5tkstqTlPMlglLD8whhbHFfOsmSOnAR+UIdm2Veb+3lkdYEz6qNKDspQUpXA/6 TW1+003K+P+nMmjATxcOWrIPNAM3xO6/AtxIqcMnJ6Z6pQ3g0m/9ZVChkg91ZtIrvWKG WcrWDdtWiNfIYivirADjUshrn/m3VVegA4ICS4x0hizhELOWzAg9EYnq+DPPELkxDPrB uTuBjL5RqMAsHqHfxWDFRvh5LXGLYL7eLdyxzpJOq+9pnFRRQihUDTMtBfKDsJ+Ntue4 ijMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n6-20020a170902d2c600b001d39bf446f8si958791plc.232.2023.12.20.22.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 22:10:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7880-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6AF69285998 for ; Thu, 21 Dec 2023 06:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D9B9BA30; 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 A7CE8AD58; 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 33DD31A0230; Thu, 21 Dec 2023 07:04:28 +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 EDD721A014A; Thu, 21 Dec 2023 07:04:27 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 70AC21802201; Thu, 21 Dec 2023 14:04:26 +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 1/2] arm64: dts: imx8mm-evk: Add PDM micphone sound card support Date: Thu, 21 Dec 2023 13:23:07 +0800 Message-Id: <1703136188-7222-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 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/imx8mm-evk.dtsi | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index b53104ed8919..9679786dac51 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -151,6 +151,18 @@ simple-audio-card,codec { clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; }; }; + + sound-micfil { + compatible = "fsl,imx-audio-card"; + model = "micfil-audio"; + pri-dai-link { + link-name = "micfil hifi"; + format = "i2s"; + cpu { + sound-dai = <&micfil>; + }; + }; + }; }; &A53_0 { @@ -434,6 +446,16 @@ &lcdif { status = "okay"; }; +&micfil { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdm>; + assigned-clocks = <&clk IMX8MM_CLK_PDM>; + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; + assigned-clock-rates = <196608000>; + status = "okay"; +}; + &mipi_csi { status = "okay"; @@ -636,6 +658,18 @@ MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x41 >; }; + pinctrl_pdm: pdmgrp { + fsl,pins = < + MX8MM_IOMUXC_SAI5_MCLK_SAI5_MCLK 0xd6 + MX8MM_IOMUXC_SAI5_RXC_PDM_CLK 0xd6 + MX8MM_IOMUXC_SAI5_RXFS_SAI5_RX_SYNC 0xd6 + MX8MM_IOMUXC_SAI5_RXD0_PDM_DATA0 0xd6 + MX8MM_IOMUXC_SAI5_RXD1_PDM_DATA1 0xd6 + MX8MM_IOMUXC_SAI5_RXD2_PDM_DATA2 0xd6 + MX8MM_IOMUXC_SAI5_RXD3_PDM_DATA3 0xd6 + >; + }; + pinctrl_pmic: pmicirqgrp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 -- 2.34.1