From patchwork Thu Jun 15 12:03:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9788731 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 668CC60384 for ; Thu, 15 Jun 2017 12:04:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55079285EA for ; Thu, 15 Jun 2017 12:04:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49B9C285EF; Thu, 15 Jun 2017 12:04:50 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable 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 5E8A9285EA for ; Thu, 15 Jun 2017 12:04:49 +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=PL1+TYjbcXBJLXTCfDyja4lrxs/nkLlN6Rxy2q5JTBU=; b=T0z48CH3SXFei/RciV9ZAZq4ps eux5BAzBQUYLTH3ivIZPfdRGR1ZYPKq61f8NTq3ZCnp930IgNcjqtXgwnrb8e9vrsjphhvZ4AfTIv 5VZQSWxV4Lnb/1yOdlU9BMi7zyCJEK8b4Z63G4q+2rE5NUKNkbcuD90QBZCfUItfCEIllkR2HgwSM vkTNXDUOxn5g2rQnQnrhSzUqIVMg7AvCLHSpudQmfuXWbRD5S+UXYPfRovmG/fcVv7Yuzz33qXDPk zhgS3AQgaoGTjgpX2B3U0fxvAKCgr8q7XiYF4nwPcykaci6z+N/P7fnbVjVsZub52BT8C4QZm7ZBL HRmIg4oA==; 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 1dLTW4-0006gX-81; Thu, 15 Jun 2017 12:04:48 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLTVr-0006P5-Vj for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 12:04:37 +0000 Received: by mail-pf0-x243.google.com with SMTP id s66so1520895pfs.2 for ; Thu, 15 Jun 2017 05:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l5FHIMW/1AGuZo0uYZqhkrsqCJwEK/UNhYiFYP0qZrA=; b=OBpBpep96T2XbE6kQrHtzp/5az95GZ0cmehvtz3krnd2Vd/1c6A9U0yd4ciFml8kBU CQDcJVsaQbFOppqvR9PVRtBNaZqf6V5dyusdDllX1EiFIhXod+OUWCbvfDPz6bKPwTBI gNogH8va38si1GQyHXuyGxuvLOQcn19t8VbzLEHQpjj52ZVSVRTK6erMA7CDMrMj1mJT /3lhBQvBcai6F50eA3lqSEYEiwVk1h5rQOykhIbMT9sJnMfV4ra6uWqXBaoUBSzogEHc 9eTZ/VRA0Du5sC4WffpS3f/sR6mHljHzLUAFkjOtUDOAZ+2kvEuBRvA8fefnAhHyqVIg LZYA== 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=l5FHIMW/1AGuZo0uYZqhkrsqCJwEK/UNhYiFYP0qZrA=; b=XD5galDzdgpSZHfzP2SaIJXIEb5czkzbJUC3oiXc1cr8hVNeVLF0w1WkGguXPnz0GM l85SnqQE5t4jDFPdwG2YHowKb8W4XSBM/qiLSBqadMBuIVaYhmyRypF7Ip7oOct3RoqP /tkmzHiXs7NBSQdA4k3U8I3xa6221LdZSMtUGdi0qXvpbcYd0foNtQ3qDWU8MG5ANl7j TsWRO3M01dujEblFjtLEVR8U6bOVS0Rv/a77URCglonNOIHggxjGR4u+eXbpp4tCAq4w QnCGt24rwArAEDywcOHbB4gmdJ9Wwcows3ztU5bGBuPN/kYFIuzqhd4Ul/n4R6K7Ob7h /FGQ== X-Gm-Message-State: AKS2vOyW67A2Z1Ti/kZ0WJdK897jkv9CX5yPUM3JMv8Nj3E5H0NNDVl2 uOAzJNubY2fWQ2MC X-Received: by 10.84.208.236 with SMTP id c41mr5710932plj.95.1497528255160; Thu, 15 Jun 2017 05:04:15 -0700 (PDT) Received: from localhost.localdomain ([117.247.27.94]) by smtp.gmail.com with ESMTPSA id s131sm5547902pgs.6.2017.06.15.05.04.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 05:04:13 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Shawn Guo Subject: [PATCH v4 2/3] ARM: dts: imx6ul-isiot: Add Sound card with codec node Date: Thu, 15 Jun 2017 17:33:38 +0530 Message-Id: <1497528219-20396-2-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497528219-20396-1-git-send-email-jteki@openedev.com> References: <1497528219-20396-1-git-send-email-jteki@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170615_050436_098671_80720F89 X-CRM114-Status: GOOD ( 10.03 ) 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. Signed-off-by: Jagan Teki --- Changes for v4: - Move i2c1 into imx6ul-isiot.dtsi 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.dtsi | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot.dtsi b/arch/arm/boot/dts/imx6ul-isiot.dtsi index 3c442f6..e2dacdc 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 { @@ -77,6 +121,16 @@ pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; + 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>;