Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3422545ybl; Sun, 11 Aug 2019 23:37:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmP3LqXYd2yUq4W9wTqh0S5I09G/jkRgSCzvsq2SRgJ/4DhFlQy1Gbm1AFMvVob1kg3/ra X-Received: by 2002:a17:902:2ac8:: with SMTP id j66mr30205476plb.273.1565591842869; Sun, 11 Aug 2019 23:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565591842; cv=none; d=google.com; s=arc-20160816; b=CirB+F/+WbwnQ6HciTH5DoMcaJQ6VdsZCuaFK/zuTNAxdeQSThcAbi6S5et4c1AztJ g5k0rzW0qSVKkiIYxgTLr3GYZHWt3WfAUkhqLz7ATZqeQX7QBNZXIWYMHLvh6GDyXd8i yg/uWETcAPdqiQSvFELMR9l83QuyxSO1VKQVlRoW0f3lqoU6lxyRXKz2EVnY5Kxhb0Ru 0jof3mfoGrgVWNeJq2jRuopGQJ81acl1bhHEXYZqfJ6yD7rX4aOxWa4SukKIEbFBqZgS YvMHVzei//QRlW/4UFHO16ZYou2AgiLeJDQkdc5z2sFYNQOs1AMhZGizZPBqDYEd5Oln YG2g== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9KlxtmJA/PxzE1TwOpXC77qewH8RKJNuXj/faOGGuFE=; b=hs+RGTRsgV0WcH+0zMnwiMTIvPlkIu/+d9rt0enYLCRK6V6OuHVzPXjuDSyk/Hmj6t hxssLQ2+ccIeri2jcDMkxsF36LaCjxZUIDkOvBiqjm9rgIH/PeKnaKhJnq6rpynoc4yX /rvkSrtTGIFTzg7HktEunOsK7GN1kuMwo+w8xT+ilFla7caYDWiZ7gO0A+lgmyiDWidX wFiauOWNE7ERT4XgknPCgzUvN6BB8nlcHSkf+ndttGkVq7LNsFnyNYfIkUQySgbX0Ygl k2u2etHK6+jWvnA+9BoH88tD4X9vog2gM34NLdSwWo9qWWqzA5UG3rTt4dhkTk2fQJwG rZRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="2Je1iR/p"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si55298563plp.212.2019.08.11.23.37.07; Sun, 11 Aug 2019 23:37:22 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="2Je1iR/p"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbfHLGfE (ORCPT + 99 others); Mon, 12 Aug 2019 02:35:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:53598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbfHLGfE (ORCPT ); Mon, 12 Aug 2019 02:35:04 -0400 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF0792085A; Mon, 12 Aug 2019 06:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565591703; bh=FDH4N0xh7Fwa7gaXhJaHOOg7qvvBLShzHcWko2nwNJU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=2Je1iR/p45ngVV/8voc5pWJs1X09knzNcaDwIkPS3Zu76WYAIPWXDNiKw5M6wgzj7 zBjx/7/0jehu4GB3B0xp2TxAbr1GQ/6zI+ukgt65P4RqZ/rSeORZjjjH+Zit5sVt83 l75VHZIgzm4DArOUi+I0ql+z1xyz7HegjlbAQz6I= Received: by mail-wr1-f51.google.com with SMTP id 31so103596184wrm.1; Sun, 11 Aug 2019 23:35:02 -0700 (PDT) X-Gm-Message-State: APjAAAWtMjCbPpE0aM30EIB1zb4Dxgn4kPTfGVM0EmoBmycwwh9kZpsi HS0FvOg+aImyZL1O52iKhmjSYh5JA/7ZrLkvTwo= X-Received: by 2002:adf:dbce:: with SMTP id e14mr29948995wrj.9.1565591701429; Sun, 11 Aug 2019 23:35:01 -0700 (PDT) MIME-Version: 1.0 References: <20190811203144.5999-1-peron.clem@gmail.com> <20190811203144.5999-2-peron.clem@gmail.com> In-Reply-To: From: Chen-Yu Tsai Date: Mon, 12 Aug 2019 14:34:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v5 1/3] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Chen-Yu Tsai , Maxime Ripard , Rob Herring , linux-arm-kernel , devicetree , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 12:52 PM Chen-Yu Tsai wrote: > > Hi, > > On Mon, Aug 12, 2019 at 4:31 AM Cl=C3=A9ment P=C3=A9ron wrote: > > > > The Allwinner H6 has a SPDIF controller called OWA (One Wire Audio). > > > > Only one pinmuxing is available so set it as default. > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > --- > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 38 ++++++++++++++++++++ > > 1 file changed, 38 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/= boot/dts/allwinner/sun50i-h6.dtsi > > index 7628a7c83096..677eb374678d 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > @@ -83,6 +83,24 @@ > > method =3D "smc"; > > }; > > > > + sound-spdif { > > + compatible =3D "simple-audio-card"; > > + simple-audio-card,name =3D "sun50i-h6-spdif"; > > + > > + simple-audio-card,cpu { > > + sound-dai =3D <&spdif>; > > + }; > > + > > + simple-audio-card,codec { > > + sound-dai =3D <&spdif_out>; > > + }; > > + }; > > + > > + spdif_out: spdif-out { > > + #sound-dai-cells =3D <0>; > > + compatible =3D "linux,spdif-dit"; > > + }; > > + > > We've always had this part in the board dts. It isn't relevant to boards > that don't have SPDIF output. > > Also, not so relevant here, but there are different simple sound card > constructs. Some support multiple audio streams with dynamic PCM routing. > How these are configured really depends on what interfaces are usable. > > So keeping this at the board level is IMO a better choice. Forgot to mention. Both patches and all parts in this patch are OK. It's just the parts the need to be moved. > ChenYu > > > > timer { > > compatible =3D "arm,armv8-timer"; > > interrupts =3D > @@ -282,6 +300,11 @@ > > bias-pull-up; > > }; > > > > + spdif_tx_pin: spdif-tx-pin { > > + pins =3D "PH7"; > > + function =3D "spdif"; > > + }; > > + > > uart0_ph_pins: uart0-ph-pins { > > pins =3D "PH0", "PH1"; > > function =3D "uart0"; > > @@ -411,6 +434,21 @@ > > }; > > }; > > > > + spdif: spdif@5093000 { > > + #sound-dai-cells =3D <0>; > > + compatible =3D "allwinner,sun50i-h6-spdif"; > > + reg =3D <0x05093000 0x400>; > > + interrupts =3D = ; > > + clocks =3D <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDI= F>; > > + clock-names =3D "apb", "spdif"; > > + resets =3D <&ccu RST_BUS_SPDIF>; > > + dmas =3D <&dma 2>; > > + dma-names =3D "tx"; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&spdif_tx_pin>; > > + status =3D "disabled"; > > + }; > > + > > usb2otg: usb@5100000 { > > compatible =3D "allwinner,sun50i-h6-musb", > > "allwinner,sun8i-a33-musb"; > > -- > > 2.20.1 > > > > -- > > You received this message because you are subscribed to the Google Grou= ps "linux-sunxi" group. > > To unsubscribe from this group and stop receiving emails from it, send = an email to linux-sunxi+unsubscribe@googlegroups.com. > > To view this discussion on the web, visit https://groups.google.com/d/m= sgid/linux-sunxi/20190811203144.5999-2-peron.clem%40gmail.com.