From patchwork Thu Apr 6 18:02:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9668013 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 8B9546021C for ; Thu, 6 Apr 2017 18:06:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB1A2859F for ; Thu, 6 Apr 2017 18:06:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A304E285BC; Thu, 6 Apr 2017 18:06:23 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no 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 3AA1A2859F for ; Thu, 6 Apr 2017 18:06:23 +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=H0+Q1pJRAsQf4lkMjBsuTpzWk/S3eQ3RuOVm2kDcq7s=; b=U7ZAwjI8x4x1qrQ3PGgDlRtuiP GFVnigqUXnpmP7mpMF/hY3ft6vUymd+AZ289dW7j1AAk6O6+J2k5liFbAgYI1E3ifIlis4AeyldJa X/joC6jEPkl5MuNiSMhZCzhXOa0nNOMH8Yhn2rWFoTFiW9uUQcHVf3IKgPQuSTr9NrWO1GAqWWb7z eT8bNzDtTqzvjl/JtYW6b6BO/yCRR5fUCBEDD1yug2wVaZtGSkEHvB0b2LrmkjERT0S7hNhrRM5wg Dgu6DMGWhinoUZtAhj6O9Lg7RuTNl7jQuoGw/bZYVPxxXhwIs4fdvFcuIq9BUAnIENxa4KJR9iqy6 uJBs1fVg==; 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 1cwBna-0008My-0Y; Thu, 06 Apr 2017 18:06:22 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cwBkt-0004rU-Ea for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2017 18:03:39 +0000 Received: by mail-pg0-f65.google.com with SMTP id 79so9916637pgf.0 for ; Thu, 06 Apr 2017 11:03:16 -0700 (PDT) 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=DxiryBOURhaDHCnsRWfecEM8KFOeJDMmSr/3SbcnKJY=; b=EBUxHjTHlCDwr74tnbdqr4z2Kg+p5JJmZKywmVHtLUsZ2bpR6LGy26pyLj8B3LTw6x BtNxIq0ARn+cKFn1DnzU3AQKQt91zXSwSxSN09wNWVHCEog3p0pEn3OWvP87tN+Oflaz q/JPXSpNpWvzDWJ5uIHb0hQHBsf0yioyrIFc4DTNSLmfTsDcN8O6X1hWzwp4K4UkUhoh J3PqIbBtfk/P3OhI/LkYV9RJaN41Goy1ggluuTQ4mennHjnyUv+P7RHABCrAD7ypTrLL yX6aYox9ahXBx9RGBXmDSNdJlqamKhEhCdy/rxCdoxx2wJUhyPnQ2qBDrpn0gR+4jUsc zoBQ== X-Gm-Message-State: AFeK/H3aL+7aC9/F0t0O+J8o5FDCKY16mDPBugPz8kLL+ZskguNozXhbSFY79SslivFzaA== X-Received: by 10.99.109.67 with SMTP id i64mr37050440pgc.56.1491501796620; Thu, 06 Apr 2017 11:03:16 -0700 (PDT) Received: from localhost.localdomain ([117.254.77.17]) by smtp.gmail.com with ESMTPSA id i124sm5022719pgd.66.2017.04.06.11.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Apr 2017 11:03:15 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v3 2/9] ARM: dts: imx6ul-geam: Add Sound card with codec node Date: Thu, 6 Apr 2017 23:32:08 +0530 Message-Id: <1491501735-1649-3-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491501735-1649-1-git-send-email-jagan@openedev.com> References: <1491501735-1649-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170406_110335_644159_0D22249A X-CRM114-Status: GOOD ( 10.14 ) 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. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- 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-kit.dts | 12 ++++++++++++ arch/arm/boot/dts/imx6ul-geam.dtsi | 26 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-geam-kit.dts b/arch/arm/boot/dts/imx6ul-geam-kit.dts index 142e60c..02edcba 100644 --- a/arch/arm/boot/dts/imx6ul-geam-kit.dts +++ b/arch/arm/boot/dts/imx6ul-geam-kit.dts @@ -58,6 +58,18 @@ status = "okay"; }; +&i2c1 { + 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>; + }; +}; + &lcdif { display = <&display0>; status = "okay"; diff --git a/arch/arm/boot/dts/imx6ul-geam.dtsi b/arch/arm/boot/dts/imx6ul-geam.dtsi index eb94d95..3bc3238 100644 --- a/arch/arm/boot/dts/imx6ul-geam.dtsi +++ b/arch/arm/boot/dts/imx6ul-geam.dtsi @@ -87,6 +87,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 {