From patchwork Mon Sep 11 09:12:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9946955 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 8AA4A602C9 for ; Mon, 11 Sep 2017 09:18:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7933028B55 for ; Mon, 11 Sep 2017 09:18:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D84F28B67; Mon, 11 Sep 2017 09:18:34 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED 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 2E0F428B55 for ; Mon, 11 Sep 2017 09:18:32 +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: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:In-Reply-To: References:List-Owner; bh=F/rg4PrdgUoqZOSOgz1osyp0Ikk69s1wzSpRWNTcsU8=; b=Kqs 2IDT+LZKU3WmqqmjvkgwVwd+pLPOFcnH6YNMEsJkfrvl0KkYpDw0bm+9KiFaYvzWcwimvJMwLl9mP +WAkBEJIv+CAOG1I4STm09m2/A3SNUpzgvoLFKVX4C3pP4ZMktIUOJWSdCz6tniy3UZxjMNL8gnjy QssL6awO22A5hilb2/xA/EmFM0/8KM8m6z2KEgLsfri/PbnWXzgKTzxi8rHBewVSAnodA0ZNs5zU3 PQQ3tXY3uz3OqhIJbGyWm0iI6s/f2w08jOOuyzxjFY1f7U2qSftcCdqdzEg+yxYslrpnvZCXQ8Ej+ XSFKbMBcsX1hTcx7mtPtpSVjzKuT2KQ==; 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 1drKrM-0004A4-Al; Mon, 11 Sep 2017 09:18:28 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1drKrC-0003tD-A4 for linux-arm-kernel@lists.infradead.org; Mon, 11 Sep 2017 09:18:25 +0000 Received: by mail-pg0-x244.google.com with SMTP id v82so4378311pgb.1 for ; Mon, 11 Sep 2017 02:17:56 -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; bh=aiHZX2Y6kV3Rt/o4ehJEts/b2jUfEdH0nSQCx1P3Sus=; b=PxGQtvUI9rjoriTkKGWvtF/ZUgo6o9pPBULFLJhgPOxn0oU/kZrDXGbSBlLW08ipzQ 7iTL7ie6OsVl173VigFMwjErcS/kd369B4ZZjRKhcEA+yDxURV79T261tW+lCwn0274m pxzlYG0/xvbxsS3tQm4fxFK7CM2Kjx+JCj0K7thHF0F3OP3S4okS4zeqZmxCO6ie7iX6 FMpX4/JF8EUwSAfififvZPk7M6551toOiKztA3dBnuyPhmSG3QLVa8lAXEyHykhJ5BMH EfwvXQk66lAa2FbGIHDHximWnd+Qel2ZE/RpzSSDPD8Zi/N+HcgYoV6q2/jtoXU2J3vK FddA== 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; bh=aiHZX2Y6kV3Rt/o4ehJEts/b2jUfEdH0nSQCx1P3Sus=; b=EqUjOvAwZeWuK+1pDKJYhPqbjeDXPi2YIDC2ZKvXIzO8YTwjoM/MCtmYp5X65OW0V9 XBEyXfO3Cy48c0uFfmvDWywzeYlKgmdvBPRov0SRKGY0pClxItmDa+TP0UTKp7FcByDZ bH54sDBkN57RqKj9Weq7VVDSEZel9MVYWskoUHHmRfHznOXhCneapfRBq6o+6DZm/mXM DcDQ5mNA0687XTl/xtLCMcg4UUhnigLU03Zeb3dUJtCLBlITg3e0sxmDS1nA15KFiH6y cbp8FMbSf/YgDF0eTRGKwz2oyQMQwBai4wNUSnzHZjS05lxbnDuSn80xRJT18D2/C5D7 jr9w== X-Gm-Message-State: AHPjjUhIziwSJbdgOgiKJqNJmVusfeo1QoEqadPGIsLv8Df09PfH7k1v Za63dU/TlENIbhrn X-Google-Smtp-Source: ADKCNb5wVcPCG5KFdY5vw2k3ed+nMWWmWhbuuZpauOuUNAtMyKAm8PThduvd0Hm+p1y4HFPjkA5oCg== X-Received: by 10.84.238.16 with SMTP id u16mr13324199plk.217.1505121476191; Mon, 11 Sep 2017 02:17:56 -0700 (PDT) Received: from localhost.localdomain ([115.97.191.18]) by smtp.gmail.com with ESMTPSA id a78sm16550835pfl.39.2017.09.11.02.17.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 02:17:54 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Shawn Guo Subject: [PATCH v4 1/6] ARM: dts: imx6qdl-icore: Add Sound card with codec node Date: Mon, 11 Sep 2017 14:42:20 +0530 Message-Id: <1505121145-9507-1-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170911_021818_522345_979C059A X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. 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 i2c3) nodes to i.CoreM6 QDL module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v4: - Moved sgtl5000 node into dtsi instead of multiple copies of same in dts files 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 arch/arm/boot/dts/imx6qdl-icore.dtsi | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 56d0c5d..5cdb93a 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,31 @@ #clock-cells = <0>; clock-frequency = <25000000>; /* 25MHz for example */ }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx6qdl-icore-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 = <&ssi1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&sgtl5000>; + }; + }; }; &can1 { @@ -141,6 +185,15 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; + + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks IMX6QDL_CLK_CKO>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p8v>; + }; }; &pwm3 { @@ -149,6 +202,10 @@ status = "okay"; }; +&ssi1 { + status = "okay"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>;