From patchwork Fri Mar 24 16:18:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9643273 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 620C4601E9 for ; Fri, 24 Mar 2017 16:24:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51A5A2022B for ; Fri, 24 Mar 2017 16:24:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4669622376; Fri, 24 Mar 2017 16:24:02 +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 B158E2022B for ; Fri, 24 Mar 2017 16:24:01 +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=3x939xQ7pMyvWcA9vgkEFmROe9BbTtgBA6Qz03T1Yfc=; b=DjGN5FjVPdT7a298PBxzvfVuqK YFbAPKar5vG+Tj9WXDqT7khmL1Mj3VeLeL4a/vXUS4n4gpg+Jqh+wpyWmdPTdgcmtv+HpBKtHB/EF XgVBk0fSVY7MbR4QuzUtfsRucaxLvdtuAiQfcLgXhCHxBg3CVxXANN3CgcLTzaFWuikrZ2LqsFT5G KYtFvgQBiDL7GNqVCWj0Rc9jegDpkfxzJF89vAJeVT3n8A7ZgqTJ9JBZRzuyaaFIQiHHsjqzWE8Kl LSmgD4w87dHZNgvNiFDMmP2euSsWedNBEKC/a1iZ+e1xQx0aSnHf8z00qc9z7PXyCTcJ9qT/ZgavH 4FCFjIKg==; 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 1crS0P-0005Nn-7I; Fri, 24 Mar 2017 16:24:01 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crRyg-0003PH-3L for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 16:22:29 +0000 Received: by mail-pf0-f194.google.com with SMTP id o126so1148133pfb.1 for ; Fri, 24 Mar 2017 09:21:53 -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=lY9QgbaDW/UoiB0C95bCVr00u/nIlKwLGYdm1oZVgP4=; b=WP4OnZNETbW85T76GX+5ZQuXd/FnIy6TJsm+DHA6hSMPY+jgSZIHVmLkoM3w9VwIkS SNWRpthXsIRsJJehjzM1GsZs5UFxEg6VNw9Qj4qdD2mdHVY/pyYJwLkfb91s0466ewmp UocKgqWvnWQqXgzyF4ui1c+h+O3jKm+ptscbPiI2Mmj6Fk5gcAXE0/FeU+PB5K/sN2N1 NNPIYC3jRNwHO+oQmXhiZucqyzVHeAj/Bqr2rwWu/ba3FjEC7lhyeLqLfOjomwbJCyar I3y94K2Kta93j8wWIz9SSjHq7CSWSlrXWFnlIWDK4s/cCTp75uJrPZ1qcVmxbWheYokc DLZQ== X-Gm-Message-State: AFeK/H1b/Ql37FjnFLlTioskghLJN46dAwvENe2Vwh9Xbg2emoHau/WnlmdMpvrccHMQ8w== X-Received: by 10.84.178.195 with SMTP id z61mr11669242plb.139.1490372513169; Fri, 24 Mar 2017 09:21:53 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.64]) by smtp.gmail.com with ESMTPSA id t133sm5645519pgc.24.2017.03.24.09.21.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 09:21:52 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 09/15] ARM: dts: imx6qdl-icore: Add Sound card with codec node Date: Fri, 24 Mar 2017 21:48:44 +0530 Message-Id: <1490372330-5611-10-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_092215_442002_C947FA55 X-CRM114-Status: GOOD ( 10.42 ) 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 below Engicam module boards. - i.CoreM6 DualLite/Solo Starter kit - i.CoreM6 Quad/Dual Starter kit - i.CoreM6 Quad/Dual OpenFrame Cap touch 10.1 - i.CoreM6 Quad/Dual OpenFrame Cap touch 12.3 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 arch/arm/boot/dts/imx6dl-icore.dts | 11 +++++++++ arch/arm/boot/dts/imx6q-icore-ofcap10.dts | 11 +++++++++ arch/arm/boot/dts/imx6q-icore-ofcap12.dts | 11 +++++++++ arch/arm/boot/dts/imx6q-icore.dts | 11 +++++++++ arch/arm/boot/dts/imx6qdl-icore.dtsi | 37 +++++++++++++++++++++++++++++++ 5 files changed, 81 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-icore.dts b/arch/arm/boot/dts/imx6dl-icore.dts index 6de83c7..0562ce4 100644 --- a/arch/arm/boot/dts/imx6dl-icore.dts +++ b/arch/arm/boot/dts/imx6dl-icore.dts @@ -57,3 +57,14 @@ &can2 { status = "okay"; }; + +&i2c3 { + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6QDL_CLK_CKO>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; +}; diff --git a/arch/arm/boot/dts/imx6q-icore-ofcap10.dts b/arch/arm/boot/dts/imx6q-icore-ofcap10.dts index 49b60ca..f63b87f 100644 --- a/arch/arm/boot/dts/imx6q-icore-ofcap10.dts +++ b/arch/arm/boot/dts/imx6q-icore-ofcap10.dts @@ -50,6 +50,17 @@ compatible = "engicam,imx6-icore", "fsl,imx6q"; }; +&i2c3 { + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6QDL_CLK_CKO>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; +}; + &ldb { status = "okay"; diff --git a/arch/arm/boot/dts/imx6q-icore-ofcap12.dts b/arch/arm/boot/dts/imx6q-icore-ofcap12.dts index 9e230f5..68ca828 100644 --- a/arch/arm/boot/dts/imx6q-icore-ofcap12.dts +++ b/arch/arm/boot/dts/imx6q-icore-ofcap12.dts @@ -50,6 +50,17 @@ compatible = "engicam,imx6-icore", "fsl,imx6q"; }; +&i2c3 { + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6QDL_CLK_CKO>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; +}; + &ldb { status = "okay"; diff --git a/arch/arm/boot/dts/imx6q-icore.dts b/arch/arm/boot/dts/imx6q-icore.dts index 5613dd9..1ae7294 100644 --- a/arch/arm/boot/dts/imx6q-icore.dts +++ b/arch/arm/boot/dts/imx6q-icore.dts @@ -67,6 +67,17 @@ }; }; +&i2c3 { + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6QDL_CLK_CKO>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; +}; + &ldb { status = "okay"; diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 56d0c5d..09600eb 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -55,6 +55,25 @@ default-brightness-level = <7>; }; + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "1P8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + + reg_2p5v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "2P5V"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-boot-on; + regulator-always-on; + }; + reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; regulator-name = "3P3V"; @@ -87,6 +106,20 @@ #clock-cells = <0>; clock-frequency = <25000000>; /* 25MHz for example */ }; + + sound { + compatible = "fsl,imx6-icore-sgtl5000", + "fsl,imx-audio-sgtl5000"; + model = "imx6q-icore-sgtl5000"; + ssi-controller = <&ssi1>; + audio-codec = <&sgtl5000>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + mux-int-port = <1>; + mux-ext-port = <4>; + }; }; &can1 { @@ -149,6 +182,10 @@ status = "okay"; }; +&ssi1 { + status = "okay"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>;