From patchwork Wed Mar 22 17:48:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9639711 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 0362C601E9 for ; Wed, 22 Mar 2017 17:51:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9452284C9 for ; Wed, 22 Mar 2017 17:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE1A028488; Wed, 22 Mar 2017 17:51: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 40CB4284C9 for ; Wed, 22 Mar 2017 17:51: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=O0orao7FHdk0xFAF/oP0Vd39f8H9wqzFI6NnBXo3P30=; b=diKKL8Q5S8uZetOMwLJwhvX9c8 dYeqlBvyuthnWyOvZ1DnUUGu8Im/+L9NM7UfIzoA4jHeRGqWK7ES3pjqV2aUtETzqRGZ+lNk+m3A6 V/EjvsTCXWlSzuV4gA8qb1vCXsNs5Yxm01vJmx45RqoC752SZr1eG/ByvVNqd15xIbv9OP77IBxp0 atFWvvlII8xnnTj1bA6MxRxJlsniwX6aodA9aZcWh02PQs36V7x5h/BpyVLaSoRwQ2F99f9wXYdoI SMxNu+zcwja6ck6R4FlliKas2F9uBLsFlCJCp72MFqORX9UjPDn7qYw/YqAVg9EnuhI7hR7lXl/I5 /JiS78/g==; 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 1cqkQF-0007GR-Qh; Wed, 22 Mar 2017 17:51:47 +0000 Received: from mail-pg0-f67.google.com ([74.125.83.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqkPn-0006cd-Hg for linux-arm-kernel@lists.infradead.org; Wed, 22 Mar 2017 17:51:30 +0000 Received: by mail-pg0-f67.google.com with SMTP id 79so23064447pgf.0 for ; Wed, 22 Mar 2017 10:50:59 -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=jsW7xOWA6JAlbswp/jDzt7dcS3yiBgEMPjCyag+l44k=; b=fAd8tUQEZeRc56f6Rwaed6A1JS1CBljDJoegt1ZmdmvsZUCO2sNwe8vE1aSSLZjyBb Dqbcr/CtF9kX5r46xoPROXz83niKDq+ChNCJ3WBfbH9ww6Bqpuzkrgj7Jzy7IzJ32cWO GXvTuzHWN0pRD9nbENNhkaToQbWR4lDeo3bqeD1EySJgaU/6Yq08wcI8ptpNlAJy5W7y bsbwaMnAsxKulUdPAXz+0W1rAZuroij6cUPBLsc+0ANcP2hzPI5aMasLAy7ozd1P6b50 s2bUbiddfc21bpQoHusNsnaCckgBlmX+dcnCowul3iL7iMJEwbd80z3eQALhn1uSelt8 NYLA== X-Gm-Message-State: AFeK/H36S2VA/7f5nb1fAehf/5dtl7mtjfuWFu8KypZaL4nwCvxjBtdX3ZWbiVoqbe6N/A== X-Received: by 10.98.64.9 with SMTP id n9mr46309902pfa.211.1490205059117; Wed, 22 Mar 2017 10:50:59 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.36]) by smtp.gmail.com with ESMTPSA id o194sm5234892pfg.66.2017.03.22.10.50.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 10:50:57 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 07/12] ARM: dts: imx6ul-isiot: Add Sound card with codec node Date: Wed, 22 Mar 2017 23:18:12 +0530 Message-Id: <1490204897-14525-8-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_105120_285687_4AF90A6D X-CRM114-Status: GOOD ( 10.02 ) 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 Engicam Is.IoT MX6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 11 +++++++++++ arch/arm/boot/dts/imx6ul-isiot.dtsi | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi index b149b5e..c79fa42 100644 --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi @@ -41,6 +41,17 @@ */ &i2c1 { + codec: sgtl5000@0a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6UL_CLK_OSC>; + clock-names = "mclk"; + wlf,shared-lrclk; + VDDA-supply = <®_3p3v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; + touch: stmpe811@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..7cbcaea 100644 --- a/arch/arm/boot/dts/imx6ul-isiot.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot.dtsi @@ -69,6 +69,36 @@ 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 = <&codec>; + gpr = <&gpr>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + }; }; &i2c1 {