Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2315547pxa; Mon, 17 Aug 2020 06:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxezVwFvPGc8F0BMtHBD3+DY+agpeE7iGLl40vgqZH4UFg3QhrdPwU4HkCQdk8qzvqPGBVI X-Received: by 2002:a17:906:7d90:: with SMTP id v16mr15002086ejo.27.1597672114852; Mon, 17 Aug 2020 06:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597672114; cv=none; d=google.com; s=arc-20160816; b=lNbC/B9bNk9krb1GoOPjCkFqejk5WtFuGvyihth0lON3KzfjJM/bjZuzzZHw7+pa1I 71aAIzlEUvnvsmTWOrs2xNBM6BAtaro3qBNeBul3VJXKZt1ecgaKsFI8n1+pE3AuJSsw qcDve3ZN9DwYWge6kxEQcT80mozD2c7PrRZPLLWbIG7Nwqkx/il1AjLhOUYRTqaSJbcJ 1eVMFD0OKM8soNCvatrFOuWLu1Zjhj35WXUX4dpbaA7uSQ9MIOTh4OInkvn4b1c4hVuZ 7tDZRi3wz0qWc1ngQ324hendk9VskOZKd/iTCzCRMq0Vs0o0q8cdnQn9yxUE1cpSsw0x S+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Kp2OAD0ICogQKk52QDNikt0ThpNhJxZYmPf9EL7yEaM=; b=GXKVMHZk84mEShrfDwz1Psc2mizt0eAq1BcVDlUNCQByh59YT+W4xuPbH8NU6yw1hy vnQO/Knpa/1qeGROGlJd9TqlKDnRLRD99qb6QVZzoVA6VfHEj+C6w3XPe6u6H+ZZqq+y FJhiMECiMXDMzG5maW71OY6/7eSm87zJbA7KLJijLxeN39/vLsnz0m//4I/TvOki0ewd XChvUWjlXI6mQlE2lIT0XuB4BIxZdp+mN3SlYj/PbrgWdDco3+Iwks/V3OVVw8fZqNoP TgqP07gmIXA5y3J1UySHn+55Uu4L7wQ0+eAK8TciEY9x8x9oUU2wdLaFWSewh0TryRjN bdrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TOs1HrhM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg15si12498881edb.524.2020.08.17.06.48.11; Mon, 17 Aug 2020 06:48:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TOs1HrhM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbgHQNrY (ORCPT + 99 others); Mon, 17 Aug 2020 09:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbgHQNrV (ORCPT ); Mon, 17 Aug 2020 09:47:21 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF70CC061389; Mon, 17 Aug 2020 06:47:20 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id b11so8390305lfe.10; Mon, 17 Aug 2020 06:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kp2OAD0ICogQKk52QDNikt0ThpNhJxZYmPf9EL7yEaM=; b=TOs1HrhMt19tbzY2EpvLz0ZtqqfJBYuaiUcH1BoiflXvgVQXzRskCMS5CRRklvjC6t eGBk6qUdm0k2f+5hb2i9wIgxxxFkqiFEgGIAagH4vDpuaDc77YGkVmb311PB9CZD8CWJ Ft5IktDWFGEnAg2wd6cNmMftbBUTKLoCA8/OTi92XxV/N9aeksT2NYMvYAtcK9BM4puK 5C1fpmjshcdns4dH5k77cNgcuTzOKGiYvHcItBYHR8Lxz1yMNoBAJNcrdav9DGC99obX MROU8H7nS1Rvc4qO72R7wy7J+hZ6lAO2ayQ7a1UYRixcSCgdv/j+lydISSxyUtMZOQLd eFMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kp2OAD0ICogQKk52QDNikt0ThpNhJxZYmPf9EL7yEaM=; b=SfqJhxq9ILGsQLduW4O4lZolebG7eByky7mY6T+TNhfLJ+O1jg55Hc15YSwUlh2/53 TvbGSFdnqUB4KbYY0u/miE3U1f2SAHRiUr0xWix3Ttfljva8IlrXRl+tSpIqButiBe+i Gpybxbjs7telE611H8VFtZ2lbZXjutp39IO/eUEyppWpnzEdYhaUvBeiokSGfmA6aqkg KTPEqW319qfb/IsZfI9umXOzaukmns5KR1U8BaBCbyzs8ELlCZqIz4QXHWdVpjAhQUf4 0UssbwYJ/P583EmDu4O6GTt4q5xw4O7UfapYvyIcX6lcc8o8V2+3zyZBVkaExdNO5AIP rVMA== X-Gm-Message-State: AOAM533RnuxcskePDvSiEEL0k7mN0B+/had3/YXrrSb8++JQA2jo3QBG gGjUXFB7aZMsmtrjrsCGKxKg+Dapi7h7dGhBBYA= X-Received: by 2002:a19:8957:: with SMTP id l84mr7184858lfd.66.1597672039259; Mon, 17 Aug 2020 06:47:19 -0700 (PDT) MIME-Version: 1.0 References: <1596714629-16425-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1596714629-16425-1-git-send-email-shengjiu.wang@nxp.com> From: Fabio Estevam Date: Mon, 17 Aug 2020 10:47:08 -0300 Message-ID: Subject: Re: [PATCH] ARM: dts: imx6sll-evk: Add audio sound card node To: Shengjiu Wang Cc: Rob Herring , Shawn Guo , Sascha Hauer , Sascha Hauer , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shengjiu, On Thu, Aug 6, 2020 at 8:55 AM Shengjiu Wang wrote: > > Add audio sound card node, which depends on codec node, > SSI node, audmux node. > > Signed-off-by: Shengjiu Wang > --- > arch/arm/boot/dts/imx6sll-evk.dts | 74 +++++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6sll-evk.dts b/arch/arm/boot/dts/imx6sll-evk.dts > index 5ace9e6acf85..45bf5e61e960 100644 > --- a/arch/arm/boot/dts/imx6sll-evk.dts > +++ b/arch/arm/boot/dts/imx6sll-evk.dts > @@ -132,6 +132,29 @@ panel_in: endpoint { > }; > }; > }; > + > + sound { > + compatible = "fsl,imx6sl-evk-wm8962", "fsl,imx-audio-wm8962"; > + model = "wm8962-audio"; > + audio-cpu = <&ssi2>; > + audio-codec = <&codec>; > + audio-routing = > + "Headphone Jack", "HPOUTL", > + "Headphone Jack", "HPOUTR", > + "Ext Spk", "SPKOUTL", > + "Ext Spk", "SPKOUTR", > + "AMIC", "MICBIAS", > + "IN3R", "AMIC"; > + mux-int-port = <2>; > + mux-ext-port = <3>; > + hp-det-gpio = <&gpio4 24 GPIO_ACTIVE_LOW>; > + }; > +}; > + > +&audmux { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_audmux3>; > + status = "okay"; > }; > > &cpu0 { > @@ -247,6 +270,27 @@ vgen6_reg: vgen6 { > }; > }; > > +&i2c3 { > + clock-frequency = <100000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c3>; > + status = "okay"; > + > + codec: wm8962@1a { Node names should be generic: wm8962: audio-codec@1a > + compatible = "wlf,wm8962"; > + reg = <0x1a>; > + clocks = <&clks IMX6SLL_CLK_EXTERN_AUDIO>; > + DCVDD-supply = <&vgen3_reg>; > + DBVDD-supply = <®_aud3v>; > + AVDD-supply = <&vgen3_reg>; > + CPVDD-supply = <&vgen3_reg>; > + MICVDD-supply = <®_aud3v>; > + PLLVDD-supply = <&vgen3_reg>; > + SPKVDD1-supply = <®_aud4v>; > + SPKVDD2-supply = <®_aud4v>; > + }; > +}; > + > &lcdif { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_lcd>; > @@ -273,6 +317,10 @@ &snvs_pwrkey { > status = "okay"; > }; > > +&ssi2 { > + status = "okay"; > +}; > + > &uart1 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_uart1>; > @@ -329,6 +377,25 @@ &wdog1 { > }; > > &iomuxc { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_hog>; > + > + pinctrl_audmux3: audmux3grp { > + fsl,pins = < > + MX6SLL_PAD_AUD_TXC__AUD3_TXC 0x4130b0 > + MX6SLL_PAD_AUD_TXFS__AUD3_TXFS 0x4130b0 > + MX6SLL_PAD_AUD_TXD__AUD3_TXD 0x4110b0 > + MX6SLL_PAD_AUD_RXD__AUD3_RXD 0x4130b0 > + MX6SLL_PAD_AUD_MCLK__AUDIO_CLK_OUT 0x4130b0 > + >; > + }; > + > + pinctrl_hog: hoggrp { > + fsl,pins = < > + MX6SLL_PAD_GPIO4_IO24__GPIO4_IO24 0x17059 /* HP DETECT */ Please place it under audmux3 group for consistency.