Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2547314imw; Sun, 17 Jul 2022 11:11:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trL4iiniUwSNyUi2/fZLMwf5g84RBCpl4WiyNFMnOhn75bFmI5Lla8VHxmIyqRul2MWLU7 X-Received: by 2002:a17:902:d651:b0:16b:f55e:c626 with SMTP id y17-20020a170902d65100b0016bf55ec626mr24824712plh.78.1658081487904; Sun, 17 Jul 2022 11:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658081487; cv=none; d=google.com; s=arc-20160816; b=fNxHHAGc35bYNRL4bl+xJNno37yuQ+l7RGMngrQTzlo7FtbKk0RZBLprU/altIXEq7 WAiVoFSJXCnVV71n4dy6RBof0aEFng2FUIf9HIOzyu/KLSbw0VD5cDt8EsP4VyJxHVkh BhCkRdSVRWTLB1rbWv40gq1RgCT9PzwXH2yVNCokin8vlLQr3iZhcdU6CbTPufJ/aKg8 um5VMvyj1FfOfch5/X6w7HiLGsEYWGVVmYb1tD990RrW9mOi3V8nKAhjEivTLskkkMB+ 9hop2JD6QrTPD2xuioLbAp5MCFmYuL/rgIvVGlEuxFtEb7usfIajtk5HqKuouhWk+bXo QgTw== 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=745GMJpz3lSWbxLODZBtFB2ZMIv/EUuhk6yiHKFomYI=; b=IpK9q4rvTFIWsHjDtRTfqjMhNhqNBnNO3YUkwiwF3AAI165Z/7FD7L0snHyk2Tl6EA Pp76i4N2dLVrviqjmWqFN6qIICmKuhsghn8/sgHFXRIuE27wSMWbBrcqNedLhMteidM1 1LXpcOD6WQfIuud+dAEAEyRM05AvNtMe3zJQQJhF3w3L0KPspy5/v7augRs73exqIgZd /yfSLYFjsssCewcNVSKTiLBkmJzXeK6tiUjmz2XExNTmY0j9QFwkAXuLVWSu+qlCNgdE NwvKlnvGNI765HOBKOsS4SDaBpIzORDX2+/l4X2z6bq6PifFWjU1Wc8fCgxSmIwd3D3i 6orA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="e0hT/Sum"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a056a000cd200b00528b9bd1162si14535236pfv.38.2022.07.17.11.11.13; Sun, 17 Jul 2022 11:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="e0hT/Sum"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbiGQSKW (ORCPT + 99 others); Sun, 17 Jul 2022 14:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbiGQSKT (ORCPT ); Sun, 17 Jul 2022 14:10:19 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E14DFB5; Sun, 17 Jul 2022 11:10:17 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id d4so5010796ilc.8; Sun, 17 Jul 2022 11:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=745GMJpz3lSWbxLODZBtFB2ZMIv/EUuhk6yiHKFomYI=; b=e0hT/Sum0xdp5UNCix9q2gInMatAxLyvCTYaM2biynNLRA2RXv7aY+cFZ+ulmp9pTl xe2L9SvA1eGpDOnLrMq4FUEEo1k1K7i4LUV/LdkOjpmdG1lOXxnezEAg+qrQFcwh//qz syNXYHoxWC6uUIWXrx9sjcbSLZsPHnZTWnbd4Umr05Emd0/jSXG0QO5IiX1FxdjHbQ5B 0XR3xx9O8so77nnkHyyP5/PDo3e+cy8SO3slIJTtdj5kjnnpALF1G+GNxEfZxrmTUeQQ 4ugXM9Nvu9bjVpnAq9xEVg/iiEUvbCoi7TQbYV9OW6ocy9c68Pyj7Q5Z1gNtZ9DYmZ6o r7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=745GMJpz3lSWbxLODZBtFB2ZMIv/EUuhk6yiHKFomYI=; b=42dIKQxVgm5tre8XHvetqI7SV701Q6xUkatGnkyRNNuJqWboOI5YS/e6lS+MDfBVp/ AZmCgYkP3kZ0yyRo4z/D++mRsdKYPm1bl7IareuaMbL6xBbjDTNC2kufCrlJbkof1g7X 3P12BPWy5S7G2BJJKz5+uDH6cwVwMQYxjQjD1uTToObENbi+XD9cMSSUJYqXdckqkRsG 6EBh+SiSGSFOs8k29YGxyB2wgjEhYyewXANgOV5/6yQknQl6+wIvnXj60zWXxonblZ+G XlxPapB1HjZj7DNUhu1KN7fM/LtDr9FKcOZT1YV9pkHhYWUqL7VgKnn0Wu4VCLa6eeqf P6Nw== X-Gm-Message-State: AJIora+1zq3LA0NIvO1jKHlUcovCymZLXqisJ43sCUTe0jwy2T5EyXc4 IQyQEyR1GmNoefP8agqsziacKZ5PJq8= X-Received: by 2002:a92:b10:0:b0:2dc:e3e:195a with SMTP id b16-20020a920b10000000b002dc0e3e195amr11936574ilf.259.1658081416426; Sun, 17 Jul 2022 11:10:16 -0700 (PDT) Received: from AIO.lan ([2601:448:8400:9e8:8e1b:7df0:7e10:ddb0]) by smtp.gmail.com with ESMTPSA id f4-20020a056e0204c400b002dc1ea52967sm3869136ils.34.2022.07.17.11.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 11:10:15 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: Adam Ford , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] arm64: dts: imx8mn-beacon: Enable Digitial Microphone Date: Sun, 17 Jul 2022 13:09:55 -0500 Message-Id: <20220717181000.1186373-2-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220717181000.1186373-1-aford173@gmail.com> References: <20220717181000.1186373-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_NONE,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 There is a PDM microphone on the baseboard which is connected to the micfil controller. Create a new sound card to support this interface. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi index 9e82069c941f..fa66cc9bf455 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi @@ -63,7 +63,7 @@ reg_usb_otg_vbus: regulator-usb { enable-active-high; }; - sound { + sound-codec { compatible = "fsl,imx-audio-wm8962"; model = "wm8962-audio"; audio-cpu = <&sai3>; @@ -76,6 +76,18 @@ sound { "AMIC", "MICBIAS", "IN3R", "AMIC"; }; + + sound-micfil { + compatible = "fsl,imx-audio-card"; + model = "imx-audio-micfil"; + pri-dai-link { + link-name = "micfil hifi"; + format = "i2s"; + cpu { + sound-dai = <&micfil>; + }; + }; + }; }; &ecspi2 { @@ -150,6 +162,16 @@ &easrc { status = "okay"; }; +&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 = <196608000>; + status = "okay"; + #sound-dai-cells = <0>; +}; + &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>; @@ -232,6 +254,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.34.1