From patchwork Tue Feb 13 13:01:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 128229 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4229290ljc; Tue, 13 Feb 2018 05:02:32 -0800 (PST) X-Google-Smtp-Source: AH8x226e7tW+4vnialo2OKYuXA3C/ji0jglWogEbsPYpejCLyx+5tCmiMWhllGkETgckrDU9DJi9 X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr1102804plf.124.1518526952298; Tue, 13 Feb 2018 05:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518526952; cv=none; d=google.com; s=arc-20160816; b=XWGwCmqMuhmXEZ/H8UiVnLMAPRt+xk2GRU3HTfkahtWGb+SHrksf0DWOsperOMN3uS xrnjKbXCs2Gx5cQ8xa9J7b+7g1ATwfY21GgY4vVsKsc5eifVzz3daZd6aV5mNl6t3AMK hx7b/WOHGWnpVg+l2Qnqz4UTLu2uoE+8v/f6u6YD2AMps5sLqecyUp+lV4dY2R7VoukI Z76kml+40AGkRalfCOBv98tvRFwq4jQqgR3dO/+dXa8ZgwmlFwyVoKW00Qf/qAGpr54L gZTxJNQYN6dDkVg6hwYnx7XgRX3KVspmiujQOFwXBojSvSCD0/pPdi5AHg7Wmc+yGGS+ FC2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=AHTRnYPJgB//eua0a/nZke+O5vjYvWoXoO9Fhf4E5ls=; b=LPiVee7x7OIMf5eGkXvpdyk+lWtdwiQGLwj/+dYgkUur+RIF3QdMGUjvl3E0QTVC7X 7j00K65I9Ch1Z+j3BuEv2kEJEphCn2a5FRfRC4LIrsC91yg890s6Jtffc0h/tN0epS6g 38zOvpXq0/hs4mRye/UWeVYNG3X+sOQkwtqYvcLVq6UAw2XMRKLViVKSaGNOKyOjjFid Uo0qbQvF3TFeJmNAYdAlHLD2LQZihXE62Z9oLXWInkG8d/xQjo2NvyJvShnvpHW/0JnT IRjIwibXuhaiNcz+rZXpnMkyX5NWM9E1uHkuH3vEni1Kcd+2Lm/a8MsWZyeEf6XqNAAh JW3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si1477608pls.294.2018.02.13.05.02.29; Tue, 13 Feb 2018 05:02:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935281AbeBMNCZ (ORCPT + 28 others); Tue, 13 Feb 2018 08:02:25 -0500 Received: from mx.socionext.com ([202.248.49.38]:19017 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935187AbeBMNCG (ORCPT ); Tue, 13 Feb 2018 08:02:06 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Feb 2018 22:02:04 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 37297180B65; Tue, 13 Feb 2018 22:02:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Feb 2018 22:02:26 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 9B17D1A0DEC; Tue, 13 Feb 2018 22:02:03 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 723CD1209D6; Tue, 13 Feb 2018 22:02:03 +0900 (JST) From: Katsuhiro Suzuki To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Masahiro Yamada Cc: alsa-devel@alsa-project.org, Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH v3 3/3] arm64: dts: uniphier: add compress audio out for UniPhier LD11/LD20 Date: Tue, 13 Feb 2018 22:01:56 +0900 Message-Id: <20180213130156.27827-4-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213130156.27827-1-suzuki.katsuhiro@socionext.com> References: <20180213130156.27827-1-suzuki.katsuhiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds compress audio node for S/PDIF on UniPhier LD11/20 global boards. And adds settings of AIO for it. Signed-off-by: Katsuhiro Suzuki --- Changes in v3: - Move comp-spdif-out node to root from soc node - Use phandle of endpoint directly instead of port node --- arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts | 18 +++++++++++++++++- arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) -- 2.15.1 diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts index f057ee80f38e..875d05b1356e 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts @@ -47,7 +47,8 @@ dais = <&i2s_port2 &i2s_port3 &i2s_port4 - &spdif_port0>; + &spdif_port0 + &comp_spdif_port0>; }; spdif-out { @@ -60,6 +61,17 @@ }; }; }; + + comp-spdif-out { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + + port@0 { + comp_spdif_tx: endpoint { + remote-endpoint = <&comp_spdif_hiecout1>; + }; + }; + }; }; &serial0 { @@ -118,3 +130,7 @@ &spdif_hiecout1 { remote-endpoint = <&spdif_tx>; }; + +&comp_spdif_hiecout1 { + remote-endpoint = <&comp_spdif_tx>; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index b2e197bc968c..34537f9dce82 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts @@ -47,7 +47,8 @@ dais = <&i2s_port2 &i2s_port3 &i2s_port4 - &spdif_port0>; + &spdif_port0 + &comp_spdif_port0>; }; spdif-out { @@ -60,6 +61,17 @@ }; }; }; + + comp-spdif-out { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + + port@0 { + comp_spdif_tx: endpoint { + remote-endpoint = <&comp_spdif_hiecout1>; + }; + }; + }; }; &serial0 { @@ -100,3 +112,7 @@ &spdif_hiecout1 { remote-endpoint = <&spdif_tx>; }; + +&comp_spdif_hiecout1 { + remote-endpoint = <&comp_spdif_tx>; +};