From patchwork Fri Mar 24 16:18:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9643271 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 CA335601E9 for ; Fri, 24 Mar 2017 16:23:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB370200E9 for ; Fri, 24 Mar 2017 16:23:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF94A20453; Fri, 24 Mar 2017 16:23:37 +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_SIGNED, DKIM_VALID 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 3657A200E9 for ; Fri, 24 Mar 2017 16:23:37 +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=fMbU6Xj9GRNwRCznnBg0nn2agV2PNUQjdU2q1IRzmZ0=; b=Lr3VohGjPRz2ra6Rm+AG8kNi4j AGw3mqHm/cRN8oYjHaDGGC9CY7D3pvP0MczQwi4t6KywlkaU0/6YXOEYOfc/IzOBM1hmtlByM2qLP KxCg01Ivbs5Ms1w4SyDfGrUK2SlELkDfKU7VkbnsdttXJp5S4DmGCSTQGeF8h1M+4wXM8VwqpsRff aGWV4DN26TZtDWb9JDoxD8kov/u2/1T+RrhrJxjppLB86oyJs7tQp0f62LvmoXLWLNFkM16X9JM/K ipWjU3gP6GSKR+KSjb0LHbN5sRXJjy58hHUTM2XG7+WXC820h3eBPKMSfI28hxjVVdKAfWsHucu9S xBqXh+OQ==; 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 1crS00-0004uG-Qm; Fri, 24 Mar 2017 16:23:36 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crRyW-0003Er-H8 for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 16:22:08 +0000 Received: by mail-pf0-f196.google.com with SMTP id o126so1147720pfb.1 for ; Fri, 24 Mar 2017 09:21:45 -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=lwx8A2fUQTGeStBzxk2f09cWDl4VOHGjviPZl7t3Bqw=; b=FWclba+Rq7JczALsH7RssOb1XQku+yfMQPqs8EdSgWDlOZpgeEx6qeX6ijV34rwOtM 1kGb+5aFCiTJRenYCrx2wfWbxyx6ocD+hIfBYJPcsOjpEQXbXhdiB/qEd5dQa//SzQzP vDq/iDHqYxeOTQRBv9K28hEY/6WGbo7EmynApVjR7XpAeJKf3CBbMHnY4GFLZTXvBJWP 2dr00AOmalB+MNDvCYQ1ngp/0rLIrj41U1zBbBJr/Aac0Hmq2Wnd1K6fQMXEQAMlRjpZ wnGatmi9xai2k+55XKtQYNe5DbB5DGlqFqDIs174lQsCpTy28Kyv8q/ByTtjOM7SMQwi LezQ== X-Gm-Message-State: AFeK/H1WW65awr96OYrI5SBX69Q59rqkZNSfr9P6mT/2zzKbk85W+/eT+1rZIvui4BfSVA== X-Received: by 10.98.85.135 with SMTP id j129mr10067072pfb.79.1490372505384; Fri, 24 Mar 2017 09:21:45 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.64]) by smtp.gmail.com with ESMTPSA id t133sm5645519pgc.24.2017.03.24.09.21.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 09:21:43 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 07/15] ARM: dts: imx6ul-isiot: Add Sound card with codec node Date: Fri, 24 Mar 2017 21:48:42 +0530 Message-Id: <1490372330-5611-8-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490372330-5611-1-git-send-email-jagan@openedev.com> References: <1490372330-5611-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_092204_917451_E27028EB X-CRM114-Status: GOOD ( 10.10 ) 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 Is.IoT MX6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- 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-isiot-common.dtsi | 10 ++++++++++ arch/arm/boot/dts/imx6ul-isiot.dtsi | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi index 827f0dc..15dcf5f 100644 --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi @@ -41,6 +41,16 @@ */ &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>; + }; + stmpe811: gpio-expander@44 { compatible = "st,stmpe811"; reg = <0x44>; diff --git a/arch/arm/boot/dts/imx6ul-isiot.dtsi b/arch/arm/boot/dts/imx6ul-isiot.dtsi index ea30380..9648de9 100644 --- a/arch/arm/boot/dts/imx6ul-isiot.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot.dtsi @@ -69,6 +69,35 @@ 100>; default-brightness-level = <100>; }; + + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "1P8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + sound { + compatible = "fsl,imx-audio-sgtl5000"; + model = "imx6ul-isiot-sgtl5000"; + cpu-dai = <&sai2>; + audio-codec = <&sgtl5000>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + }; }; &i2c1 {