Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp558553ybh; Tue, 21 Jul 2020 02:08:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhJ1RC66J/ZzmePGUJ/HnnncmLwObQGRem1LggemnvHBL5VWJJidYiCxXF1qiF2tRI8IvJ X-Received: by 2002:a05:6402:31b4:: with SMTP id dj20mr18207207edb.158.1595322481014; Tue, 21 Jul 2020 02:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595322481; cv=none; d=google.com; s=arc-20160816; b=FJ/fFn8VfxlBcCW7lq/M2D4CeMxfaqxSIAIdSGp/ykSWNRUKaBZ2SqX2gPOQ0JFSLk 7s62tFHC4Lw6fhjBezTdRon0Ug7KQAEorrzI1Z7xN0au3Cwa5GV23R5/gWmzbyIPJZzm oCiHpHChGDbKjMqmQv5v29UgyV9Rft1deJ+oCsVcq4rVGfLA/RTnNEvwbuWyE/va7mlP rfkWxvt7CXTReLVhuVTWI16Rbx11txZtUJwgNbhZ487I4ODPXxIJX9niK53IrKhpdq3H fKqu7alrBtHJ+B+i8SK9GloSMPBfKzeDlVPjixRpaGB7kL5xLUxIcfcSP6gOVr2KSu0t +Yog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:to:from:user-agent:references:dkim-signature; bh=eJAf5TqY4xjyFfENWpYGA/Sf6LhZbLJdf/d4cczg5I4=; b=oCDCOAwFvn91wVgZ40t8MKsKJMXmuPPbqQFuWgrYSWV7qW95gD2Wej2aZAYmDjCxAn 5I4LqwAxgX+oxj7MHq7qmdkzg6+8dn1ZO9Mw47tKpT4n1hg4558TSYz4C9X6alNK+u87 X9dxKzIrWRGrRPlDzrxWlYwEZzvncV0++3o6z4OctyzmzqDK6ZPIgp28PZVH2qFbwAte TcUk7pY/2D+tRvxZsCf6NjDxPwXE+rTPUBjqRLffUAAWVjPmbuvVQvVyFHo6GfRG0Ehf YY53r5RZbLk+EkIt3ihz06MKquC+qL74TnlfyglkmqKz1n73OR435tIitnrMCUtMBEz8 nKDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Eyu6z8M9; 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 n14si7536395ejs.745.2020.07.21.02.07.37; Tue, 21 Jul 2020 02:08:00 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Eyu6z8M9; 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 S1728345AbgGUJGf (ORCPT + 99 others); Tue, 21 Jul 2020 05:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgGUJGe (ORCPT ); Tue, 21 Jul 2020 05:06:34 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 838FBC061794 for ; Tue, 21 Jul 2020 02:06:34 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id f18so20455649wrs.0 for ; Tue, 21 Jul 2020 02:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=eJAf5TqY4xjyFfENWpYGA/Sf6LhZbLJdf/d4cczg5I4=; b=Eyu6z8M9gQaOHXcaenx5F+YLmsjXbJtvlxZGoPNZBVjN4CdNjdja1O0ku/m7fYa31Q wKCp8g4WFPmOcNBAiEVOY5MnHiqry+5IGk8bL/5N/K8cI8fuh1mFyxzjqi20olvVWmKN gmy+bQivQpZK/J+WczmaJKGBCqcGPb5RY5RybtJUK2bth1GvYGWJWx1SfK7DOpIsxaJm QDJnZIJ5BRk5ML2caba270UXEqUoAwHI7crMzk3111BnUwtIXgWepYSHG0H0XkI+jLrn 0qD/r6lXLoJHfagDnVytE4r6qx6ggNX+MqA8fgWgzdMAF7taIy9wCAfi+0vXpZ+Lghx7 A3og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=eJAf5TqY4xjyFfENWpYGA/Sf6LhZbLJdf/d4cczg5I4=; b=PlOSih1FpBCZj1tFnqMDfiF3O7/KI2Lep12qdNmG5EzX1k2TBa3N7knPyAFPIFrLU0 j3EWUlW3TmxGOHBQIOZOLAmlp3dKFBCq4BDyj+DMRJMsPFTD4MqCNZxJ2KqNsn8Bpc0N kLRz4iUvYifWaAByUKmyhfyck1+DUPRQuFQR0hoJxQoMU6y10wzoYhuHWSIsKyrv0z4f XyYgJl9HTjCzbpSYo0Fn7j1nEt9DGYDGbbbzind43nIMclZ0i5hSY7BIVvYgbgWQCjm3 AN2szxlL4dqVEmvQDXQKgq6/WsbHMaE3pheUDBy0qoJEIl3uwO0sbfY/7TGLsTdzUzBJ R6Dg== X-Gm-Message-State: AOAM530DcUjD9CjhyA0BAytdvtV8PBESywcyBVWVrW2WPYQ43eb+lE0l Sxng0ASnGCDOlnfSkTSnEbpbbA== X-Received: by 2002:adf:8bd3:: with SMTP id w19mr16194729wra.167.1595322393169; Tue, 21 Jul 2020 02:06:33 -0700 (PDT) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g14sm39750016wrw.83.2020.07.21.02.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 02:06:32 -0700 (PDT) References: <20200719024548.8940-1-christianshewitt@gmail.com> <20200719024548.8940-4-christianshewitt@gmail.com> User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Christian Hewitt , Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] arm64: dts: meson: add audio playback to u200 In-reply-to: <20200719024548.8940-4-christianshewitt@gmail.com> Date: Tue, 21 Jul 2020 11:06:32 +0200 Message-ID: <1jpn8p8cfb.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 19 Jul 2020 at 04:45, Christian Hewitt wrote: > Add initial support limited to HDMI i2s and S/PDIF (LPCM). Nack. #1. Same comment as before on spdifout B and SPDIF HDMI input. #2. the u200 is a special reference device with 2 onboards codecs, external connector for audio daugther boards and internal codec. I don't see another board using that configuration, which would make them incompatible #3. TDM B is a bad choice on this board as it connected to one of the i2s codecs of the board, which won't take 4 lines ine. > > Signed-off-by: Christian Hewitt > --- > .../boot/dts/amlogic/meson-g12a-u200.dts | 131 ++++++++++++++++++ > 1 file changed, 131 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > index a26bfe72550f..dde7e258a184 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > @@ -8,6 +8,7 @@ > #include "meson-g12a.dtsi" > #include > #include > +#include > > / { > compatible = "amlogic,u200", "amlogic,g12a"; > @@ -18,6 +19,13 @@ > ethernet0 = ðmac; > }; > > + spdif_dit: audio-codec-1 { > + #sound-dai-cells = <0>; > + compatible = "linux,spdif-dit"; > + status = "okay"; > + sound-name-prefix = "DIT"; > + }; > + > chosen { > stdout-path = "serial0:115200n8"; > }; > @@ -147,6 +155,91 @@ > regulator-boot-on; > regulator-always-on; > }; > + > + > + sound { > + compatible = "amlogic,axg-sound-card"; > + model = "G12A-U200"; > + audio-aux-devs = <&tdmout_b>; > + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", > + "TDMOUT_B IN 1", "FRDDR_B OUT 1", > + "TDMOUT_B IN 2", "FRDDR_C OUT 1", > + "TDM_B Playback", "TDMOUT_B OUT", > + "SPDIFOUT IN 0", "FRDDR_A OUT 3", > + "SPDIFOUT IN 1", "FRDDR_B OUT 3", > + "SPDIFOUT IN 2", "FRDDR_C OUT 3"; > + > + assigned-clocks = <&clkc CLKID_MPLL2>, > + <&clkc CLKID_MPLL0>, > + <&clkc CLKID_MPLL1>; > + assigned-clock-parents = <0>, <0>, <0>; > + assigned-clock-rates = <294912000>, > + <270950400>, > + <393216000>; > + status = "okay"; > + > + dai-link-0 { > + sound-dai = <&frddr_a>; > + }; > + > + dai-link-1 { > + sound-dai = <&frddr_b>; > + }; > + > + dai-link-2 { > + sound-dai = <&frddr_c>; > + }; > + > + /* 8ch hdmi interface */ > + dai-link-3 { > + sound-dai = <&tdmif_b>; > + dai-format = "i2s"; > + dai-tdm-slot-tx-mask-0 = <1 1>; > + dai-tdm-slot-tx-mask-1 = <1 1>; > + dai-tdm-slot-tx-mask-2 = <1 1>; > + dai-tdm-slot-tx-mask-3 = <1 1>; > + mclk-fs = <256>; > + > + codec { > + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; > + }; > + }; > + > + /* spdif hdmi or toslink interface */ > + dai-link-4 { > + sound-dai = <&spdifout>; > + > + codec-0 { > + sound-dai = <&spdif_dit>; > + }; > + > + codec-1 { > + sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>; > + }; > + }; > + > + /* spdif hdmi interface */ > + dai-link-5 { > + sound-dai = <&spdifout_b>; > + > + codec { > + sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>; > + }; > + }; > + > + /* hdmi glue */ > + dai-link-6 { > + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; > + > + codec { > + sound-dai = <&hdmi_tx>; > + }; > + }; > + }; > +}; > + > +&arb { > + status = "okay"; > }; > > &cec_AO { > @@ -163,6 +256,10 @@ > hdmi-phandle = <&hdmi_tx>; > }; > > +&clkc_audio { > + status = "okay"; > +}; > + > &cpu0 { > cpu-supply = <&vddcpu>; > operating-points-v2 = <&cpu_opp_table>; > @@ -203,6 +300,18 @@ > phy-mode = "rmii"; > }; > > +&frddr_a { > + status = "okay"; > +}; > + > +&frddr_b { > + status = "okay"; > +}; > + > +&frddr_c { > + status = "okay"; > +}; > + > &hdmi_tx { > status = "okay"; > pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; > @@ -288,6 +397,28 @@ > vqmmc-supply = <&flash_1v8>; > }; > > +&spdifout { > + pinctrl-0 = <&spdif_out_h_pins>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&spdifout_b { > + status = "okay"; > +}; > + > +&tdmif_b { > + status = "okay"; > +}; > + > +&tdmout_b { > + status = "okay"; > +}; > + > +&tohdmitx { > + status = "okay"; > +}; > + > &uart_AO { > status = "okay"; > pinctrl-0 = <&uart_ao_a_pins>;