Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1287008imb; Sat, 2 Mar 2019 09:21:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwg2CcfqeFdWG6ei+MZtPwoU01vuvj7UFsbIpG9wlQWH5lq/QOggokyZCBTTuHpMnI5Twh3 X-Received: by 2002:a65:50cc:: with SMTP id s12mr10555719pgp.130.1551547277781; Sat, 02 Mar 2019 09:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551547277; cv=none; d=google.com; s=arc-20160816; b=EBRLpi+J8BbTr9Ie7WpWmWEeqs0IsBdeHoY6aXHY3MqNPBOJ5wwwY8bHKvgXz1YpLY LQAEYVaAcq4BkFtMOexSiCuoVLCpaUA7/hQCKJdT46mI3/GB4+7wtWy+ltGJxT2Vvrfb Gj69Aieq9le5oehHTVqhQ7mskaJLP57XgL6c7OHCQO17RIYi4R3cQlqL4iN2yWnKA0tZ 2KAMEwvs9QSi8ZkOEf5nq37pejWmK7+5m2PVZyHRc7oRuK4XykkVLtiShr5OoPLtS8sn 1DlkuGcMZQvry00NEGKChRqgu9ob+V4h/45PdjdZ9iHTEV7dkQ/6pvbk+zxEpJZnm0Gz Fwaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=EsMLKsHF3gZfIwk4zVik9OwwqP3ohDrZS4cOM9y68ZY=; b=gpLIs3+DJ4n5oHOXocauBqgf5ypYPcrfLFPiI57MpHlgGbMdzANHffOYMSv7x9SHHE XNHyOf363VC8GHdsqFSdF+NXn+ujd0DDQILkqle6xxzIGVnrHvCl7czfF0aE6AXV97E1 ZDeO3IbT/vNc2qcwpAT/6DiKX05of+ZatyKZttA2rb1QoyXsKf5s2xUXqtEkrhMpIQTQ QQ9Wc2dK1pDXCXQus4o6ZkItBnNC8Db3GkIjGkjFRnLFPjT/z9I8oZaNGeCfXRogHKYK ZTgujWLW4BoPONy8cp52MqABGt89QfQhj93QyjqiV8oqAeBQP9jybTDvKpOdbn8oxRte tv2w== 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 1si1080987plp.334.2019.03.02.09.20.59; Sat, 02 Mar 2019 09:21:17 -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 S1726830AbfCBRUj convert rfc822-to-8bit (ORCPT + 99 others); Sat, 2 Mar 2019 12:20:39 -0500 Received: from mail-oln040092070015.outbound.protection.outlook.com ([40.92.70.15]:29754 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726532AbfCBRUi (ORCPT ); Sat, 2 Mar 2019 12:20:38 -0500 Received: from DB5EUR03FT007.eop-EUR03.prod.protection.outlook.com (10.152.20.55) by DB5EUR03HT093.eop-EUR03.prod.protection.outlook.com (10.152.21.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Sat, 2 Mar 2019 17:20:34 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com (10.152.20.59) by DB5EUR03FT007.mail.protection.outlook.com (10.152.20.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Sat, 2 Mar 2019 17:20:34 +0000 Received: from AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3]) by AM3PR03MB0966.eurprd03.prod.outlook.com ([fe80::8011:1f4d:3804:e5f3%10]) with mapi id 15.20.1665.015; Sat, 2 Mar 2019 17:20:33 +0000 From: Jonas Karlman To: Katsuhiro Suzuki , Heiko Stuebner , "linux-rockchip@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v3 2/2] arm64: dts: rockchip: add HDMI sound node for rk3328-rock64 Thread-Topic: [PATCH v3 2/2] arm64: dts: rockchip: add HDMI sound node for rk3328-rock64 Thread-Index: AQHUxucMoxU67kG9/EyxObajZ+kTbqX4eAaAgAAypAA= Date: Sat, 2 Mar 2019 17:20:33 +0000 Message-ID: References: <20190217173407.29189-1-katsuhiro@katsuster.net> <20190217173407.29189-2-katsuhiro@katsuster.net> In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0902CA0043.eurprd09.prod.outlook.com (2603:10a6:7:15::32) To AM3PR03MB0966.eurprd03.prod.outlook.com (2a01:111:e400:884c::23) x-incomingtopheadermarker: OriginalChecksum:B4E8430D749EE469649883135F264C20922E0D0FA43BAFF6F1E87B268EFF9507;UpperCasedChecksum:F1A336DCFFBA3EF2E599F690CB35DDF105B3AE27220B3B3E08C2E12C3691FC61;SizeAsReceived:7834;Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [+hqndVKGM9qvdoOWFsq9qdG3xJA17iNh] x-microsoft-original-message-id: x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045);SRVR:DB5EUR03HT093; x-ms-traffictypediagnostic: DB5EUR03HT093: x-microsoft-antispam-message-info: QAvaa5wEt0p9ARoQBfmXxOUg/fspG18SZKi0svY/RADUvqT/K7bEzgAp9zr9pp3u Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 91c4abaf-729d-482e-f8aa-08d69f33608c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2019 17:20:33.6858 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-03-02 15:19, Katsuhiro Suzuki wrote: > 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>; I am working on multi-channel hdmi audio support for dw-hdmi at [1] and are wondering if having multiple dais on one graph card instead of a separate hdmi sound card will affect the ability to define a proper alsa config for multi channel hdmi sound. [1] https://github.com/Kwiboo/linux-rockchip/compare/8874c206d613dc575f5cb6e385e7a866020138d0...92b20eaa6b6dd2cf3418a428f905d10bbc62724f Regards, Jonas >> }; >> >> @@ -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-rockchip mailing list > Linux-rockchip@lists.infradead.org > https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.infradead.org%2Fmailman%2Flistinfo%2Flinux-rockchip&data=02%7C01%7C%7Cfcb0d6c43ded4d5e7d4c08d69f1a226d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636871331922090426&sdata=ABb%2Fo%2FMAGvFBH%2B37uQr6rzn%2B%2FXBAXyiGfv2%2BMO0RQoQ%3D&reserved=0