Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2482814iog; Sun, 19 Jun 2022 19:38:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSA2SmXbV3/ZVodgP8C7dRhRiu8iY2vQXLNQjiXxFHxTHETwOIuZiptRqvQKER+JER0qLp X-Received: by 2002:a17:903:247:b0:168:ecca:444 with SMTP id j7-20020a170903024700b00168ecca0444mr21263986plh.121.1655692721474; Sun, 19 Jun 2022 19:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655692721; cv=none; d=google.com; s=arc-20160816; b=UUrZxidv2hCkHEV8wPX3NhWFiKEsRkbCIVahezFlVP3WMVEWU6O5Mf7VfVIuezxYjk RVsCYy+oH7xy/QWaKF6vzuqiI4YS6rxZ8gs+M+ae5DIJDHZeCkkJr1fhgWrTpzpx3+J4 EoxOYsG0VyD0UZw2wnJO6wEDFIJknSU1UP5k5aK5dV5u/SapZwfUc0dJf67Q1v9dZtwa JxL+AqkWBNF6H8qzRmK/1YhajSohIVkBDKQYEQI9D+SVyy0D2gZ41YWUTWMmZzn0uWYd JAHPcZkQOvOTJP0HGdaFgVEP270B+0IGCemfGPxEO42s4XIfMUpy1eqmVna+hWKX0Cft Gx4g== 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=VLS/ASMM6AKqUI32FAXvEYAj+TP64clpd+jk/6tXSFY=; b=Xw9nVDTZUTFTgyYnTTBabIwrVqTIjVAZIzs4rhLcfQVbxZ67WuAh0N4qOsSflFdNio 56hpPP0ZXz7xsH4wrBIVMDZoVRs5NDqbHRbWc8sH6ejj4UvoQOwAb0pQzVlJTTuts3h4 aYjgvQCegEFTSQgnWz302rVLGmDjr7yUXb0Z/aXkctg9qCIhij4s7ADJwEBXWd+V1bgG Hh/nVgcLEjqrvRx+KHTkzK09Ur7QQRRroN/s1Ru/b42cVMqBLQSpQ4ttBtp4cqINfem+ k3qXXl+Fyi3oRxEbd+0rvje+Aoc6XY3s4hn8nWf8sDoLcUWPxrn0RmgjjfmrihM+FFKQ 05Uw== 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 oo10-20020a17090b1c8a00b001e8927e0614si14009549pjb.171.2022.06.19.19.38.29; Sun, 19 Jun 2022 19:38: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 S235397AbiFTChq (ORCPT + 99 others); Sun, 19 Jun 2022 22:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234670AbiFTCho (ORCPT ); Sun, 19 Jun 2022 22:37:44 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B31BC2F; Sun, 19 Jun 2022 19:37:43 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3B44D20061C; Mon, 20 Jun 2022 04:37:42 +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 E4E6420061B; Mon, 20 Jun 2022 04:37:41 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id C40001802204; Mon, 20 Jun 2022 10:37:40 +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 v2 1/3] arm64: dts: imx8mm-evk: add bt-sco sound card support Date: Mon, 20 Jun 2022 10:23:31 +0800 Message-Id: <1655691813-19878-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655691813-19878-1-git-send-email-shengjiu.wang@nxp.com> References: <1655691813-19878-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..cf734d2a94be 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>; }; + audio_codec_bt_sco: audio-codec-bt-sco { + #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 = <&audio_codec_bt_sco 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