Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp347194iog; Wed, 15 Jun 2022 03:34:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZGYzkYD3eRx4A6eJkkCpmeheJgL+TPk7NDHndT/pvWNS8BISd64Kpm0V25eu0164BUGse X-Received: by 2002:a17:90b:2251:b0:1e6:76a8:44f3 with SMTP id hk17-20020a17090b225100b001e676a844f3mr9631654pjb.71.1655289281043; Wed, 15 Jun 2022 03:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655289281; cv=none; d=google.com; s=arc-20160816; b=QQL0QNqB9UuGjURJLtf2rjBKyPuBB7jAmiVR8RnwnyXrbL+5ZyX7TW7Sdr2tseNZAC T/YMcKJyh1nMwIDgdyPuVWYmkzCYoW1F339B70TjaiIeAIProbjKIzMBu70jBqCJ+RB9 KhPrLgTSkhJ0Az0RXxg4YCZfxGX+eAvVCG5hiL+IPwzwynZMlPPUuq3MhnFkBZVTDr9r iOJ46n5s5Wafw1DUslE1WGDS/7C2WRCckXKg2Zx9gBMAvTjcNtZ9Qlc8DYwkog0sSERS +9rw66xNJLrolikIioLbnSbM5kAACUWy+uIApyBTxR3PhJNNStxpfoovaDOfhns2luQ/ y2wA== 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=MzhEAuwWUkILu8wIlMDvPfuMdPGGQEH6zotdrQiIgl4=; b=FD6n+y2y4U4U5ZKKTyQXZ0szwPyjKPaEiYT8sWuN13u8UIVTQ1naY7CxwvD3uvaBl0 1RbA2VtRiUA3vX00y49V6Fm6YCzdcE64NuZAi035URky4GOKk6vR0EtfknyzBeyvDHR5 08pedyIAnU26g7Tig+UwcdThd2plIpC/wZEDXE1lr7mO78GpTcBNHoWtktc8bAdjLfFd bQt11wYKSx225k3qSrHFHXjnI62D3XO87QXGht5tWTFYUv5TeE9b+2IbOW1JW9yCppIQ avVUmC4liJ48K4LwzFyx1aQMkBO/R6nzQp8y8WI5a9nw7nlpmFb8ygKZnH24OTbPuZim h7tg== 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 j8-20020a170902da8800b0016793c0e3dcsi1200743plx.545.2022.06.15.03.34.27; Wed, 15 Jun 2022 03:34:41 -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 S1346496AbiFOK3o (ORCPT + 99 others); Wed, 15 Jun 2022 06:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346597AbiFOK3i (ORCPT ); Wed, 15 Jun 2022 06:29:38 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1089B4BFD4; Wed, 15 Jun 2022 03:29:36 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9C0DF200CD4; Wed, 15 Jun 2022 12:29:35 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 66511200CCF; Wed, 15 Jun 2022 12:29:35 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 061C3180219B; Wed, 15 Jun 2022 18:29:33 +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 1/3] arm64: dts: imx8mm-evk: add bt-sco sound card support Date: Wed, 15 Jun 2022 18:15:32 +0800 Message-Id: <1655288134-14083-2-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/imx8mm-evk.dtsi | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index c42b966f7a64..d99b562bb00e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -75,6 +75,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"; @@ -107,6 +112,25 @@ clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; }; }; + + 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>; + }; + }; }; &A53_0 { @@ -346,6 +370,16 @@ status = "okay"; }; +&sai2 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai2>; + assigned-clocks = <&clk IMX8MM_CLK_SAI2>; + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>; @@ -494,6 +528,15 @@ >; }; + pinctrl_sai2: sai2grp { + fsl,pins = < + MX8MM_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6 + MX8MM_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6 + MX8MM_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6 + MX8MM_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6 + >; + }; + pinctrl_sai3: sai3grp { fsl,pins = < MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 -- 2.17.1