Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3816772imm; Mon, 17 Sep 2018 03:49:05 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda228zc1fakc//V3z9Zk0clzc9XLiZGHMW/gt/OjL5L4Wn/je5gC3trgzcUlb71Ftuabxnp X-Received: by 2002:a62:a05:: with SMTP id s5-v6mr25648960pfi.147.1537181345259; Mon, 17 Sep 2018 03:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537181345; cv=none; d=google.com; s=arc-20160816; b=bQqGdn7cJqHN2oAn5ipcCznqqOcm5SWIU4R8BuzHryy+ZHQ3748J9Ug5huIO3qqDBi M42lwrKODiPz9h4VFdDJkgkbXNZhF4861u4OrjLAb2O4MQTErG4u08PD+DnJaGxRxSVG PBHGoTrE/c7hOx6DkzVVCrQOyjuVZqwtFENq2YygUvCHSyg0mwuIZ7e/QG6mH0n+7P7m H6H0HaaKMB3O0MSY5vbrkRuUjtfKseDC4NW9szfUuLjxpIR9SXgKDjZ2DmYGh4/8rIY8 PW/huwUcRshZmA444FuNNkNeSjp9yFOh7t8h5zNKlqS0HV/L7E++ApnPeEQe9yo86iSY YJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=72u31KOGYrLl1i8qb3LRVbzely+8xgvB8Ccj6+Cfw8Y=; b=Mp0IPeAlaqo3JK1j105Jt27vIQ194Bw9dI1Isl8k7WWk/NGtIl6g6cw7EOPAhA44m8 leZiaaMdlbc8eubi1q8jYFVqD+elWGPwEtudT593urKdw842VbFzXB6mC6SGllZ+vVT9 ThtwQLIwgiCkANyzHWYRJM7B0uV7EN+0v7eAzWIW3Jr7JLvEzNG03fv5MTwSEuJCMRpb IYW81t7Kpmv37Cne8cSjXn0AjUbma40P4JnYim4cpLs1lCSEyJaYohRC0njZN75Of8OV 9b2ya4XrQCejr7mQhKS7Ihlp9EPJbhZb5g9RtZdUaax3ajd3CK9YCNlXFVm69bXEIEwi 5rdw== 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 u11-v6si12490052pgc.460.2018.09.17.03.48.49; Mon, 17 Sep 2018 03:49:05 -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; 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 S1728045AbeIQQOR (ORCPT + 99 others); Mon, 17 Sep 2018 12:14:17 -0400 Received: from gloria.sntech.de ([185.11.138.130]:33506 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727547AbeIQQOR (ORCPT ); Mon, 17 Sep 2018 12:14:17 -0400 Received: from wd0459.dip.tu-dresden.de ([141.76.109.203] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g1r3l-0000bj-Ot; Mon, 17 Sep 2018 12:47:17 +0200 From: Heiko Stuebner To: Katsuhiro Suzuki Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: rockchip: add i2s and spdif endpoints of rk3328 Date: Mon, 17 Sep 2018 12:47:17 +0200 Message-ID: <9920488.EWSIgOMfRJ@phil> In-Reply-To: <20180917085555.21775-1-katsuhiro@katsuster.net> References: <20180917085555.21775-1-katsuhiro@katsuster.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am Montag, 17. September 2018, 10:55:55 CEST schrieb Katsuhiro Suzuki: > This patch adds port and endpoint of i2s and spdif nodes for rk3328. > Because to use modern sound card interface such as audio-graph-card. > > Signed-off-by: Katsuhiro Suzuki > --- > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi > index d3ef6566325e..fd35dbd37ee2 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi > @@ -179,7 +179,13 @@ > clock-names = "i2s_clk", "i2s_hclk"; > dmas = <&dmac 11>, <&dmac 12>; > dma-names = "tx", "rx"; > + #sound-dai-cells = <0>; > status = "disabled"; > + > + i2s0_p0: port { > + i2s0_p0_0: endpoint { > + }; > + }; I'm still pondering this. I.e. I'm not sure I really like adding all these empty nodes only to have them filled in board devicetrees. This is specific to the audio-graph-card, and neither simple-audio-card nor the Rockchip-specific cards we have use something like this, so currently I'm tending to just have all audio-graph-nodes defined in the board devicetree using it. For example similar to arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts or zte/zx296718-pcbox.dts do it. It would be different if the graph-links were actually on the soc-level like vop<->hdmi or so, but this is completely board-specific. Same for the others below. Thoughts? Heiko > }; > > i2s1: i2s@ff010000 { > @@ -190,7 +196,13 @@ > clock-names = "i2s_clk", "i2s_hclk"; > dmas = <&dmac 14>, <&dmac 15>; > dma-names = "tx", "rx"; > + #sound-dai-cells = <0>; > status = "disabled"; > + > + i2s1_p0: port { > + i2s1_p0_0: endpoint { > + }; > + }; > }; > > i2s2: i2s@ff020000 { > @@ -201,7 +213,13 @@ > clock-names = "i2s_clk", "i2s_hclk"; > dmas = <&dmac 0>, <&dmac 1>; > dma-names = "tx", "rx"; > + #sound-dai-cells = <0>; > status = "disabled"; > + > + i2s2_p0: port { > + i2s2_p0_0: endpoint { > + }; > + }; > }; > > spdif: spdif@ff030000 { > @@ -214,7 +232,13 @@ > dma-names = "tx"; > pinctrl-names = "default"; > pinctrl-0 = <&spdifm2_tx>; > + #sound-dai-cells = <0>; > status = "disabled"; > + > + spdif_p0: port { > + spdif_p0_0: endpoint { > + }; > + }; > }; > > pdm: pdm@ff040000 { >