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: 74807 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp393846qga; Fri, 26 Aug 2016 07:58:10 -0700 (PDT) X-Received: by 10.66.185.14 with SMTP id ey14mr6894335pac.71.1472223486357; Fri, 26 Aug 2016 07:58:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e69si21621791pfb.83.2016.08.26.07.58.06; Fri, 26 Aug 2016 07:58:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754348AbcHZO5u (ORCPT + 7 others); Fri, 26 Aug 2016 10:57:50 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:35531 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754304AbcHZO5q (ORCPT ); Fri, 26 Aug 2016 10:57:46 -0400 Received: by mail-wm0-f53.google.com with SMTP id f65so281813363wmi.0 for ; Fri, 26 Aug 2016 07:57:45 -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=M8ruNAXcrfHieTHeZ45TVbUe87b4P2N5CR+40LnaJ5J2w4EYZ3ry5xnwQSqHyXyCxn HXl/t0OfzOskDMjL+c+IVL4gvJGQZDt92mtaB1OYESUGn/BGHWsTv0QYqJVwsrjK95BP e72lSh/khQl7AzDr2SZU3Z2KuJIczjYENz/p9kB+4aV919H+Muzd5GbNk6i2TTklytFA tU8lxd81/wdKv6DpDJVrzMy8WF/CkC3kLOe4JDq4bVvAcjaUKP15v0e2/ly2vZH/rS5y Mx4q/0vxZD6dlrRnT8/cXEkty5ehMUtujNdIsgaZLRDSnZ9tzmN6wNFQIXTvOCpw0Mk5 LCEw== X-Gm-Message-State: AE9vXwO3+zIBsnBT+eFnFsquPrvThQ7jUnUNCD43QuRMg6YRPKCTfZpU12FH1wSOI/FFr7qN 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 Cc: peter.griffin@linaro.org, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-remoteproc@vger.kernel.org, Arnaud Pouliquen 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; + }; + }; }; };