Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp909912rdh; Sun, 24 Sep 2023 18:16:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErA4Ac85YYBTQuFtRqR9zUv70RF+v/WH1uX3oS9M1ZdMg6ZNG2UaDUCzlv6wpast+61G/T X-Received: by 2002:a17:902:d505:b0:1c5:9f52:6a5b with SMTP id b5-20020a170902d50500b001c59f526a5bmr4304792plg.42.1695604578929; Sun, 24 Sep 2023 18:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695604578; cv=none; d=google.com; s=arc-20160816; b=Vp4QUDRcLt+P1khizqveYkguNImGV7nKOEmK0+mzkFaJwUmUvXkuH7AagfwumENsHp NuEP0ttYQhVxsCVmZBW+cov7g9QumnaCYsQcW3auJxMbc+4uIv+BQJCc1bb1jEK2uj/i NBA0PZ2GwNSEH8h2bTqR7+rI+4h/7zvTBwYxTwsivYhwg8iYhTMXrthGjnobT6cwWZ9s LjV5X24jWppdwJdP+hghxds5hnQaLUzcE+PllGgIH93gaegfg5Ai5ngH8p0u+X3Yuxnw KYfb+SlL9ZNhaQOiRNCc2wDYG+tBYyRIPFo8qR3cD8zbbQPaUhdwmmUC26lHztl6Wtnv zHfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XdjA0o/ALiSWKmNeTppOucUtTcVQMwgkvnNuy3uNmT0=; fh=Q7Qln+E61LHYWpeMvpFLmQyLcDTv4wH4GgMiKQhWDBE=; b=TS4Gp7D9VLf+nCiK0QuT2QpWzsX7fp2lQa4iiVXXfEB4y8lCQDchKbngh7yjtAItNB hYewlSkfnD7ZCCcJzS/6FDw03Bkh9COHjAb0sLalU9p/bTJlTxTN8hqdgCVffRh0Xe09 ZrBzlTJmU9buZbxhUkd2YfNTaZr9ngLYUKcbKvh0p3taAr6TuEbHNsCd1ZT58JzQzvgQ mMgU4jK5FUOc259NlmSn13mZ8UORbDn5aA0f8WZMDlMGEme8kMyIQqyQoOLS5DBFy//o ucGGcYX2zNDJHK5GJ8HBTmwteAi/hTQPVrNRPcIfikH4UT4ErVAXW9yoQ/lK3XazjmQU 30PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=joo4UVaG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id kr6-20020a170903080600b001bbb39c68b2si8554187plb.178.2023.09.24.18.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 18:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=joo4UVaG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C45108077A55; Sun, 24 Sep 2023 18:15:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbjIYBPP (ORCPT + 99 others); Sun, 24 Sep 2023 21:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbjIYBPO (ORCPT ); Sun, 24 Sep 2023 21:15:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68A30FB for ; Sun, 24 Sep 2023 18:15:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84EDDC433C8; Mon, 25 Sep 2023 01:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695604508; bh=OoTH/z7nJRsjocyuzHaS3i7q/qJKfFeyOBG9EcrBcPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=joo4UVaG71XsA8rVr0xsLwun4AUIm0EYEba5zZDra7qr/cKm69w5yn7TDqm99io0z QATvZbDjvztYeY42GNCDrC06aRplIxVkjKw2PlIpSHvkRvAvy6AplCdJ0EEIOQa+KB TChpvcsJIjOzTHiEMUyDYhVbSeA2kfmK3uPenfzE36qLpO0mIMnCkoirwj9WkaO7qy W0vf9mTkiSmoWkrm4cesEVEjK6MvDfyewmQ5WKRf/dJB2CH3sKqbTU3Dn42KJcVDkS GBBmtO9klvu81t6GgeUtZ0iZT4DpKkefoGkRmjLliYBC1IdwAS+E3YKRBb6G78S3zx rpVojpL8aMydQ== Date: Mon, 25 Sep 2023 09:14:57 +0800 From: Shawn Guo To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] arm64: dts: imx8mm-beacon: Add DMIC support Message-ID: <20230925011457.GE7231@dragon> References: <20230831115128.254226-1-aford173@gmail.com> <20230831115128.254226-2-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230831115128.254226-2-aford173@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 18:15:16 -0700 (PDT) On Thu, Aug 31, 2023 at 06:51:26AM -0500, Adam Ford wrote: > 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 > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi > index 313e93663d6f..d0dd4c81a557 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi > @@ -6,6 +6,13 @@ > #include > > / { > + > + dmic_codec: dmic-codec { > + compatible = "dmic-codec"; > + num-channels = <1>; > + #sound-dai-cells = <0>; > + }; > + > leds { > compatible = "gpio-leds"; > > @@ -98,6 +105,22 @@ reg_usdhc2_vmmc: regulator-usdhc2 { > 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"; > @@ -228,6 +251,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 = <49152000>; > + status = "okay"; We usually end property list with 'status'. Shawn > + #sound-dai-cells = <0>; > +}; > + > &mipi_csi { > status = "okay"; > ports { > @@ -365,6 +398,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.39.2 >