Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1008382pxy; Wed, 28 Apr 2021 20:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK5x4mlmKeymEdllnalMlyqkwRi+P/D0i3tcpBLdBRGvlwWdm9kzr7xZEzQ/HSOG2sQCcm X-Received: by 2002:a17:90a:4593:: with SMTP id v19mr7160637pjg.207.1619665751723; Wed, 28 Apr 2021 20:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619665751; cv=none; d=google.com; s=arc-20160816; b=Jk3xKgYoBK5aT+deHVZ/T2J+Cg/IWwyP8QJKbCNX0zOY6xc/BZCnN4Dd52xJQtAnqe kMEM4UdheNtQWzzMYKwHlZPwVMQ39L1L4LbSOk2nfnD97ZXbgknwn+7AYwtJRlhRU43y xM4t5CfB+elP5DaArlXyPTvcxnV90BW0iZmcNmPbN3tGCH2d1pkgLz4VOjAatNN4Vm6p MLWQhZgYjNCrIToZ2DjoQq3uEavGHoXpQBiGLhGgpSMbUR2Qf7xt2RVeOpuOuUovXU/v 3//I8xkMKEb9LWO2KZIZNG53qsr4x1LlgfDIBmdMVTOAGfVUPjp6YtAMe7VbMogvjPV1 7Mog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from; bh=qHptHWmAyEZomrTHt0EA0NZZpkitkzeaRnbrEskHp0M=; b=Nu2LiXUvj+WtOArKAIUm38lOtY6viUgLG3assNqjADWoYq3cAI6W31xU+EMAq9fADU lK5fpJKt+a5njNJyEg/XB0zJ/8TKx/gFmCNFq82dTlDu1EEx+hGPNdHyDSJJLe4Rg/fh Fnb4y8KVubupxHkznYIh8+DSwS2hDzG2pN6+QhjCLLpZEjKAZ9jvQTANRiMyIPwQv0Qq DceTzOdwoqqv/wv/UAoj9wSaSIfHH+j6WSbANQZJBBscSYEGX6Eeg5RgJS/ajLkcs2JX qaWVserUC2n6t6lWNuyUWJAvCkuBroRS4ncoF+aUdchGCluepdPh4r1dvvXcy+MAiO2D uSBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si1723431pgs.182.2021.04.28.20.08.59; Wed, 28 Apr 2021 20:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231874AbhD2DIv (ORCPT + 99 others); Wed, 28 Apr 2021 23:08:51 -0400 Received: from inva021.nxp.com ([92.121.34.21]:52316 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbhD2DIv (ORCPT ); Wed, 28 Apr 2021 23:08:51 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4B9FA20235C; Thu, 29 Apr 2021 05:08:04 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D00DB2011B7; Thu, 29 Apr 2021 05:07:59 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9377840287; Thu, 29 Apr 2021 05:07:54 +0200 (CEST) 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, shengjiu.wang@gmail.com Subject: [PATCH] ARM: dts: imx6ul: Switch to fsl-asoc-card sound card Date: Thu, 29 Apr 2021 10:52:19 +0800 Message-Id: <1619664739-12589-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is issue with simple sound card, the simple sound card can't configure the pll of codec. [ 115.352669] wm8960 1-001a: failed to configure clock [ 115.358843] wm8960 1-001a: ASoC: error at snd_soc_dai_hw_params on wm8960-hifi: -22 So Switch to fsl-asoc-card and the fsl-asoc-card can support asrc module as front-end component. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 50 +++++++++++-------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi index 5a1e10def6ef..779cc536566d 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi @@ -60,38 +60,26 @@ reg_can_3v3: regulator-can-3v3 { gpios = <&gpio_spi 3 GPIO_ACTIVE_LOW>; }; - sound { - compatible = "simple-audio-card"; - simple-audio-card,name = "mx6ul-wm8960"; - simple-audio-card,format = "i2s"; - simple-audio-card,bitclock-master = <&dailink_master>; - simple-audio-card,frame-master = <&dailink_master>; - simple-audio-card,widgets = - "Microphone", "Mic Jack", - "Line", "Line In", - "Line", "Line Out", - "Speaker", "Speaker", - "Headphone", "Headphone Jack"; - simple-audio-card,routing = + sound-wm8960 { + compatible = "fsl,imx-audio-wm8960"; + model = "wm8960-audio"; + audio-cpu = <&sai2>; + audio-codec = <&codec>; + audio-asrc = <&asrc>; + hp-det-gpio = <&gpio5 4 0>; + audio-routing = "Headphone Jack", "HP_L", "Headphone Jack", "HP_R", - "Speaker", "SPK_LP", - "Speaker", "SPK_LN", - "Speaker", "SPK_RP", - "Speaker", "SPK_RN", - "LINPUT1", "Mic Jack", + "Ext Spk", "SPK_LP", + "Ext Spk", "SPK_LN", + "Ext Spk", "SPK_RP", + "Ext Spk", "SPK_RN", + "LINPUT2", "Mic Jack", "LINPUT3", "Mic Jack", - "RINPUT1", "Mic Jack", - "RINPUT2", "Mic Jack"; - - simple-audio-card,cpu { - sound-dai = <&sai2>; - }; - - dailink_master: simple-audio-card,codec { - sound-dai = <&codec>; - clocks = <&clks IMX6UL_CLK_SAI2>; - }; + "RINPUT1", "AMIC", + "RINPUT2", "AMIC", + "Mic Jack", "MICB", + "AMIC", "MICB"; }; spi4 { @@ -145,6 +133,10 @@ codec: wm8960@1a { compatible = "wlf,wm8960"; reg = <0x1a>; wlf,shared-lrclk; + wlf,hp-cfg = <3 2 3>; + wlf,gpio-cfg = <1 3>; + clocks = <&clks IMX6UL_CLK_SAI2>; + clock-names = "mclk"; }; camera@3c { -- 2.27.0