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: 9215793 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 F158C60572 for ; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0C242877D for ; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D54C228794; Wed, 6 Jul 2016 08:59:38 +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 86CCE2877D for ; Wed, 6 Jul 2016 08:59:38 +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 1bKiee-0006R9-HP; Wed, 06 Jul 2016 08:58:00 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKicB-0002gk-9Z for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2016 08:55:29 +0000 Received: by mail-wm0-x231.google.com with SMTP id f126so165220365wma.1 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=Dus+3gV0Z/GZ9ztWXp6Vd1cbkIY55jggF0GbaZ5k49r+ePkFmwShetSxwITjkZ/KC4 vQO1+c5FZphTvykDA+hgkZYooOMH3+4NSiyMGCEN/ID+BM4xIh4geXPxtTOxntoWL7RH SwRQSR2rjfu4QN7zxxdyz5gh00xqZOWaUIruEd+haun+achEfobpRJR7Wb/OuX0JABSM CprLMxSJ9uRHSCxT0IabUg5kt2C/oC6ffy4FRlWOJZBoIvj4tOzDMjkfHBMNYqmGc0Aw 1Y9rEHlvPW6k0iz2JiGRccUxtfsQdZAqVDSRw/h85ZS5qJhKHYpSbL5nW1eMMZw3GZAp vwkw== X-Gm-Message-State: ALyK8tIk7UrriNmF4S4Pw2HVvSc6NL8QLIS4qBkERFa6R9+ct6XTcF0QpuxjX9POrnkFxGUa 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160706_015527_611377_FB3F9158 X-CRM114-Status: GOOD ( 11.24 ) 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: peter.griffin@linaro.org, dmaengine@vger.kernel.org, lee.jones@linaro.org, Arnaud Pouliquen , devicetree@vger.kernel.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 --- 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>; + }; + }; + }; }; };