Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2932327rdb; Wed, 4 Oct 2023 16:48:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHcTMBZQHbciaBPu8rbgb+578/dIDc8oAssZBAvNbbS9GJlJyoSbXXYWNuRkqBaJzFjyiK X-Received: by 2002:a05:6358:98a8:b0:140:f00a:ee2c with SMTP id q40-20020a05635898a800b00140f00aee2cmr4591748rwa.11.1696463291495; Wed, 04 Oct 2023 16:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696463291; cv=none; d=google.com; s=arc-20160816; b=DWlcSTP66pdO62Nh4J/nVkB4PMtyg191w5J7U0qAdNdapbdknbkiwgfig6ENHl32kU h3yd34CdMzHeBjrL0WGwFYA6HDkaT+PfUm+YoNBMkeqZz8mDI5VKx0z+e7xSSWnbFJLq K1hpPDv1nBLgBEm2zao9d38Rz3T5BarjANQDSTGbsu8o+jd77Mz7RL0azbwmWUtUhu37 EaDDeRfC0IGHjfmf/gZu+hR0vVCgjnLkReMtQpkBn3C6VxjCdFK6NmvSHEzHm0Q9+OJV f7e2TLtx2wGIMxJUTCK9a12qukDv0TXhPdxerH6/pn3t3nmydzS1rB2XD7QXASxTIyKW BupQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j7CVoIeubu4fPw7g9XiV9QtZYx1CSj0ohu3WANHYf/A=; fh=gC1cZmlOWiS1CLlwE/YNZ24shETpOEvzCi+90KMez2U=; b=sdQwBH0bcQt+lLBEdB7/JB70OHPwvFUveWG9bH854+nR7HKNZNVVrm+a5YOMsl7p+p dPdWkK03ZSEdBIvatRhPp7vvSCwLE8WifA4Qyedht8pyUVNcOSFEdPaYjWj2ji36x2L1 U9jpXubref++asWit37QZ0mO6/6PQyD5MivAVsu5/bWQipAPWpohXeWkhJ86yjXjxp/u uy5qY+tEcCHiovFmFRGDXABUT4y47ajCF3IhqZAAt49uOx1WQ7/rtt7CeTl+X4aBlHRX 2HIa6IP7Vy0NA1kJFY2qKH2GjyFQMqhtgbUEpdJXoRZbYx+CLpbdZhGBzJwnGmXaYuhz 5wbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Us56DTPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id lk17-20020a17090b33d100b00277453e82fesi412481pjb.87.2023.10.04.16.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Us56DTPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A5D6E82C1219; Wed, 4 Oct 2023 16:47:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243914AbjJDXru (ORCPT + 99 others); Wed, 4 Oct 2023 19:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233418AbjJDXrp (ORCPT ); Wed, 4 Oct 2023 19:47:45 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D307CE; Wed, 4 Oct 2023 16:47:41 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-79fe612beabso19337639f.3; Wed, 04 Oct 2023 16:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696463261; x=1697068061; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j7CVoIeubu4fPw7g9XiV9QtZYx1CSj0ohu3WANHYf/A=; b=Us56DTPmvkEMrMKO5Pvc4M3H5b3SEpDF9betEuNSuLpudxPzEZNQVufbleJK90ewCf yXhmng5Aw36ZLccU/Cmv006qZCkKnQIPrTf+jxEjtLiX7AiT/0krT+nnt0/9Y2oaEGnc 8a6qZeEGJzTEqCGbdDwrPHypB+k0qANuA3oa3HnniWTdVIZXP7PLMUhXotZb5zL981kO 5ZPfE7Qg8UCNas4rCPsu8tCXSA3ydoOxCAXLv6VnYh2HM0iAhBJkPp+BxPlZ1GPS2mfd lGEywjF01BLKjS9gLomgnHfCJxYyxZ1blTciuydW6v2ZkIy20hDs41c4sMPJQJWNFEGp qQ6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696463261; x=1697068061; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j7CVoIeubu4fPw7g9XiV9QtZYx1CSj0ohu3WANHYf/A=; b=ZcbOtEDG1aLy0DiWIT867nxZH47ttU6ewNh0u8vdNzPzxLmadxvtswSGKm8I2KMStZ UDH43fBzUkbnzKcM04gn8O7YyoYHMrRvXQfuuQ+Md6NhVCNhjKfWaqMMUEA9fwuRuTek Vqt3ksfUjF+ZKw0p6751Q7bd9cQAlJ4eACC12KDIJI6RRd9R1Cx5l/5mWzBTAUpl98yR ZjrM0OJK0a3XjZNw1emIKCztvDCOoIaElPdh2jRmXe/4y1sBgxpW9QhMoLNnFQBigOc6 7JhgZSBOyOj4IBKmNWC+2At5pvz/1tCd6WGDQowr/1pRin66BE/6wtBHR1P123qQ33sJ 6NFg== X-Gm-Message-State: AOJu0YwXzxSMBxa8zm+WsVwohLfPL01LRxUgZdWKLvxvv7T/ycBp9qEw HaOU8Apei1ogPVovdTQcEns= X-Received: by 2002:a6b:ea15:0:b0:790:a010:4c42 with SMTP id m21-20020a6bea15000000b00790a0104c42mr4456241ioc.13.1696463260584; Wed, 04 Oct 2023 16:47:40 -0700 (PDT) Received: from aford-System-Version.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id l13-20020a5e880d000000b0079fa3d0d790sm50062ioj.31.2023.10.04.16.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:47:40 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 3/4] arm64: dts: imx8mn-beacon: Add DMIC support Date: Wed, 4 Oct 2023 18:46:56 -0500 Message-Id: <20231004234657.44592-3-aford173@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231004234657.44592-1-aford173@gmail.com> References: <20231004234657.44592-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 16:47:53 -0700 (PDT) The baseboard has a connector for a pulse density microphone. This is connected via the micfil interface and uses the DMIC audio codec with the simple-audio-card. Signed-off-by: Adam Ford V2: Rebase and remove sound-dai-cells since it's been moved to the SoC. diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi index 16761975f56e..20018ee2c803 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi @@ -4,6 +4,12 @@ */ / { + dmic_codec: dmic-codec { + compatible = "dmic-codec"; + num-channels = <1>; + #sound-dai-cells = <0>; + }; + leds { compatible = "gpio-leds"; @@ -74,6 +80,22 @@ reg_usb_otg_vbus: regulator-usb { enable-active-high; }; + sound-dmic { + compatible = "simple-audio-card"; + simple-audio-card,name = "dmic"; + simple-audio-card,format = "pdm"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + + dailink_master: simple-audio-card,cpu { + sound-dai = <&micfil>; + }; + + simple-audio-card,codec { + sound-dai = <&dmic_codec>; + }; + }; + sound-wm8962 { compatible = "simple-audio-card"; simple-audio-card,name = "wm8962"; @@ -221,6 +243,15 @@ mipi_csi_in: endpoint { }; }; +&micfil { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdm>; + assigned-clocks = <&clk IMX8MN_CLK_PDM>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <49152000>; + status = "okay"; +}; + &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>; @@ -311,6 +342,13 @@ MX8MN_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x19 >; }; + pinctrl_pdm: pdmgrp { + fsl,pins = < + MX8MN_IOMUXC_SAI5_RXC_PDM_CLK 0xd6 + MX8MN_IOMUXC_SAI5_RXD0_PDM_BIT_STREAM0 0xd6 + >; + }; + pinctrl_reg_usb_otg: reg-otggrp { fsl,pins = < MX8MN_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19 -- 2.40.1