Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2323081rbb; Tue, 27 Feb 2024 19:48:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs58xfEx5Q3OYNq9tdocEUabXNSft9Z6gSnhHCSDroI48cZp1ArYBxIZV940BYnw2iYhYPE8e+dPgb5+rAy0yQkwH1YUBXp6LHgx6bKw== X-Google-Smtp-Source: AGHT+IHStdx2aifsh97fu42YoSDB6Cm/Wo9MxUUFvSVsW4cM//Ek2oZIyHx2h5bEZCj65ZnID6HN X-Received: by 2002:a17:906:f18f:b0:a43:9ce5:3af9 with SMTP id gs15-20020a170906f18f00b00a439ce53af9mr2843931ejb.74.1709092108183; Tue, 27 Feb 2024 19:48:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709092108; cv=pass; d=google.com; s=arc-20160816; b=hLBNPPK/y08X3JOWgbBd/rvJ9OkP63p0JEul/ncyXYVP8VHFtHBgO2YfhSBEbGS7mi /5oCVSa7fjK8+b40nQ0Jy5sLYTynwSNZDEAxTcDYGTXAq4NYSuTUum/A0ybBa1M8gUTl PhCCHD7iRKZX8JQS8fJnQD3UP7GDnQnAVSrMR5HGitaW86Xuunqvwo4urtC8GCNWKUcA cqIh/JLGDlLBpPMyGpVsF5m8KBlFwK7sNBk/IaAowY6eOkNsfcvRe1b2HQVFTOptZMUE XHfHR3zywDa4hF9cEm8mJCmidCZ7VXCPibCqBlgItBiw/C6mFwdVQ8vikXLXhyy778AP XV+Q== ARC-Message-Signature: i=2; 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:cc:to:from; bh=3jcD8K9Hoq2clU7a6AdO4ElUCIZYjF/UHEtOyo9kS9Y=; fh=pf4qtJTvfIRtNpE/QmTfrrIz5IpTx44zATGDU2cOK0g=; b=zU2MqSpjo0InqKnIRjviasFGExnf4nFt+phwDMmrWhZNGKnqXixuNYGku+yy0HrnxW Uhr0YxIwRExfWUuwExqgmkjbvgiX/cQJSmXtTsOknlN59eD3Ohj+zo0PQYJZVtdusNbi oNCQA4eLm7In7Vz7ah/SHz9HLyKCIGbOfF9C0MlT1jAMEnpu9rLwztS1GbGkb9GbSJHB MJCVIZ1y/j+1z6nxbbh7WYKxK8FhZmQPPm+j5qxyOpFE0tg+/U4tpkpMRYyOWGx/hZoJ x4OPzxyynGSZgv7IwbJSd/HSGItJkeNTXvsDUu2nmsTA04HmkSPAiNEf7Itu/JKGsiEv MVug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-84486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u11-20020a17090617cb00b00a42f801a5b5si1338508eje.920.2024.02.27.19.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 19:48:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-84486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84486-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B8851F241BB for ; Wed, 28 Feb 2024 03:46:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 441E0210F2; Wed, 28 Feb 2024 03:46:01 +0000 (UTC) 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 433F9208C5; Wed, 28 Feb 2024 03:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091960; cv=none; b=QopvdrNk3kuJMcHsTMEULmPxfmx0xZL6noB09OqyWXacwYgLYrSbltKWzmrnJHervHnjCflEwo6aSefIsuc1e4MB+YR6ngPM5/8EO6yFv+rL8iPNhv+Ff7FDutw3xB7V/JpGczQcAqQ4q40c+HS4hUgahgxZyuv4qdylx5yioLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091960; c=relaxed/simple; bh=EPW3rG3kqLWmQW9DnapYjEt7ibW3jPvJkUwuGnNnWvk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=e/QCPFqBi2KR56bO/lwk7ZCl3b1Ww/EsBGXspT4RyEiGh6MgjIxLzhtdu2VhWv9Iiw1v+u8p2Lj9ZgCKX8BerjfNZrbcul1ybtztHmMeUelEqy7nQfIpvPFNMj6+FGP/GAkylR/tC/bsOJM5Ki0xzbaz7WTZne78m4uz1oqMGp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 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 784FA1A0950; Wed, 28 Feb 2024 04:45:52 +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 422441A092C; Wed, 28 Feb 2024 04:45:52 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 58BDA183ACAC; Wed, 28 Feb 2024 11:45:50 +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 Cc: shengjiu.wang@gmail.com Subject: [PATCH v3 3/3] arm64: dts: imx8mp-evk: Add PDM micphone sound card support Date: Wed, 28 Feb 2024 11:30:13 +0800 Message-Id: <1709091013-14026-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1709091013-14026-1-git-send-email-shengjiu.wang@nxp.com> References: <1709091013-14026-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/imx8mp-evk.dts | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 0fc6c0d21cd6..97a3198f2b59 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -145,6 +145,20 @@ sound-hdmi { hdmi-out; }; + sound-micfil { + compatible = "fsl,imx-audio-card"; + model = "micfil-audio"; + + pri-dai-link { + link-name = "micfil hifi"; + format = "i2s"; + + cpu { + sound-dai = <&micfil>; + }; + }; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -526,6 +540,16 @@ &lcdif1 { status = "okay"; }; +&micfil { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdm>; + assigned-clocks = <&clk IMX8MP_CLK_PDM>; + assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; + assigned-clock-rates = <196608000>; + status = "okay"; +}; + &mipi_dsi { samsung,esc-clock-frequency = <10000000>; status = "okay"; @@ -792,6 +816,16 @@ MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06 0x40 >; }; + pinctrl_pdm: pdmgrp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXC__AUDIOMIX_PDM_CLK 0xd6 + MX8MP_IOMUXC_SAI5_RXD0__AUDIOMIX_PDM_BIT_STREAM00 0xd6 + MX8MP_IOMUXC_SAI5_RXD1__AUDIOMIX_PDM_BIT_STREAM01 0xd6 + MX8MP_IOMUXC_SAI5_RXD2__AUDIOMIX_PDM_BIT_STREAM02 0xd6 + MX8MP_IOMUXC_SAI5_RXD3__AUDIOMIX_PDM_BIT_STREAM03 0xd6 + >; + }; + pinctrl_pmic: pmicgrp { fsl,pins = < MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03 0x000001c0 -- 2.34.1