From patchwork Wed Feb 28 03:30:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 207657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3123780dyb; Tue, 27 Feb 2024 20:03:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU8f89qjCuL46Y6DoIoaX38iu+3ioYxwJp0WthUpJklBSE8vSEKc7V1uTGAMMc9tvtTVNE3RMm+gM+0FZhHrAWaw+iNbQ== X-Google-Smtp-Source: AGHT+IER2CM2MHrBGXHeOu3SeFnT1yVX+R0oUKwPuz9jNWpJTkECdL44FmJEibScqCMNgGEYQ9mF X-Received: by 2002:a05:6a00:84a:b0:6e5:5425:e285 with SMTP id q10-20020a056a00084a00b006e55425e285mr2134198pfk.13.1709093010002; Tue, 27 Feb 2024 20:03:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709093009; cv=pass; d=google.com; s=arc-20160816; b=Yu9gudbPjFWtrbhUZ1axmG6PMf4GXd0HO+LMv6Jh8le3QCzNulITnK6lCKS+j82/kk 8kUz+9Sf8Wbkiek9OFwTuyWBx68RGZxgF/2X4oeDGyhaDEzEWJ20e4ixgisbCxVAkEhK 7QUkRpLYq0tVZdBlppK+WdRTC+ZwV3BfAGEeeNoS3l4WPeiUIxo4qBPp9B7gpEiTT98M KSp0MrPntuAHYSjMgJB4ML7fRtOAaWA7LRI6k6JyxPAI8Nm/bxkjnh299KOCVGk7mzP2 h3OObziRMWHDHmbOZXqrGJvoPoFwE1UxyjR5Vckiu3b+bl8eDexD9VaoXWdyinFBWIzj 8nyw== 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=TSX4wZweNrI69dx8uEkrvHhqijfweXneRmTpKngSkdQ=; fh=pf4qtJTvfIRtNpE/QmTfrrIz5IpTx44zATGDU2cOK0g=; b=AGX2Bedxb5hA++oKHIuybnY7EAZKz2Nycd1LMGem8ZuyIYmLU9UDjHc7puXUCdgkFI tjQ8gl/pyo9AX+4phH0erUPKCmfIWwoA4iVf8aLlTDTTli6fWCrmGQFOZ3UcToC/T3WA dQ6S4jKu9bG/awI+VGerHKoSeWOIw5nw2e4eZOc2Uw8tCfhk3bhlIyOOv/2PlJa92C7H 9gQYb/x/QZd2ZQQ2MB62c8yHMlgxOLpkWHlms2wXPPjXpYaAAcVZ8LUcvW5K+pTV4Bgm adp6m20Yg7N9ZWVcqolCZhJFSgSgpA/EBjRGobswEkQkwc+3zsx4Vx5KZog+jSnQxGxC gf/g==; 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-84484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u16-20020aa78490000000b006e55a7d0572si854793pfn.273.2024.02.27.20.03.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 20:03:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-84484-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84484-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 82A90B23E0C for ; Wed, 28 Feb 2024 03:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76CEC20DC1; Wed, 28 Feb 2024 03:46:00 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (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 62F24200D9; Wed, 28 Feb 2024 03:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091958; cv=none; b=RZc87D7ayZ7TWvW6J1eWNGIti7rquy2NjCkLsJPUVbcKpZtdvox6ipxBcASG1hGTE++TijBTJ6t3BuCyTCUXkR5ORi7zULowSi366SxJAIii1HDepmIVYOjXK16wDo3A1qPLCMln5PZGQf5YPJVghgOaVT4m1JDVQ5aMi0TO3mA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091958; c=relaxed/simple; bh=Bl6rPM0HshEr0zUSycYE2FZ028iFBKDgUFeyLWaVT1c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=UR/jNFHDOt+S2vFR1cIu7VnlXuXOpfGh9yyjNnUN5JmsuJVDB1GLNgK8AtbEHFl80IOrKR7+uWczKFgGYFkqeYrqrMdqXjHRlgrZ2ytny5hHdneg8mWsWMI7p2CeQ6SJ/R1MIzPsM1tkyVpD9Xn7Xq3bIErMK6+Ya0Soot4CrzI= 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.21 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 inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CBB422008AD; Wed, 28 Feb 2024 04:45:49 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 948472004CF; Wed, 28 Feb 2024 04:45:49 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id E17D4183AC0B; Wed, 28 Feb 2024 11:45:47 +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 1/3] arm64: dts: imx8mp: Add AUD2HTX device node Date: Wed, 28 Feb 2024 11:30:11 +0800 Message-Id: <1709091013-14026-2-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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792113912369025571 X-GMAIL-MSGID: 1792113912369025571 The AUD2HTX is a digital module that provides a bridge between the Audio Subsystem and the HDMI RTX Subsystem. This module includes intermediate storage to queue SDMA transactions prior to being synchronized and passed to the HDMI RTX Subsystem over the Audio Link. Signed-off-by: Shengjiu Wang Reviewed-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9ab9c057f41e..721ab630d895 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1513,6 +1513,16 @@ micfil: audio-controller@30ca0000 { status = "disabled"; }; + aud2htx: aud2htx@30cb0000 { + compatible = "fsl,imx8mp-aud2htx"; + reg = <0x30cb0000 0x10000>; + interrupts = ; + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_AUD2HTX_IPG>; + clock-names = "bus"; + dmas = <&sdma2 26 2 0>; + dma-names = "tx"; + status = "disabled"; + }; }; sdma3: dma-controller@30e00000 { From patchwork Wed Feb 28 03:30:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 207654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3119251dyb; Tue, 27 Feb 2024 19:48:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWBnX4U1VwnOtaWzYz+NX6bvKM+2UZUd1vV7mabVB6sPgtRyJFwwemQ3oldlf8SXNrC/CMw2MyaTHcPMuFPq6IGS2it7A== X-Google-Smtp-Source: AGHT+IFHdDu101Lx/Y9UJtLvVQqOcNxt0g4yGgNMTDUy+nLWcJEzoHcCC2Y+mGtolziaoR9szh8b X-Received: by 2002:a05:6512:1089:b0:512:9e57:375a with SMTP id j9-20020a056512108900b005129e57375amr8513995lfg.53.1709092108954; 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=axX9gIocqhZdRBMtdaupvNUfCOqSnJmpKc70rqn0h2TeLGBmOSZ3PvEoc51CmHm8jY hDliVNejjH8rt5jBALPGtR+ky/JYr7qBPIATxHRWVZneMEjmm1tWB+fDv8P0YOpz5boV i/OsMztMTX9dJeRvijv2INNWznwWz3Ta/G0x3Vr4+qp8M45LsRxIdob64z2S4DreHvnG PQ+y8Qw8F0XIzhW2eQarkYqkgcs+RC85KNq1Li/pdROkWdYUru8Yo728U0a1Ddhv1iPD dfXvOYA/JR+/uJ7X9MSlEOr/1wPcLTZa54+uwQWuIhPqbCTFuRXzevE/ysdozZb+7kyq eiwQ== 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=+M1GV9Ii/imFwxspUx+SefxnrAFLDUfdzCexqBrHTiY=; fh=pf4qtJTvfIRtNpE/QmTfrrIz5IpTx44zATGDU2cOK0g=; b=QVYvrvJqwD/ca40+gypzINu6hTgZT+NH0rpyteteJY9Pz4VzZospOFHPGMblmVlaia AwrE36VoD5KIf63Z/H+uycx0hY9GGpvOADLWL8CbtxJejnb1tDzTLC8wEYObaToxYTTo BeurKY7PiNFqTU1iLyzrBy1pzPsupsQkk6+s35qi9LLw9uB/MIWe2Jel0GqjY2pQni0s yOLM7LFuFT7bR5QHMBusjA6b6hOxIrFmNhGc+W04YhDQ0uQ+hGPgDOhPqSpVH91kTIt4 fNNOa9qXsgcPkghUv7gUoAUZYy8rpM8hfbpZ+bBg4V+PtKVi7SvnsDy4cIxivUoFiCt4 Vyiw==; 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-84485-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84485-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dt5-20020a170906b78500b00a43df6f5f18si566410ejb.364.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-84485-ouuuleilei=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-84485-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84485-ouuuleilei=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 8BA571F2494D for ; Wed, 28 Feb 2024 03:46:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 620E0210F9; Wed, 28 Feb 2024 03:46:01 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (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 4F5EF20326; Wed, 28 Feb 2024 03:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091959; cv=none; b=YW4ON3dAmqITyUnizmxTEHD21BaEKdhgotNDcel9oEssU6vj9yHomNCDt/6gWQT1xZQwuZL7KtpFklf5n3wtJ0IWTAn2NZdv4DiND2lknuxwpNYo/45aPO0xBQRX0aiIzjTfSu3BMx0M4q8qxvn2VMldNOKw2woDuGfRPhlLeDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709091959; c=relaxed/simple; bh=o9AKhhrUjjEa9ygiLSi6bumMhk18O6Eq1q+lO8hXIks=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Hr3B6jb/qnYBM98mxuwi0rMl4o1xMAPXRWITBR0xYZKfPhuWFW/9XJTZIKwkM1FILfFPn/hlnI66dnpZzI6csRC7KQvfOc6fULoBwJbtzomZTq7Pl+TaaoW7lWdTldCkw5LpgChT//0rgH+i1yuR08KSW2DlRjSeSQAiM7B+x0k= 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.21 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 inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 115B2201345; Wed, 28 Feb 2024 04:45:51 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CB1112008BE; Wed, 28 Feb 2024 04:45:50 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 23DA6183487A; Wed, 28 Feb 2024 11:45:49 +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 2/3] arm64: dts: imx8mp-evk: Add HDMI audio sound card support Date: Wed, 28 Feb 2024 11:30:12 +0800 Message-Id: <1709091013-14026-3-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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792112967156859710 X-GMAIL-MSGID: 1792112967156859710 AUD2HTX works as the cpu dai in HDMI audio sound card. This sound card only support playback/output. Signed-off-by: Shengjiu Wang Acked-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index f87fa5a948cc..0fc6c0d21cd6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -138,6 +138,13 @@ simple-audio-card,codec { }; + sound-hdmi { + compatible = "fsl,imx-audio-hdmi"; + model = "audio-hdmi"; + audio-cpu = <&aud2htx>; + hdmi-out; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -191,6 +198,10 @@ &A53_3 { cpu-supply = <®_arm>; }; +&aud2htx { + status = "okay"; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; From patchwork Wed Feb 28 03:30:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 207653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3118778dyb; Tue, 27 Feb 2024 19:46:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSGbvTAG8hfI4lhrKJzfyRqchiOiCj4VuO4LcY0UTJqvYksGX83+13HqPsSOhlfXt4kAFsHE4l2VCRp+KHLLyGsLKi9Q== X-Google-Smtp-Source: AGHT+IGBVN/TMbP7CYrjlsyFKQNSZct4Tr5nr7Jj5chlo+DtW97VjLYqrRKuXrZSXp1nOb8CwP19 X-Received: by 2002:a05:6358:768a:b0:176:29cf:7b3a with SMTP id e10-20020a056358768a00b0017629cf7b3amr16041687rwg.12.1709092009075; Tue, 27 Feb 2024 19:46:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709092009; cv=pass; d=google.com; s=arc-20160816; b=CaWu/rLiaeB1kBqhOgF0jIHhodG17RrWFh3rKp0JAbBuC2QlbTxiXG/Y0gWSmawmlg yS6zyNWqs2U/0OvuR4UygpQekxnlqfW87uK9g9b0jYSM7i3kk+plo+9HbWJnh/U7dixe sgyYDSxqF9+KyGgJ69BUykjQR0LQKr6WUhpBwbS01ALUfvQMEpESODFGhemNxwSR4qpL OBl6MFgG6y7C8NbfVKWYyEJBYR9GOUiFBKO18QZnW0IJbX/fr6A7cDw3AB6qRaXarByj /e98CzAn7ZPol1X6KuqjpMoNe4aMDCjZOp9qjLiZ/fdi4l7J5peaYAmYXU6AOtDvmRbb gvKQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84486-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q10-20020a63d60a000000b005dc41faf522si6604603pgg.790.2024.02.27.19.46.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 19:46:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84486-ouuuleilei=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; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-84486-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84486-ouuuleilei=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 AD33028B952 for ; Wed, 28 Feb 2024 03:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EFED21362; Wed, 28 Feb 2024 03:46:02 +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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792112862559187970 X-GMAIL-MSGID: 1792112862559187970 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