From patchwork Thu Apr 6 18:02:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9667989 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 F137A6021C for ; Thu, 6 Apr 2017 18:03:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22D12285BD for ; Thu, 6 Apr 2017 18:03:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17913285C2; Thu, 6 Apr 2017 18:03:44 +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 B21E4285BD for ; Thu, 6 Apr 2017 18:03:43 +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=hJ7sJK36aTGlk9Noo60p6WcPVTh/6jQMfy3ldVN0TuE=; b=ZnBtEk8ezWc/XW359TrmTjytJF mV5fZJ8OwAKhEkJaWFNrn9Muo/FvYy9xBDCB1RFpAKlpXm64UokLvq423bqp1Ld+QW8hvVTbIO3XE Q/WXpAn+giW0Ed8CEKuG2bD7H8hI1FdJjyEeDpOzR02rwmhRRcjlbUqQVGhjOFhP7ykEzMveAEXbI BNhPro/PZJEJ2K3e7emK3JBaqwWPPnLJt1yG5Oj4iScdXV+TOEF4RQgrAKmA+b4JTSxgDeTAzb977 5vwlb9m5H0VXT2DBujEFWeIpZUe4Lme3zllL66D6/0YqckUPecx3yyWvFfaEjJd+T9tdG1GaEH6nv y40aO7Ww==; 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 1cwBl0-00059M-JZ; Thu, 06 Apr 2017 18:03:42 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cwBkr-0004ql-H2 for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2017 18:03:36 +0000 Received: by mail-pg0-f68.google.com with SMTP id g2so9875779pge.2 for ; Thu, 06 Apr 2017 11:03:13 -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=K/FVvvMpgACublGjDUT94DeoqIfPKwwUu6wYz3Z8zGI=; b=CzEzqrcAqGy3TCN+//zjV63q/KuBGy7OpAK98npUOU64l5MB2u/nupxbEinyyrraFz 2jZ9cHqPcRI01ORuLNbBfDM0woohe2LXa3JNzz4853k2102gBSzeqbQNy40PJj0V63EJ kpv8k+jQQbGiHTQbAaGs8EMB5JOp3X+nSBm5cN0h4lIYKgUb+pLun7cTpWVcFA/9fVZm N4ITWcAmYT+QmUS5jhGzGzufi8j2cSCkWJTOE8JTV24TuDMHe+hSju8nC8wl2rzVa+IG HSbT3EQYjhr5y+R2bzT0uqM7BNX+bCN3Kcdmmhrb2nB4OQ441J78rW0T6YSKOy0srZqe G1tA== X-Gm-Message-State: AFeK/H2D2c0/djSPsc6DafUC/nylFm4CoH2Xr4t/GrGfzCqfbsLWsT0ED9nwI6JZS/mBvw== X-Received: by 10.98.14.208 with SMTP id 77mr16220447pfo.169.1491501792685; Thu, 06 Apr 2017 11:03:12 -0700 (PDT) Received: from localhost.localdomain ([117.254.77.17]) by smtp.gmail.com with ESMTPSA id i124sm5022719pgd.66.2017.04.06.11.03.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Apr 2017 11:03:11 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v3 1/9] ARM: dts: imx6ul-isiot: Add Sound card with codec node Date: Thu, 6 Apr 2017 23:32:07 +0530 Message-Id: <1491501735-1649-2-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_110333_967777_22CDA91E X-CRM114-Status: GOOD ( 10.47 ) 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 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-isiot-common.dtsi | 10 +++++++ arch/arm/boot/dts/imx6ul-isiot.dtsi | 44 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi index 2beaab6..d456080 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..7e947e5 100644 --- a/arch/arm/boot/dts/imx6ul-isiot.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot.dtsi @@ -69,6 +69,50 @@ 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 = "simple-audio-card"; + simple-audio-card,name = "imx6ul-isiot-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>; + }; + }; }; &i2c1 {