Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3397193iog; Mon, 20 Jun 2022 19:32:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEze/Sz9sk9JgeJh2DBl2zMVLlD2qOQkQv6H89eSBaNuF/X3mSHTsOWKlDpJGQrON2glJ9 X-Received: by 2002:a05:6a00:234f:b0:525:1f7c:f2bf with SMTP id j15-20020a056a00234f00b005251f7cf2bfmr10017113pfj.14.1655778771925; Mon, 20 Jun 2022 19:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655778771; cv=none; d=google.com; s=arc-20160816; b=VbHne8T1qvQ+ow/NGMVeFQ0Gmfg1S2Eww/NMzxRHZPGIbD1IOttkK3g+dXwHXUHo12 Fg8B6OrSerwKEkxOJH96rgrjOpuyibjEg9RLe2Axo8qWyeIpzOWkufiqNXh9jaxhM++o SeAT/lOLIkij6mUNZD4BKf2Q8G2e+tX9IP9Z3WEQ67lmaxYKDN+aKWNtSDixVekuYPFv 7bXVMBoxcykCX40kHKi2lPonalYGydzyozwzeNinsLSfeHuNQWyyKMWj49poUSz3unu9 3pk4lPthFSj57rKSXHiRo9b9ju0nsa4LyWCotVAyJGohbGrka5+islLxKIDExhdDRdfj DkVQ== 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=TW1xb78q1ux7VUdKB2EPHYl2RBzKrSkjqigVCvQHMV0=; b=Un0NlRE6JXrByY6U5qZtridj6oZCKeOhh3Igp1HmBgmUPuTMJ+eJRh6nq4mfd6iWdZ VcEX9PpMNpxOm0Pa3D/TkQP9h0ZPOpavEbYLdER6rCbXKUTrK4nvl+zarI8QpaK3NMIJ KIVU/LM99130XVuS1074NreP+6y/PS5W/LTO9IDA8R41WS0IG4IFD0/aG9xFoDq9U+rW asrg6u58gGpVYnf//Ydl8PTxl2Ocm1VegshQACy7mpmnt/35mpaVEJk+W8XK+4GK9fnY rjuMLCc8MZjVbYnI+4HY/54jUikAv9RPrrrXnbOuNjjtVPYuRrhyJ6RiGN6Q94hKJkxg /8bQ== 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 d10-20020a170902ceca00b00163fbadb5dcsi22277249plg.523.2022.06.20.19.32.36; Mon, 20 Jun 2022 19:32:51 -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 S1344237AbiFUCaV (ORCPT + 99 others); Mon, 20 Jun 2022 22:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344153AbiFUCaS (ORCPT ); Mon, 20 Jun 2022 22:30:18 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04ED218E24; Mon, 20 Jun 2022 19:30:18 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B0AFE1A1255; Tue, 21 Jun 2022 04:30:16 +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 645121A1254; Tue, 21 Jun 2022 04:30:16 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B6AFE180222C; Tue, 21 Jun 2022 10:30:14 +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 2/3] arm64: dts: imx8mq-evk: add bt-sco sound card support Date: Tue, 21 Jun 2022 10:16:02 +0800 Message-Id: <1655777763-21153-3-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/imx8mq-evk.dts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 99fed35168eb..82387b9cb800 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -71,12 +71,36 @@ 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"; wlf,mute-gpios = <&gpio1 8 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 = <&sai3>; + 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"; @@ -386,6 +410,16 @@ status = "okay"; }; +&sai3 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai3>; + assigned-clocks = <&clk IMX8MQ_CLK_SAI3>; + assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + &snvs_pwrkey { status = "okay"; }; @@ -548,6 +582,15 @@ >; }; + pinctrl_sai3: sai3grp { + fsl,pins = < + MX8MQ_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 + MX8MQ_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 + MX8MQ_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 + MX8MQ_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6 + >; + }; + pinctrl_spdif1: spdif1grp { fsl,pins = < MX8MQ_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 -- 2.17.1