Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2783384pxk; Sun, 27 Sep 2020 22:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4U48681uKUf22K5DEW6Kp4qc3rHaKXgPKf/LtAzIwRtdnBf0d+9mY7BwJXUZPN00cpssa X-Received: by 2002:a17:906:fca7:: with SMTP id qw7mr75447ejb.522.1601271884730; Sun, 27 Sep 2020 22:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601271884; cv=none; d=google.com; s=arc-20160816; b=mAplSnHCmPp/3U5SWcGGW7LS9Xl9MTJ5Pbn1oHWL2YPyoy/F3jY4XYcR9CJlI+809Z OnxSg9ticHCmf7iWgjk06WqXDfQGILdx4sp/2pdJqf1OVSl41Ky3K2apJ6duSWRpvm0d k+GDciVhrhZGy5w2wazJjBhlAtFS2AK4CZNePnauLXq8mBiQ/YEBRc16GgXqw86ESwIO JiaKs2HV2lUI+Q3f51CKeArcrgOdabj7VUJyzvTsoVW4jwGNoArSWWXKjqSrsKiiDrY1 ye7CK4oEP7AJEPITVGheb/+5ZKPkjR1wBb8IQZf36uuJHKaAQnvMg+eQAMNNK3cd+oZZ TwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=zfMleH4wbmywF81oroJfD/AzDqfeewA7eRf0BuO+54s=; b=hH7yXfN1/8wVBr/g3RAttBKI0SAj9NTYe9auLQnWB2Bp0TlfeTlqCauoBBxXGdDgYh f1bP38Uvz5ZzG4R2OBC/5nQv1zchTPHUvx16ZLRPF3dvGt6N/KmCj5eH9FGv7fG21C1V BlnSyj4c/0Vvhnd+58cd7+hVmMKQZfIGW/jd2BGQLi/PNnqHxqYYMXkODvjYygfF12CB JMSLNf4cIY4dKg24K7mh7kDEJ/LpvOy4JJio4ldOwb9jZYMji/5f1t0pRIZ+CtTPcPgA epSy7HVJb2EfiW9GAq3YKQ/Bp+MSNVIq3I1GtqxBqDpY1sTmDDIw1W7fOJUhDLn/59aO ofTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si7118050ejb.231.2020.09.27.22.44.07; Sun, 27 Sep 2020 22:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgI1FmZ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 28 Sep 2020 01:42:25 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:47076 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbgI1FmZ (ORCPT ); Mon, 28 Sep 2020 01:42:25 -0400 Received: by mail-lf1-f65.google.com with SMTP id b22so9602478lfs.13; Sun, 27 Sep 2020 22:42:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=62VVtrR40xPsUderogAnod9rxvj1xY9G9jJZfGS80Yo=; b=ZBCRU0+7mxx5MpYw+evPJ1sUBAJtJyT49zS0OHcaDdGT2BfWm/muyrzPfZeHqjvivy p9lIYG/n7NdzLwq/DAXdqn0qeZavNDwJsfo+od7oyFxsrZFcoMrWMkfErdM50vSYde12 Rz1mRJ+MlsMx0ZJqldn0W2J4xQR2n+A075Htz+pZ/WAuGvNK0+fp5KGlSngUwbMUx7Fs w9qvuy+gKwoPQsFilIQaYYsj4xecDzX2Hoz6x9rz+B4P7XiKFTqvz59xjerH6GywUaQ0 i4U8D1TLVzv+MoDrs9qgD5AGtUzE8IH6WJ1hbeJWvsC17W/nMDPzG3AJI0yd+80vQhRi hxWQ== X-Gm-Message-State: AOAM531N9ZQ+TLkBgYYzkx8P5hdQ7+856vVmFuX7z2fBlu/WThcdruPE crGf96YrmlG23dw2LqZX5lLONzR8Jprb2g== X-Received: by 2002:ac2:5f77:: with SMTP id c23mr3651600lfc.568.1601271742726; Sun, 27 Sep 2020 22:42:22 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id k3sm2745115lfg.300.2020.09.27.22.42.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Sep 2020 22:42:22 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id z17so9593602lfi.12; Sun, 27 Sep 2020 22:42:22 -0700 (PDT) X-Received: by 2002:a19:c6c8:: with SMTP id w191mr2928439lff.348.1601271742080; Sun, 27 Sep 2020 22:42:22 -0700 (PDT) MIME-Version: 1.0 References: <20200927192912.46323-1-peron.clem@gmail.com> <20200927192912.46323-10-peron.clem@gmail.com> In-Reply-To: From: Chen-Yu Tsai Date: Mon, 28 Sep 2020 13:42:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v5 09/20] arm64: dts: allwinner: h6: Add DAI node and soundcard for HDMI To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Maxime Ripard , Rob Herring , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Jernej Skrabec , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 1:32 PM Chen-Yu Tsai wrote: > > On Mon, Sep 28, 2020 at 3:29 AM Clément Péron wrote: > > > > From: Jernej Skrabec > > > > Add the I2S node used by the HDMI and a simple-soundcard to > > link audio between HDMI and I2S. > > > > Note that the HDMI codec requires an inverted frame clock and > > a fixed I2S width. As there is no such option for I2S we use > > TDM property of the simple-soundcard to do that. > > > > Signed-off-by: Jernej Skrabec > > Signed-off-by: Marcus Cooper > > Signed-off-by: Clément Péron > > --- > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 33 ++++++++++++++++++++ > > 1 file changed, 33 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > index 28c77d6872f6..a8853ee7885a 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > @@ -67,6 +67,25 @@ de: display-engine { > > status = "disabled"; > > }; > > > > + hdmi_sound: hdmi-sound { > > + compatible = "simple-audio-card"; > > + simple-audio-card,format = "i2s"; > > + simple-audio-card,name = "sun50i-h6-hdmi"; > > + simple-audio-card,mclk-fs = <128>; > > + simple-audio-card,frame-inversion; > > + status = "disabled"; > > + > > + simple-audio-card,codec { > > + sound-dai = <&hdmi>; > > + }; > > + > > + simple-audio-card,cpu { > > + sound-dai = <&i2s1>; > > + dai-tdm-slot-num = <2>; > > Doesn't this end up limiting the number of audio channels HDMI can carry? > AFAICT the TDM properties are all optional, so just leave it out. > > Same goes for the other two patches. > > > + dai-tdm-slot-width = <32>; > > + }; > > + }; > > + > > osc24M: osc24M_clk { > > #clock-cells = <0>; > > compatible = "fixed-clock"; > > @@ -609,6 +628,19 @@ mdio: mdio { > > }; > > }; > > > > + i2s1: i2s@5091000 { > > + #sound-dai-cells = <0>; > > + compatible = "allwinner,sun50i-h6-i2s"; > > + reg = <0x05091000 0x1000>; > > + interrupts = ; > > + clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; > > + clock-names = "apb", "mod"; > > + dmas = <&dma 4>, <&dma 4>; > > + resets = <&ccu RST_BUS_I2S1>; > > + dma-names = "rx", "tx"; Sorry, missed this one. Given that usage for this interface is transmit only, and there is no RX DRQ number assigned to it, you should drop the RX DMA number and name. > > + status = "disabled"; > > + }; > > + > > spdif: spdif@5093000 { > > #sound-dai-cells = <0>; > > compatible = "allwinner,sun50i-h6-spdif"; > > @@ -739,6 +771,7 @@ ohci3: usb@5311400 { > > }; > > > > hdmi: hdmi@6000000 { > > + #sound-dai-cells = <0>; > > compatible = "allwinner,sun50i-h6-dw-hdmi"; > > reg = <0x06000000 0x10000>; > > reg-io-width = <1>; > > The rest of the patch looks OK.