Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3451016ybl; Mon, 12 Aug 2019 00:13:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTXckiKpYygWRHaE9wi7LxgLugMBMaMeSqaO9bJKKxZ1XS6gq9cqUB/DtbXavd6uqpkDqj X-Received: by 2002:a63:67c6:: with SMTP id b189mr27665292pgc.163.1565594036178; Mon, 12 Aug 2019 00:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565594036; cv=none; d=google.com; s=arc-20160816; b=vKtDkIkE654aV3DYHwl/DWdpAkB/iOP9RNwokK9cll0s7S67fif8zRF9Pis23s9IoB Qlywx7Adkqo34cWLZt+vsJbAZF8LyZMcBeWdUn7l8uZcpiSy0FKfYpOFil1Y2Ujyg33e 823rylZPBVqhD02GPspRaSHsL/1BYi09q5KnKkwPFZus736SGj473CcbHU4VU3mIIcc5 LesSmd4WeJi5Dovk1K8yIKOWx5vxk/7IHQiAMHFiYKfXvCO+FUcC40xpMnhwvN717BmK 4CzXhmq1Gkoddq+gvBESO7OZ2jK2egrKti08ngwfSdnKAT0ELNV0gh8aql4goxysWJTy m7fw== 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=w53iwTfuNgVzz+uekdvZLevbq0Q8+wQ8XWoSTjhLEzw=; b=H6uUJP+zvgnGkuFHnWk8nJEHQjaaNAvBvTimXe61zioAmB/jmCfgr2ZSnmVFC7X7XL WWcEw5LBWlvJqGoeEnhXSo/PhVz2BJd9bGFKkX7PPC4MzEHUT4owK86HeMVRYlMTcz1p i1ugDFluRAkyrsJnPNbCUaopFZPIXgGSMcE6kyJDy8mtoizZH4PJg5+rF2y2esToJIkr P+J0j4nmeC06/zHGzpvT6srYleWbS3j2AhBgtV9EfDN2n4beWd1yZwUiveO0ZrDgochT O/AoG5h571d7J4h+MjE5v/o8T9l9Ox/R244CT6MFuZPS1/tZ0yh2aHQ2yrV5B2W6DHg5 ca2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dx1A50aN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si1339057pfz.197.2019.08.12.00.13.40; Mon, 12 Aug 2019 00:13:56 -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=@gmail.com header.s=20161025 header.b=dx1A50aN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbfHLHMD (ORCPT + 99 others); Mon, 12 Aug 2019 03:12:03 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:39260 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfHLHMD (ORCPT ); Mon, 12 Aug 2019 03:12:03 -0400 Received: by mail-yb1-f194.google.com with SMTP id s142so8592808ybc.6; Mon, 12 Aug 2019 00:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=w53iwTfuNgVzz+uekdvZLevbq0Q8+wQ8XWoSTjhLEzw=; b=dx1A50aNGZNyaxktizwfsIS5ig44DHRVLmjnRFBxzE2aEVU5gp9aDwZyRbfQ1xM+ls aPbSCNMVVMseuHKonr5RmEpdmDF773I6dzbPr0ZiapfPWYaMmbvwrdeKGKjq5DWtvPWk 85rd6xty+3YXrIZEiag82dgZZiPVpgFV3XMK5t8THU//e9elcVF/KSvc79jXjSA85HoZ E6J4wsVh6zq9zXFV3rGsNqalljXtxizDfHtUWUH9MI43T1bmzWCm+5qioWCty8BiITj/ FUF3305LVRMdcGdtdAChlUWc/Ise2vpHp6p52/dNwF2LxwWt2AR+UcyY7+xaR9UmlKmM Rs4w== 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=w53iwTfuNgVzz+uekdvZLevbq0Q8+wQ8XWoSTjhLEzw=; b=VDnG6JkQevCePuTo5E53IURr/TUVkB3A3HPPxXtzrpPnE0p8boh5gECEL7MH8SqySM TRJRn+rRydLrn+NgqC/MKS2esuBhfJfSYGUJ6CX26YMA22Gjy9HhUrrKV0pBy2jhemyC KAVF97DtVZScT8wJBHgADrOgZwQEBsZgy6uzmh6HhSA78oXZ/2fJLk44In9NE3sZhDTn PbP5AsDeqxw9lOob/Yns53SNII1GMWLOhtkVSrJiGojomBHJgTi/+JQM33ggBa4DAAWw PefXwJmTtVcPL0iNJskQ7Iz0H4b4xUHpIW5VgCfFHDlCW5JTNYgCHDLWXwbXztpGX7AQ r0hg== X-Gm-Message-State: APjAAAVTPfAgJccAoRR+kPr5cJNCF/72K9OWrYM/eGXQdl6+Il1OnNEO xFBp8vBknA+Sa/nTf3QgLxwrEBIpW7Aiu+WjT24= X-Received: by 2002:a5b:9c9:: with SMTP id y9mr291017ybq.438.1565593921754; Mon, 12 Aug 2019 00:12: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: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Mon, 12 Aug 2019 09:11:50 +0200 Message-ID: Subject: Re: [linux-sunxi] [PATCH v5 1/3] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 To: Chen-Yu Tsai Cc: 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 Hi Chen-Yu, On Mon, 12 Aug 2019 at 08:35, Chen-Yu Tsai wrote: > > 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/arm6= 4/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 board= s > > 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 routin= g. > > How these are configured really depends on what interfaces are usable. > > > > So keeping this at the board level is IMO a better choice. I Agree, I try to keep coherency with sun50i-a64.dtsi. But sound routing is really at board level not SoC one. Regards, Cl=C3=A9ment > > 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_SP= DIF>; > > > + 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 Gr= oups "linux-sunxi" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d an email to linux-sunxi+unsubscribe@googlegroups.com. > > > To view this discussion on the web, visit https://groups.google.com/d= /msgid/linux-sunxi/20190811203144.5999-2-peron.clem%40gmail.com.