From patchwork Fri Aug 26 14:56:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 9301615 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 2FD67607EE for ; Fri, 26 Aug 2016 15:30:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2117629501 for ; Fri, 26 Aug 2016 15:30:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15B872953E; Fri, 26 Aug 2016 15:30:57 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9155529501 for ; Fri, 26 Aug 2016 15:30:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdJ4f-000609-75; Fri, 26 Aug 2016 15:29:41 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdJ4R-0005bd-Rg for linux-arm-kernel@bombadil.infradead.org; Fri, 26 Aug 2016 15:29:28 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdIa7-00050F-41 for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2016 14:58:08 +0000 Received: by mail-wm0-x232.google.com with SMTP id q128so282802339wma.1 for ; Fri, 26 Aug 2016 07:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IDiQGCxhIvFMVv6TtYkUKY7kaRUHMQHgJjpBh+uVVY4=; b=Z1TKPY97f+nibqJnQye4YoUzHDhsISd5M9zkOz/rZ7azCyVjPanzPRseCAKl+SpEGq 2Kd1VLH9uxYLhY89HhCCjuzTUOTs+tkKt2xYUTHh3uuTsxehivYbjfrrfI1Wsfuox2/W CD+KzAMBqJk+drWNu/3xNMFKNzlAR+I6CR00s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IDiQGCxhIvFMVv6TtYkUKY7kaRUHMQHgJjpBh+uVVY4=; b=OzAmpK0uEewvrMVeOcF1YaCO/2SbmJZvu3iEDF5B4pppoYAjTlzKNBPOr+Pnmr6whV t8az0lG7y3MeNeADRpDoIcR+WyCisaY+BKmO6bdssFV53gw2L/+j1o9q1KeH7R4SD/Jx g8mJNu2q+soyEWattjYl3UFkrkFrYpmuYaqBZtMSzoqhudPWABdo/++PFV0DOJVd+Um9 UNCLZfx+9w7fItB62mbSHv3ALYrrF0nzdykuJucBMLt0zJAOzF32aGTdm0CzjB3uj0tw b+kvq4akPz/HKniL9TMOyMqpNcXCQIKTe/+RyseqRAnbtSew7EIfiiUOuMC4dtjqeb3g ZMAQ== X-Gm-Message-State: AE9vXwMyfORe+I2oLM0JBxRIfE5r/9P+d73WI/N8LYE1uQl+uD+btp3PisCpPJh+uaoWFWha X-Received: by 10.28.96.11 with SMTP id u11mr4442096wmb.5.1472223465010; Fri, 26 Aug 2016 07:57:45 -0700 (PDT) Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id 4sm43996176wmu.2.2016.08.26.07.57.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Aug 2016 07:57:44 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, vinod.koul@intel.com, patrice.chotard@st.com, dan.j.williams@intel.com, airlied@linux.ie, kraxel@redhat.com, ohad@wizery.com, bjorn.andersson@linaro.org Subject: [PATCH v8 16/18] ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card Date: Fri, 26 Aug 2016 15:56:51 +0100 Message-Id: <1472223413-7254-17-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472223413-7254-1-git-send-email-peter.griffin@linaro.org> References: <1472223413-7254-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160826_155807_206492_BE1528D4 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Arnaud Pouliquen , linux-remoteproc@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, peter.griffin@linaro.org, dmaengine@vger.kernel.org, lee.jones@linaro.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 This patch enables the uniperif players 2 & 3 for b2120 boards and also adds the "simple-audio-card" device node to interconnect the SoC sound device and the codec. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin Acked-by: Lee Jones --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi index 722c63f..1f64bb6 100644 --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi @@ -131,5 +131,50 @@ dvb-card = ; }; }; + + sti_uni_player2: sti-uni-player@2 { + status = "okay"; + }; + + sti_uni_player3: sti-uni-player@3 { + status = "okay"; + }; + + sti_sasg_codec: sti-sasg-codec { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdif_out>; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "sti audio card"; + status = "okay"; + + simple-audio-card,dai-link@0 { + /* DAC */ + format = "i2s"; + mclk-fs = <256>; + cpu { + sound-dai = <&sti_uni_player2>; + }; + + codec { + sound-dai = <&sti_sasg_codec 1>; + }; + }; + simple-audio-card,dai-link@1 { + /* SPDIF */ + format = "left_j"; + mclk-fs = <128>; + cpu { + sound-dai = <&sti_uni_player3>; + }; + + codec { + sound-dai = <&sti_sasg_codec 0>; + }; + }; + }; }; };