From patchwork Wed Mar 22 17:48:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9639769 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 19737602CB for ; Wed, 22 Mar 2017 18:01:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01E1F27D29 for ; Wed, 22 Mar 2017 18:01:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EADBB281F9; Wed, 22 Mar 2017 18:01:48 +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=0.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB 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 88E3827D29 for ; Wed, 22 Mar 2017 18:01:48 +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=eWaxSKNcINdLwC6x7GizpIeR3A4CO9zHGk/fl4AYog4=; b=G7Eu7vAFdYR33UW7Kp92Bkteu6 /sLxA/7R+BIiRWqk5fCoaqutTClyFrdWXreCZ88XtSQF+IkyM3qYqTiCmPyiaSjr/idehhk9CmjWd GQ/5Rol8CnLfwaMKSAeOgNf5e8ohsoQ9KQLhZYqb92GlGBaDK5xrnJa8riPzKMPYVgBfKaFLrrTPS AMCK3eTpRguXyOQR98kb5hFwj+aBULhJUllEWptyIzF30QlYrQuXciPvzzt4tbcZo9aCdhYjsqjyu PUcgz0Mky0NOGgW0cc5guGi/bwRxkfkyImU0Z2lgxAQLE99kOFxRjZa5d+qFqmNQOmfK05b4zqhQc gPJcw/Tw==; 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 1cqkZu-0007JI-2C; Wed, 22 Mar 2017 18:01:46 +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 1cqkPv-0006hc-Lz for linux-arm-kernel@lists.infradead.org; Wed, 22 Mar 2017 17:51:33 +0000 Received: by mail-pf0-f194.google.com with SMTP id r137so24127143pfr.3 for ; Wed, 22 Mar 2017 10:51:07 -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=GnUZ1WfuDReOFgJlQiqF/p0/8lrluI+MyfO7YpcHXgU=; b=K4iHcLb7BKZqC8iW21HObsNkuxTuY4e6O5XH7LB+K/uKvqu1UmcygjencmispPvMvH mDb7cPb9mUN65ejaDxz+S+vx1c3YD9OKmQbntv4b3LNrjauN2YuyG7TgK3a2Xoz9vZVR I1vrnHZOguQqlbEWQ9/+pPRCwyjiNmnP/04VuLAND/9Gi+Qtm+QSnTwlhu338ZsXVhx+ gaB2SiOlzBJZ1eUbYRQr6Aiv93aO/Dma+IgUuB1rXLKVgX6UJPZMTESMlYiJyZ9DUyW5 duQFuTDbOY0XvhMFwaCKrcu0CH7SDIA/IiOX96Zz/cGufdH3f99qnQDz7T0uG1HTk44W ujfw== X-Gm-Message-State: AFeK/H3R3AzpwErI+SnqqTzVF6AumLKcQSg8+aI6BabCBO4kyFmSfeVIzIXqaafkReqYYQ== X-Received: by 10.98.157.12 with SMTP id i12mr48815013pfd.166.1490205066873; Wed, 22 Mar 2017 10:51:06 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.36]) by smtp.gmail.com with ESMTPSA id o194sm5234892pfg.66.2017.03.22.10.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 10:51:05 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 09/12] ARM: dts: imx6qdl-icore: Add Sound card with codec node Date: Wed, 22 Mar 2017 23:18:14 +0530 Message-Id: <1490204897-14525-10-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490204897-14525-1-git-send-email-jagan@openedev.com> References: <1490204897-14525-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_105128_047529_A4360E2F X-CRM114-Status: GOOD ( 10.21 ) 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 , 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 --- 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..c132ccd 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 { + codec: sgtl5000@0a { + 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..5cc2518 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 { + codec: sgtl5000@0a { + 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..554a25c 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 { + codec: sgtl5000@0a { + 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 70cc8b2..07021fd 100644 --- a/arch/arm/boot/dts/imx6q-icore.dts +++ b/arch/arm/boot/dts/imx6q-icore.dts @@ -67,6 +67,17 @@ }; }; +&i2c3 { + codec: sgtl5000@0a { + 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..dd123af 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 = <&codec>; + 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>;