Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp2521162ima; Sun, 3 Feb 2019 01:08:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+/od3BsNoOBXfDLuXiKJDOY/V0Z2vkGl8mzlGGpJJ5rDjtUv+17aN+9Wrhlw5pCDbhJgr X-Received: by 2002:a63:d157:: with SMTP id c23mr7194585pgj.170.1549184900193; Sun, 03 Feb 2019 01:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549184900; cv=none; d=google.com; s=arc-20160816; b=fUxbVUegATM/pgtEBfOOgl0fAkDSlPcQ9dqf7YEXCLKiHw/zfCNmFa2du0OLx2c1Qb Xda5OPMewuVSxcMR17EkDuDqIiQNzZ8gdcSHAf7ZO8gsVBJxdbs/NgawU6bO+5P1l+uR NABSTtPt0muQP5X8H2HVK/PqVXH4wnU6mC0z4fUBAqSwj86XYwN2R/X8nsoGj1Zbtsll PuhVXZq7XCvLjeNGHg63/vpEuhX46v3DhY7F+c/o9a/a3NuGyiFrNi8LgiSM0pW5sm2D G7M5ZLuzib0z40lK9rW4xbqNMOevuV6BmmBtoLtmSFgPgYPM/8gfWu011RnTCSRD3TNM Jnbg== 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=uZU5UVc6XsrmEo3zK6JaCq00fexX0ZM2Fc2gFa7rbtY=; b=tlm8dc6gFqF+kM+NRU8jtAzP3vGubzGwXjSUQFECldLattuGNxFrbOw8I3GCyQwbaq ACmGfP2lQ0YwaZcnLMM7Nu/xAX2vwKb3LxXnuU9WMiDPgZgtnky17NX1JjCob8ZrAP3u 7G0xerNvquC/x43XYYUtyWkRNd5fyLOCdqEkuKpG/8qdK1aK0JwJpnBLxZ298uWCEDTb J0LUCQvnwZt4FxGIRUDlAtHsfR/nlDGaAH3liOjwECrOfa9oD18mPA1dNC0IbB6uG/tm Bq72LiJkZYuO2yRwd5k2vLOXxWpK9prwKYfnZ9bYDFpU1+S8t4rS7h/Jf6P7EAllxV/L xKbQ== 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 x15si786606pgq.378.2019.02.03.01.08.04; Sun, 03 Feb 2019 01:08:20 -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 S1727616AbfBCJGp (ORCPT + 99 others); Sun, 3 Feb 2019 04:06:45 -0500 Received: from gloria.sntech.de ([185.11.138.130]:53296 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727424AbfBCJGp (ORCPT ); Sun, 3 Feb 2019 04:06:45 -0500 Received: from [164.15.244.47] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gqDjb-0001LR-FP; Sun, 03 Feb 2019 10:06:39 +0100 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] arm64: dts: rockchip: add HDMI sound node for rk3328-rock64 Date: Sun, 03 Feb 2019 10:06:38 +0100 Message-ID: <1970132.3b67tCGWFf@phil> In-Reply-To: <20190202043444.9308-1-katsuhiro@katsuster.net> References: <20190202043444.9308-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 Am Samstag, 2. Februar 2019, 05:34:44 CET schrieb Katsuhiro Suzuki: > This patch adds HDMI sound (I2S0) node and remove dma properties > from UART2 node for rock64. > > The DMAC of rk3328 can use 8 channels at same time. Currently, total > 7 channels are used as follows: > - I2S1 2ch > - UART2 2ch > - SPDIF 1ch > - SPI0 2ch > > HDMI audio using I2S0 that requires 2ch but DMAC has only 1 channel. > > UART2 can work without DMA resources, so this patch removes dma > allocation for UART2 and reuses it to I2S0. I don't follow that description. How can i2s0 re-use the uart2 dma channels? Looking at the dma table in the TRM, uart2 has channels 6+7 while i2s0 uses channels 11+12. They should just run concurrently? > > Signed-off-by: Katsuhiro Suzuki > --- > .../arm64/boot/dts/rockchip/rk3328-rock64.dts | 24 ++++++++++++++++++- > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + > 2 files changed, 24 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts > index 2157a528276b..e21645aa3fa5 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts > @@ -68,7 +68,8 @@ > sound { > compatible = "audio-graph-card"; > label = "rockchip,rk3328"; > - dais = <&i2s1_p0 > + dais = <&i2s0_p0 > + &i2s1_p0 > &spdif_p0>; > }; > > @@ -141,6 +142,12 @@ > > &hdmi { > status = "okay"; > + > + port@0 { > + hdmi_p0_0: endpoint { > + remote-endpoint = <&i2s0_p0_0>; > + }; > + }; > }; > > &hdmiphy { > @@ -256,6 +263,18 @@ > }; > }; > > +&i2s0 { > + status = "okay"; > + > + i2s0_p0: port { > + i2s0_p0_0: endpoint { > + dai-format = "i2s"; > + mclk-fs = <256>; > + remote-endpoint = <&hdmi_p0_0>; > + }; > + }; > +}; > + > &i2s1 { > status = "okay"; > > @@ -343,6 +362,9 @@ > > &uart2 { > status = "okay"; > + > + /delete-property/ dmas; > + /delete-property/ dma-names; > }; > > &u2phy { > diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi > index 84f14b132e8f..374b5da93a35 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi > @@ -665,6 +665,7 @@ > pinctrl-names = "default"; > pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>; > rockchip,grf = <&grf>; > + #sound-dai-cells = <0>; please make that a separate patch Heiko