Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp383359iog; Wed, 15 Jun 2022 04:23:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhg3XRGqUJeL0d/Yk60I5JUZBILeetkoOG5vR+BZeeRAUmE5rARdIqFwB7fHjFai4hLVfc X-Received: by 2002:a17:906:c302:b0:6fe:a216:20a4 with SMTP id s2-20020a170906c30200b006fea21620a4mr8453971ejz.556.1655292203949; Wed, 15 Jun 2022 04:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655292203; cv=none; d=google.com; s=arc-20160816; b=rZ7enuHwCTpFFPIxs3DPUD1KNnjXWlepZz2Wz212zZO3KuJF13ijhNCeEyHleM3QIM zWGDfA4guahvc50EYzXtHN9voogRsEc41dWfqKODnFTwAqjaszWuZMFyhr774p0msuO7 hPajbgE9+CKg7CvbblhM5/fW9C/U7V1EZzihn9FpIPAAfqGwJnGX7T34m/SxuDncwW2B qh5LsMS6H318enxCwJW7q3Vl8PkjU+jWWvDz/lSULdCbg88kkm+RVzKzTB7+z18mBcYJ yBjFGGvUaQAGS4elEWQLgayhmXHrsEqnHu21sbzOxkRrd+SCf474nPWwLxAJxUHnte7J krNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=djkf/FfgDXQjpgFtLbcdrFgOYkiWD8KOgJqEhWJ/yMU=; b=DWTxjBt76qt2Z3OLSHpvXbpIGO6iF26KhpEe6d9qSf35m9ub7MfWogvKrb8yM7t/wG YA+/9Nb64nEPKPP9xzuICHyoyMvlGc6Jm2EC2IaLTmEK4rrE9q9++fI/7fCsFQmEIMn7 tUnOyuG11oZv5wsRUH1Fjt8jyETpX7tmF3Pp4MR0Uyr3/si/JrYaOHYBZQau6Ys4EJWP Pc51fm8jFU2H5OO/45qBLh14YvbM1E4PS/xiACCvHMGOs/seuyygxS7Y0+lxtmcf/onC rBGKPWeWg+LJu0e+pLW0mXJ+lVAVyzrVc8tCRav0sC8xIWz21Br/2ggkn9MyK4CAF0ts OBEg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm14-20020a170907948e00b00717917b7d99si10805410ejc.274.2022.06.15.04.22.58; Wed, 15 Jun 2022 04:23:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344937AbiFOKah (ORCPT + 99 others); Wed, 15 Jun 2022 06:30:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346519AbiFOK3j (ORCPT ); Wed, 15 Jun 2022 06:29:39 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FF8419B5; Wed, 15 Jun 2022 03:29:38 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7C34B1A2991; Wed, 15 Jun 2022 12:29:37 +0200 (CEST) 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 453C41A28B0; Wed, 15 Jun 2022 12:29:37 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id D5E601802205; Wed, 15 Jun 2022 18:29:35 +0800 (+08) From: Shengjiu Wang To: robh+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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: shengjiu.wang@gmail.com Subject: [PATCH 3/3] arm64: dts: imx8mn-evk: add bt-sco sound card support Date: Wed, 15 Jun 2022 18:15:34 +0800 Message-Id: <1655288134-14083-4-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655288134-14083-1-git-send-email-shengjiu.wang@nxp.com> References: <1655288134-14083-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add bt-sco sound card, which supports wb profile as default Signed-off-by: Shengjiu Wang --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index d1f6cccfa00d..f0d6a3daca95 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -47,6 +47,11 @@ linux,autosuspend-period = <125>; }; + bt_sco_codec: bt_sco_codec { + #sound-dai-cells = <1>; + compatible = "linux,bt-sco"; + }; + wm8524: audio-codec { #sound-dai-cells = <0>; compatible = "wlf,wm8524"; @@ -57,6 +62,25 @@ clock-names = "mclk"; }; + sound-bt-sco { + compatible = "simple-audio-card"; + simple-audio-card,name = "bt-sco-audio"; + simple-audio-card,format = "dsp_a"; + simple-audio-card,bitclock-inversion; + simple-audio-card,frame-master = <&btcpu>; + simple-audio-card,bitclock-master = <&btcpu>; + + btcpu: simple-audio-card,cpu { + sound-dai = <&sai2>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <16>; + }; + + simple-audio-card,codec { + sound-dai = <&bt_sco_codec 1>; + }; + }; + sound-wm8524 { compatible = "fsl,imx-audio-wm8524"; model = "wm8524-audio"; @@ -183,6 +207,16 @@ }; }; +&sai2 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai2>; + assigned-clocks = <&clk IMX8MN_CLK_SAI2>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>; @@ -354,6 +388,15 @@ >; }; + pinctrl_sai2: sai2grp { + fsl,pins = < + MX8MN_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6 + MX8MN_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6 + MX8MN_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6 + MX8MN_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6 + >; + }; + pinctrl_sai3: sai3grp { fsl,pins = < MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 -- 2.17.1