Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2547311imw; Sun, 17 Jul 2022 11:11:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmssW4cgotK3SWGitDO1fFbGpgsmAVYoINIRxzn0hhF95VKh1EC/ii6JxQ2VVeZ2ENKfJZ X-Received: by 2002:a17:90a:db96:b0:1ef:8c86:eb09 with SMTP id h22-20020a17090adb9600b001ef8c86eb09mr33825751pjv.22.1658081487907; 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=C6HRI36EHc2dioRHq698JQ9H/tVxWH/Mph6R3Nym9KLhD0E46l6gxrt3CNH4NpGRoW n87iSHMWTzpuJZiYoYX9mv5eXm8GrOdV2ZD0CpX0Ig/pqBhS4dzpdWiUPrvhKLYEM+z0 k5Bi9kIDgq2dfQMdhU3ApmZybJmdHkadTKzL9S5jelVICxePAzYZ1dsr9Uuw8BUeGASs dAxiLcOvA5jfSYU7Y88belwWjSwsTGBFvv4jjkOJyGDoFxqjRgcO+zoxKsmPzWpjw3ur 8wfG9mJRRSXKZEDbtlYzdgoMDvr71i3qER7D3UCuW8fxQcRUJCjqeJnmdfZyRg8y1ygH qMIQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=U4N3gZV/nuDX3nI3v1SIMvgTdRQ6+jjx/bi21jCcF58=; b=cQ0awEsXZYWJrvHhraoCIAdkpTCN1D3PFzu1aD4N5CSjCfosWBWd2Uvnr94S7/B3pL S1QSy0YJrzr3Mn8OhPDvpKFR6cEEy5gRO0+JJ1DxKnsYpHn788PXN5So7PiKneqGL8Gc MwBRJT85Yj02JtBZOofGjHqiXprmGivomM3gx0oOWyj31vPfYZnSE/TYuxfD2UNb7Qu0 5PYuzZy2dkvGdtUTaXio1WC/1XpFe+oihRnbNodNE9E25yudWBwqMOFnLybLXgCOyz8I C21Krkf9iRBzt90LLpcOjTTWfZipm7Lic3RY4nuHbtzZs4Zwp5kYwr2pNUYvdWq6n2FS kboQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fbMFkRxC; 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 200-20020a6300d1000000b0040cf878fc67si12610324pga.717.2022.07.17.11.11.06; 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=fbMFkRxC; 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 S231346AbiGQSKT (ORCPT + 99 others); Sun, 17 Jul 2022 14:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiGQSKQ (ORCPT ); Sun, 17 Jul 2022 14:10:16 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2EDADFB5; Sun, 17 Jul 2022 11:10:15 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id 125so7747681iou.6; Sun, 17 Jul 2022 11:10:15 -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:mime-version :content-transfer-encoding; bh=U4N3gZV/nuDX3nI3v1SIMvgTdRQ6+jjx/bi21jCcF58=; b=fbMFkRxC5NTeyMwXvTwiDCLSGPFvItl2hxsrbmGsM+eu7gMvba4R9PHXt1ILQHDEiM oLAQkwjVRoeMG6POUBsNhbeS6/+CqpUtb+679XVYs3ZuAnv0lXrFuetcTdDpO1QIJ3wZ 6RW6PQa8OgD1RWHLqNuN3ScgHVL5Wj4CUWXdHgEsvQCKuJqxAXPF6Q9TX5NBgaVA4lM0 HJHu006+pZ5P5X1hHMTM5kvOu5Wy9W0eMl83CbwkJsFm7z1mSSZbCVCMfKHJLelHi7SA eAk8I5D39C/8dX74Ox3t6ndaDmU2dNRDtNn8uB3CDJjgg3QO8U+xNUI1mcP4j7IS05+X HYmw== 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:mime-version :content-transfer-encoding; bh=U4N3gZV/nuDX3nI3v1SIMvgTdRQ6+jjx/bi21jCcF58=; b=fat8ilt19+ceyKcRkuAcw2WfF2NE5t4qrGxMzNUqEbdVpGbyBkgdYXoV/mXhT/N1HW hpvuDKjn5gf6MyB2JmWClxp3BsbTJ/No/wYjQFak4KVKdtYZeQbxjv5uUo8652d418p5 kOyyZK0sOtQuoPeM2YlwuN+VLldYygiuZQ635MPFb2TmYGlBPQUYVPkhV26HR45UjPNA GU3zrpQlKfmKutExoi3MANANIq2DV+wZaUC6jYq2Xp8P/EHn1YYmk5XwxNMfWZKRfbqW pkFM0yeRq9VRy+NngII4WhMV5Q1LJPjp/SL5+DdETCheKXb5DPle1h15UByqrUrXtwGk ZzAQ== X-Gm-Message-State: AJIora/0CFGWPdk9PeqqpOiLSbZUN82OlopboosmYoZN+7lwJvJW4zjb Qjy1ZfDYhTof003sekR0ujpQI5quke4= X-Received: by 2002:a6b:b40c:0:b0:67b:e564:f977 with SMTP id d12-20020a6bb40c000000b0067be564f977mr5612709iof.130.1658081414825; Sun, 17 Jul 2022 11:10:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 11:10:14 -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] arm64: dts: imx8mm-beacon: Enable Digitial Microphone Date: Sun, 17 Jul 2022 13:09:54 -0500 Message-Id: <20220717181000.1186373-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 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 port 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/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi index 03266bd90a06..16444954f873 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi @@ -98,7 +98,7 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; - sound { + sound-codec { compatible = "fsl,imx-audio-wm8962"; model = "wm8962-audio"; audio-cpu = <&sai3>; @@ -111,6 +111,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>; + }; + }; + }; }; &csi { @@ -215,6 +227,16 @@ pca6416_1: gpio@21 { }; }; +&micfil { + 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>; + #sound-dai-cells = <0>; + status = "okay"; +}; + &mipi_csi { status = "okay"; ports { @@ -354,6 +376,13 @@ MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x19 >; }; + pinctrl_pdm: pdmgrp { + fsl,pins = < + MX8MM_IOMUXC_SAI5_RXC_PDM_CLK 0xd6 + MX8MM_IOMUXC_SAI5_RXD0_PDM_DATA0 0xd6 + >; + }; + pinctrl_reg_usb_otg1: usbotg1grp { fsl,pins = < MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19 -- 2.34.1