From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3A4FC43381 for ; Sat, 2 Mar 2019 14:19:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C1DC20857 for ; Sat, 2 Mar 2019 14:19:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nZGAw9EM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C1DC20857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=katsuster.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FOUoem5/i6uvGhCiDsUHxSXrSToNUa/6DCXRWKC8vxE=; b=nZGAw9EMEFC+Gwwq1ZL6Drlsg gZb6x3Ji8H8g2GCmzG8dYUihyGhHugQJUhYgvehAgwtTX3a5C20OJ+DngIb0AzYEsqAOKbeUE8u/9 EVd6DqFD6Xarny5ZS2/+d2W9qZFeJa7AaR4RyQuvYVmENFhRNnsPyvmwNegK5aO+Gyg6farH6g0mN RSsFunz0TgIb+xkYjNftB793p8iaf9q3tK6lMt39t2rXjCVxxbvu7rR8YBsqMB5I+o1mApVCe/DXN M3i5DHuWo0Va9ZdV3QMgtrQ5Dedko2WO61pRK9aWNertsh6b2nska9lJIP2GIB7PMVRpyKOnf09KT kjHPB03MQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h05U7-0005oR-MW; Sat, 02 Mar 2019 14:19:27 +0000 Received: from www1102.sakura.ne.jp ([219.94.129.142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h05U4-0005no-0Q; Sat, 02 Mar 2019 14:19:25 +0000 Received: from fsav405.sakura.ne.jp (fsav405.sakura.ne.jp [133.242.250.104]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x22EJGcc045326; Sat, 2 Mar 2019 23:19:16 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav405.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp); Sat, 02 Mar 2019 23:19:16 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp) Received: from [192.168.1.2] (119.104.232.153.ap.dti.ne.jp [153.232.104.119]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x22EJFQt045323 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Sat, 2 Mar 2019 23:19:15 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH v3 2/2] arm64: dts: rockchip: add HDMI sound node for rk3328-rock64 To: Heiko Stuebner , linux-rockchip@lists.infradead.org References: <20190217173407.29189-1-katsuhiro@katsuster.net> <20190217173407.29189-2-katsuhiro@katsuster.net> From: Katsuhiro Suzuki Message-ID: Date: Sat, 2 Mar 2019 23:19:15 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190217173407.29189-2-katsuhiro@katsuster.net> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_061924_298196_1291C5A0 X-CRM114-Status: GOOD ( 18.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Ping... On 2019/02/18 2:34, Katsuhiro Suzuki wrote: > This patch adds HDMI sound (I2S0) node for rock64. > > After apply this patch, UART2 will fail to allocate DMA resources > but UART driver can work fine without DMA. > > This error is related to the DMAC of rk3328 (pl330 or compatible). > DMAC connected to 16 DMA sources. Each sources have ID number that is > called 'Req number' in rk3328 TRM. Currently total 7 sources has been > activated as follows: > > | Req number | Source | Required | > | | | channels | > |------------+--------+-----------| > | 14, 15 | I2S1 | 2ch | > | 6, 7 | UART2 | 2ch | > | 10 | SPDIF | 1ch | > | 8, 9 | SPI0 | 2ch | > |------------+--------+-----------| > | | Total | 7ch | > > HDMI audio needs to activate new source I2S0 (Req number 11 and 12). > I2S0 can work concurrently with other sources, but rk3328 DMAC can > use max 8 channels at same time. If I2S0 is simply activated by this > patch, required DMAC channels will be 9. So last one (UART2) cannot > allocate the DMA resources. > > Virt-dma mechanism for pl0330 DMAC driver is needed to fix this > problem. > > Signed-off-by: Katsuhiro Suzuki > --- > .../arm64/boot/dts/rockchip/rk3328-rock64.dts | 21 ++++++++++++++++++- > 1 file changed, 20 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..bfc0930d245c 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"; > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel