From patchwork Wed Jul 6 08:54:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 71434 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp755000qgy; Wed, 6 Jul 2016 01:56:00 -0700 (PDT) X-Received: by 10.66.47.100 with SMTP id c4mr39604481pan.105.1467795354412; Wed, 06 Jul 2016 01:55:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sp8si3042602pab.2.2016.07.06.01.55.54; Wed, 06 Jul 2016 01:55:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753822AbcGFIzn (ORCPT + 30 others); Wed, 6 Jul 2016 04:55:43 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:35315 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753579AbcGFIzH (ORCPT ); Wed, 6 Jul 2016 04:55:07 -0400 Received: by mail-wm0-f52.google.com with SMTP id z126so103260408wme.0 for ; Wed, 06 Jul 2016 01:55:06 -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=TUy6PV3Pa0bfh6fM1mLTV+s7oMPMVizj9d3pTlxgZuNEZtTMEa4RlJcRHpHnGTxieC KScrPGvg2yuOTHYEzVyfWYvxP1V2VsaNPcp8cGMqs6E20lVdNVdY0MclbesbfwjtaX4x /ZtKlVWgMNmFrKt7BfmpVVyHGlx9HM23pwIpk= 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=ivPO0Mnqwaf6sEflJjZtzl8UMxQRTYFh0bjiYw8M6c4z7FTX62sPFkEqCuaq4eimqQ hc0OxHm/ccF67rQJrzRMBxULbeEKQD3JZk0/tM75sXB6MbbCvjc1U1CGW+np285NWWzg rsny6OC5y2L97zSAO6GcuA/rI3pPTatZq2R8LvtFo3RvrzQnUGmr53deU7K/16z6LmCq T1KBzD20BvEKJYsp3O2w+NIgqNLRVBZqynzP8IianGHyg+E/ezrmR/hI5s4QzWu0MQWw Wv+gkf3Wk4OuRmJPO/gZXrKVnsUo5JYz1d3H8izCw+IwQB5i/HeAE4So6WUg05cJRRcw Qjgw== X-Gm-Message-State: ALyK8tIIf9ifSF3qJ+AgWqV+/pPwVRMjcmM+DLv8RgeRXFG2yPl4ov8+vMg6VjcxvyuwL3Of X-Received: by 10.194.115.67 with SMTP id jm3mr19734064wjb.71.1467795305679; Wed, 06 Jul 2016 01:55:05 -0700 (PDT) Received: from localhost.localdomain (cpc84731-aztw28-2-0-cust112.18-1.cable.virginm.net. [82.37.67.113]) by smtp.gmail.com with ESMTPSA id 66sm5363803wmg.23.2016.07.06.01.55.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 01:55:04 -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, bjorn.andersson@linaro.org, ohad@wizery.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, Arnaud Pouliquen Subject: [PATCH v6 16/18] ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card Date: Wed, 6 Jul 2016 09:54:34 +0100 Message-Id: <1467795276-21725-17-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467795276-21725-1-git-send-email-peter.griffin@linaro.org> References: <1467795276-21725-1-git-send-email-peter.griffin@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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>; + }; + }; + }; }; };