Received: by 2002:a4f:b056:0:0:0:0:0 with SMTP id m22csp1411496ivi; Fri, 2 Oct 2020 09:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI1fzGSM8DAtC0vWD3D5U80d/oe8wvffCvjn4ZuCu0Cf3F5Ixn0lZJH91O5EcnAXO1imJP X-Received: by 2002:a17:907:3393:: with SMTP id zj19mr3046899ejb.258.1601655998557; Fri, 02 Oct 2020 09:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601655998; cv=none; d=google.com; s=arc-20160816; b=OADM4U7/JwLyR6ru8WftRTHzd1F9S2RCD0bDT3dUnxiVIftExh2m9kU3g4SM0gMoOz m9Ym3YTPNWKh3Yk3C9utr/LKRe84JLTaFx6uqY+hh1hVsWDOMhhdCgDsbw7iHLUsuwwu uXq0287Dxo1nrUlTjlxvJ1Hv08SwpEH+jtOrFhJB7vKhtGCbJOFQdzbdql3b83vAqc9i Yio11L8tPW+F1OSU+zq6QVj3m68x2RYz88RkYXomma7IiNdyg/rAYY0MdKBntO2igVLi hIHA3zFVn97adnrQwGW+9DE5TDlXo8IbUDoj1nRtVmw0UN20o83Jvy1tHLk70cSv9LSh M+mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=/Na0kRC1+fJJK0wPJ9qf9WplU4tXDhR5vxqGddIyCrw=; b=ujWIRXVxhHmhFfoYZ/UUve6jIyXG7eysss4o+p1Fg51fS1F0mQxdTdUY4kMwQiwHIm LOi5CQBTnQFB71vIHAmgB1ioEmEUoUqqSjl2w7amAZsr/cZjZwDLZGSg7dKerxp1bVzw +OcY92vUt9O1pte9AI54hX1UIM0rGacfnE/PY1FpzdHPxz27vhZ79BEVdjaT5//f4+SJ rm99nn5xUDHqn5i6Jkssoh+WoqYn5f2LGdFz66AkS2uT6/DyPKbviXH0zs0MV9HHhX4C wajUwrgallBs1F5uF/H9ss5K01Z8S7HHgy6iTpYIdBBf/rGCxylZ32lL9ZFTVUAx5Zq+ QL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=UYbCVYm6; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=q8tHztdT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si1336226edo.318.2020.10.02.09.26.16; Fri, 02 Oct 2020 09:26:38 -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; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=UYbCVYm6; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=q8tHztdT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388239AbgJBQYl (ORCPT + 99 others); Fri, 2 Oct 2020 12:24:41 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:41933 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388064AbgJBQYj (ORCPT ); Fri, 2 Oct 2020 12:24:39 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 2A1805804D8; Fri, 2 Oct 2020 12:24:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 02 Oct 2020 12:24:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=/Na0kRC1+fJJK0wPJ9qf9WplU4t XDhR5vxqGddIyCrw=; b=UYbCVYm6uNUvkTPT1CXHcpN0A0sKzZep1sloQWC7cc6 Z6uc+PYvwS0KSgqwVEwlhMkiniQ5ESzva50/bgItKjZMRUtQZbguqN3rkt1COM2h LoPxtQyT1sAqQijVJKK3qEQ51wr/fbMtEXKZ+C8U7+cJDMozWup3fryix6QSLu3b AO3zmBoBPRrhpGWyUN/OX0Rch68zojC6urfNY0D8TgOqYOWtQfo3GVZKCXh5kJ4a nFeJjof00yf7ho3fgGoR9Sm8SmCRZJ5y7NbLfdBdMLNW+LmorYpAB6QE3YhjzZ34 +uU52c453RHi3+kzFWm5Z9eBvSICFKkMHi+a+/OocrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/Na0kR C1+fJJK0wPJ9qf9WplU4tXDhR5vxqGddIyCrw=; b=q8tHztdTShmOcPdui24ohx oP0+pIQQj8HjoJ4NAkzJl8SDULqlbSlLYID/DfasQtM8vQX0oAWVvGiIcqT/9H4r 0VDyV8KvwVqC1cuBkN30AisoY+IV6vR5Eq0Y3G/BCUpaBkEkV/Qbn3gMTnURoHua ODfpLDWITDXnZYe2pSPvia1rAq1IYOQk2dsvx01/Qgtl6xOoSynVkV/WLynmjiPi u8wj2Y1Jj7P80ZvGVY1pa3kuCuLhvU8a08H15rQvWhw/zJ+AcuKbCEXMGHpbf4Xs DQ4jQunj7/DFFPVyETwMXnmk55G1X2SfG2omQxTVkMSzEySMXXkZDVOHUpKt8HrQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfeeigddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepuddvudfhkeekhefgffetffelgffftdehffduffegveetffehueeivddvjedv gfevnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 6BADB3064610; Fri, 2 Oct 2020 12:24:35 -0400 (EDT) Date: Fri, 2 Oct 2020 18:24:34 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Chen-Yu Tsai , Rob Herring , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Jernej Skrabec , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Subject: Re: [linux-sunxi] [PATCH v5 09/20] arm64: dts: allwinner: h6: Add DAI node and soundcard for HDMI Message-ID: <20201002162434.3jeksuelrig6yyo5@gilmour.lan> References: <20200927192912.46323-1-peron.clem@gmail.com> <20200927192912.46323-10-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pc2zpj5o3hm4cgp3" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pc2zpj5o3hm4cgp3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 02, 2020 at 06:01:21PM +0200, Cl=E9ment P=E9ron wrote: > Hi Chen-Yu, >=20 > On Mon, 28 Sep 2020 at 07:42, Chen-Yu Tsai wrote: > > > > On Mon, Sep 28, 2020 at 1:32 PM Chen-Yu Tsai wrote: > > > > > > On Mon, Sep 28, 2020 at 3:29 AM Cl=E9ment P=E9ron 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=E9ment P=E9ron > > > > --- > > > > 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/ar= m64/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 =3D "disabled"; > > > > }; > > > > > > > > + hdmi_sound: hdmi-sound { > > > > + compatible =3D "simple-audio-card"; > > > > + simple-audio-card,format =3D "i2s"; > > > > + simple-audio-card,name =3D "sun50i-h6-hdmi"; > > > > + simple-audio-card,mclk-fs =3D <128>; > > > > + simple-audio-card,frame-inversion; > > > > + status =3D "disabled"; > > > > + > > > > + simple-audio-card,codec { > > > > + sound-dai =3D <&hdmi>; > > > > + }; > > > > + > > > > + simple-audio-card,cpu { > > > > + sound-dai =3D <&i2s1>; > > > > + dai-tdm-slot-num =3D <2>; > > > > > > Doesn't this end up limiting the number of audio channels HDMI can ca= rry? > > > AFAICT the TDM properties are all optional, so just leave it out. > > > > > > Same goes for the other two patches. > > > > > > > + dai-tdm-slot-width =3D <32>; > > > > + }; > > > > + }; > > > > + > > > > osc24M: osc24M_clk { > > > > #clock-cells =3D <0>; > > > > compatible =3D "fixed-clock"; > > > > @@ -609,6 +628,19 @@ mdio: mdio { > > > > }; > > > > }; > > > > > > > > + i2s1: i2s@5091000 { > > > > + #sound-dai-cells =3D <0>; > > > > + compatible =3D "allwinner,sun50i-h6-i2s"; > > > > + reg =3D <0x05091000 0x1000>; > > > > + interrupts =3D ; > > > > + clocks =3D <&ccu CLK_BUS_I2S1>, <&ccu CLK_I= 2S1>; > > > > + clock-names =3D "apb", "mod"; > > > > + dmas =3D <&dma 4>, <&dma 4>; > > > > + resets =3D <&ccu RST_BUS_I2S1>; > > > > + dma-names =3D "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 nam= e. >=20 > Indeed if there is no DRQ number assigned we shouldn't have it in the > device-tree >=20 > but Samuel told me that the `make dtbs_check` reports: >=20 > i2s@1c22800: dma-names:0: 'rx' was expected > i2s@1c22800: dma-names: ['tx'] is too short > i2s@1c22800: dmas: [[28, 27]] is too short >=20 > Should I fix the YAML so? Yep :) Maxime --pc2zpj5o3hm4cgp3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX3dUQgAKCRDj7w1vZxhR xWNUAQDytEMJPPzTs+e8ZDtzT+2iNv0sKVHta5QD+LfuXZBmbgD/QisIsrbypwx5 fKJkl2netB5EWbzdHHzRhBS1gkZtpgc= =1BCa -----END PGP SIGNATURE----- --pc2zpj5o3hm4cgp3--