Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2485398iog; Sun, 19 Jun 2022 19:44:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHygLPX1scMpuxmIaNgGZUdRznNTzo9/srcOBAe/oxgJsVQP11hVjdPxVgJr7kaFe6NVS0 X-Received: by 2002:a17:906:27d4:b0:710:9a8a:85ef with SMTP id k20-20020a17090627d400b007109a8a85efmr19806306ejc.136.1655693076768; Sun, 19 Jun 2022 19:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655693076; cv=none; d=google.com; s=arc-20160816; b=Yop6Ek39wuCYDGNIMGxHIorCz0BTI1fkxWAK3zM+eadMM6oSeWSL/IY6rHD24hK8cJ bbXuEpAOWI6Ei1Mw3HfqMrWNme2j10ZdySyjbNuV1P8+DeQT9aYC146w9rBHnMLjye+S ZM4m9arn2+8lYfk/afcRvTtGG0fCgNrorGO7U4lwhSxo5VoPYoWLcKc5qqWa2DznE3Kg xcPB9QPeJM49tv3iRex88w7HxDLJun8Sbpxsbt2R1pjhjXvOK5ns5yrJA4PZyzMrgvO+ jbCnOUijhgI40lK/NK2MlnEvJEol0lqhcG7zkkoElRVfXGWzv88LYllBpMeCLfKIIW4M HbjA== 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=/wAwQeyD8Ne26VFAEEE1Cpa4u06Ki3IGvASEZ3TFsTQ=; b=hms51hAR6kvpmvHdhKT0Ds1NT5L2cmhwJomUb6OAYBQCQ/BrPAR4rZRiBqGq6G/X6K yGgoB5eZil5P4Mnc/GqHBPCaGAF+6gSubxRlT3VSYmUNJXgEedmX4VFnWO1zjxfSW504 dnQg+OCxU3kS6IemaJGHFKAowPy7ml5RyXgayGQsUHPG3QO6ekq63bcy+eFFQVJ0NEd9 NmUkmm1dzd+MocvHjBRtZsf4/MUB3+5fOXV+Jp+Z9cGE9eFwEdUmCseYGRLwE+YdLUji dnjH4GZtnGeK0Z8jPwjQDoSU8LCWfaI8yQZxwgSQwjzz4tmQBBe9p3ZrtZeJgyFA5yHz Zpxg== 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 l11-20020a170906794b00b007120eea6a89si7921604ejo.12.2022.06.19.19.44.11; Sun, 19 Jun 2022 19:44:36 -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 S236722AbiFTChw (ORCPT + 99 others); Sun, 19 Jun 2022 22:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbiFTChq (ORCPT ); Sun, 19 Jun 2022 22:37:46 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EFDBC85; Sun, 19 Jun 2022 19:37:46 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9CE181A05F5; Mon, 20 Jun 2022 04:37:44 +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 512F61A05EC; Mon, 20 Jun 2022 04:37:44 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9EE151802204; Mon, 20 Jun 2022 10:37:42 +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 3/3] arm64: dts: imx8mn-evk: add bt-sco sound card support Date: Mon, 20 Jun 2022 10:23:33 +0800 Message-Id: <1655691813-19878-4-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/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..23a46dfb99c7 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>; }; + 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"; @@ -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 = <&audio_codec_bt_sco 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