From patchwork Fri Jun 16 07:04:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9790675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D08D260325 for ; Fri, 16 Jun 2017 07:06:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C672328613 for ; Fri, 16 Jun 2017 07:06:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB20B28618; Fri, 16 Jun 2017 07:06:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5EF8A28613 for ; Fri, 16 Jun 2017 07:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=c12U/T/BGYk8I0BjBYyy+WMDEiqoYqm2gfZwT2xxlbg=; b=TbmTbSTOo/aQwyBOnJYi6GJRGN zy+YlvhTSn9yUyj7yd/p6a4l31s4y882oiMITDlYM8ZSitrpYP88lGuIAZRwrxxmN8yfdMgY5mgzi AiHtvgsryq0WEV5UdeGrlN3Enkg02S2uf9leieNPCJjzWuTDppGRLOmd4ZI/yzKOHF7X4eRLICsRF ns/Wg3gkjrWKDTHqJ+KuuGrT+bCvY7T6r0BCR7sRFcJazGY4ekWGjCAmMMzedThZtA55mecpJQ7pK hUj2SG+pYV2gTKA4aLlU83T/n9YJzfAcWnHpArP24IZF3JQhn8DrogTGjOA2I3QrO1NMNxsbzi5Io bvebNaZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dLlKc-00043h-Et; Fri, 16 Jun 2017 07:06:10 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLlK0-00034A-DD for linux-arm-kernel@lists.infradead.org; Fri, 16 Jun 2017 07:05:35 +0000 Received: by mail-pf0-x242.google.com with SMTP id d5so4501021pfe.1 for ; Fri, 16 Jun 2017 00:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oZjkB2L8lSJ5EZkWszoFRIWMnM4M/bkC6Flka6FcMcg=; b=E5GjXebS0BUsNMQgWG73hU2E/yACJpcCKWHdo3s3pNZFVZghfi8NO5bD6TL7fJ114S B8tualLis8bBq9I+UXKB9i6mJI2PfM0Fr63IK14ivqgMJMlzsajijJ98Rfs04lB1NrZC aPHyE4nQ4b2MY//8YXChKce44epmFvFS6GifcSxT/rTgFE1RRlZwApYbKP8ZgLIMoyy1 Xsbo+IcWQPSxRL21qW4VaTHeysNCYAkk40Ea2zP1VlRVgvx0EwEE7AXmka93vNZItRl9 gR4Kr3AidWCuROUFVYwMKvfKkFtueIbzSg8lE2BGRwf59n1c19iDn9qn6hAa/eoYtkO2 e1OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oZjkB2L8lSJ5EZkWszoFRIWMnM4M/bkC6Flka6FcMcg=; b=C1I9QP2CwDYcbFr+IGoxZigv6XuFvNqqwcszmIWCvb7ooS+YeYxs9wU+HrOn7k+Xhj KJgR7On8mpXpw9HOKYaX4wAXF2FpcEXB+ID1kpCFf7mQqSb1UieBtRYvfLJ30DbFxaUB 69HI/mPfgVSeF3u/1oUxtAp6z7bnB1aypqEPsvsTYUzP0tmWaXsGfzMvvkhzZlLZ4cHP U6d/goBLgvtup+Z/GFxO3/XIZzne9+lICrQsa5edPuIeE0nBrdz83H8hSRHymgG7cuFw P2GBCyHdIWh45btYebqzVywNyR+9hYpffTd02jFs8tQOYTHvLoLwItu8Ap4Ihoyxgvw1 6+Pg== X-Gm-Message-State: AKS2vOzGVX0XvGMncxhXQRcbGhE44akVxj2F+TmOMJPN9MF5WtaJYZy3 3ReH4pMg0growg== X-Received: by 10.84.128.78 with SMTP id 72mr9107725pla.161.1497596711589; Fri, 16 Jun 2017 00:05:11 -0700 (PDT) Received: from localhost.localdomain ([117.247.27.94]) by smtp.gmail.com with ESMTPSA id t128sm2227405pfd.64.2017.06.16.00.05.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 00:05:10 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Shawn Guo Subject: [PATCH v4 4/4] ARM: dts: imx6ul-geam: Add Sound card with codec node Date: Fri, 16 Jun 2017 12:34:40 +0530 Message-Id: <1497596680-3186-4-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497596680-3186-1-git-send-email-jteki@openedev.com> References: <1497596680-3186-1-git-send-email-jteki@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170616_000532_675207_5C9D5229 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on Engicam GEAM6UL variant module boards. Signed-off-by: Jagan Teki --- Changes for v4: - keep sound and related i2c1 on dts Changes for v3: - Replace fsl,imx-audio-sgtl5000 and use simple-audio-card Changes for v2: - Use proper [label:] node-name[@unit-address] for codec - Remove incorrect codec property 'wlf,shared-lrclk' - Remove 'gpr' from sound card node arch/arm/boot/dts/imx6ul-geam.dts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-geam.dts b/arch/arm/boot/dts/imx6ul-geam.dts index e251ad2..571eea7 100644 --- a/arch/arm/boot/dts/imx6ul-geam.dts +++ b/arch/arm/boot/dts/imx6ul-geam.dts @@ -92,6 +92,32 @@ regulator-always-on; regulator-boot-on; }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx6ul-geam-sgtl5000"; + 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", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + + simple-audio-card,cpu { + sound-dai = <&sai2>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&sgtl5000>; + clocks = <&clks IMX6UL_CLK_SAI2>; + }; + }; }; &can1 { @@ -151,6 +177,16 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; + + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6UL_CLK_OSC>; + clock-names = "mclk"; + VDDA-supply = <®_3p3v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; }; &i2c2 {