Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3404324iog; Mon, 20 Jun 2022 19:47:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vU8xiViQD4o9uxxHu2BzaLZscB5PPtgSHM4DW8aFR5CfQY1U9fxWIWHpgRgW1m8j9jifCP X-Received: by 2002:a17:907:94ca:b0:722:e1e0:1857 with SMTP id dn10-20020a17090794ca00b00722e1e01857mr1552672ejc.2.1655779623518; Mon, 20 Jun 2022 19:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655779623; cv=none; d=google.com; s=arc-20160816; b=V5c+xXiaKK232BSm/OR+Ne3k4ZfwhLJI1R5GVCxCJczhr32D2CFGry8Y049vuD8jCU NvHZje6WYpmXZdMgVilwRovfIfN4tW7Hz6iRkA0Hjaf8thMAQjF6qWAGqy+6QhYpYLGx U2Rqzbfcfyn0tby6dMn7gyA+dOgSwTePOYFV0KqcsJoiz+A4pgXBELvFXN0/w17mVFM+ GmVP+ZtsfqF2Hdmfbud58DUJhvT/5rGZpuTHFsJO0KyZjj/AZLUN1H++Qp4B9n5FGnT8 g23ZCJ3x7y786rKMbzOq780El6kYcpavR9eHgdIzWY43KZ3muz0KMSV0AHHuXwObPO40 CMTQ== 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=VdqGyzKmI+lHnh5lW+WkuRNgcRRqeuzEx/PJsviUP+w=; b=sH2USfLEyjJRdv8K+Y8t06zmGZDBxc/+ioz0FTFuZBGcWdwcL4InWzM4/NTk4ccwDz 7xAfLgTZ4U/aXl9qz5S0SQ0HXeapzVhAlkdHssltZBPu0xQ4X3ciz08bBZOpA9zwguyX g7cNH/f0VB1wD2pCzyzTXuDDkkcmHlSzrBuCfqWzlme2thdod9NjDkOH6MR7YaPkQtNR KYn/lqmlUu35IPTBmGik/v6l6HUxbOr+tWP6vtdnnbZltlVHQJbiSpPvhj93DNjl6jAN rug7hw2aeEaelPKDtyCyltuJv7bnEidaMHEywDUVhVieJtvLF0FZvRoJtRSxA4hFoOFJ xeBQ== 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 h11-20020a170906854b00b006fe9a0289d5si16530023ejy.885.2022.06.20.19.46.39; Mon, 20 Jun 2022 19:47:03 -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 S1344158AbiFUCaS (ORCPT + 99 others); Mon, 20 Jun 2022 22:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344076AbiFUCaR (ORCPT ); Mon, 20 Jun 2022 22:30:17 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1954A18E24; Mon, 20 Jun 2022 19:30:17 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C35601A1260; Tue, 21 Jun 2022 04:30:15 +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 770251A1247; Tue, 21 Jun 2022 04:30:15 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 74A81180222A; Tue, 21 Jun 2022 10:30:13 +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 v3 1/3] arm64: dts: imx8mm-evk: add bt-sco sound card support Date: Tue, 21 Jun 2022 10:16:01 +0800 Message-Id: <1655777763-21153-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655777763-21153-1-git-send-email-shengjiu.wang@nxp.com> References: <1655777763-21153-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..7d6317d95b13 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 { + compatible = "linux,bt-sco"; + #sound-dai-cells = <1>; + }; + wm8524: audio-codec { #sound-dai-cells = <0>; compatible = "wlf,wm8524"; @@ -83,6 +88,25 @@ wlf,mute-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>; }; + 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 = "simple-audio-card"; simple-audio-card,name = "wm8524-audio"; @@ -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