Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3497026ybz; Mon, 20 Apr 2020 04:04:41 -0700 (PDT) X-Google-Smtp-Source: APiQypKwdxD+el+AiBJmhAneSNuEJMMpTdajkJeJNQTxlUuk5cXJflhk0E8SWVuU6dKF44WmlTA9 X-Received: by 2002:a17:906:c82b:: with SMTP id dd11mr14744048ejb.216.1587380680819; Mon, 20 Apr 2020 04:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587380680; cv=none; d=google.com; s=arc-20160816; b=EkVxg7QbibgOye2R6Hz3xKa1+O8nnGPPA+TojAtf7O868r2uxE7caZ5RfWfQnwHCa8 84dBAGviq78ZOTQ3g26y8jpm1LFYQ49fEBa1c9Pmh6tb/AVsIW2rRwX0EI8pFlEKq9da S/EbBsISrjJ5PWhOYGweLucOucTbSJw+vR4p78gx/C4XXGfjSP00IioukwHTLh76cOdC AZr8TWhaeY5CCz2nNwY1I+LVq9xxm4xOzQh0LHZGuC0LnXnd0mEOaok5j914H9yJFkRW fihJJW/ykCZP4+CcOOgxtkhCp78ZjdpiR7/jd6A9HvdKPdyv0yA6l3c5z573p9rs6uxT htJQ== 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=RrxAUu1aJiYwPMpjnlo5gqgVd7ZtEZg5UXQs37AT2OA=; b=zs311vvt4MEM4MwbFo8V9K1tIQpFnkFbj6hgmpNNYrCbP8tc/qWuxO4K+rASFXv9Tp h3Lk44PYkEty5IxXqmjjAviPNMvNWj7uFghhWaWDwugj1PMcPBmN1GTfneRYDEohie86 L5jvvzi+igo5o4/QILXJQH+oxn5nVhpi8oLwqTGEGbbj1mya/irP6rxuuUW6gBOmJebU g8Ti6rbSSwI++uktR/iksSagXeRyoLd4RESVhgYXgeA515cvgIT/3fzRNZs+1d4guR5s w3AFNX3gSWJheMBlTLq/1XBim7QEq5IhL/Xl3NE5UYP7ANB14QcVr1ojG3/Tcoa8OaI9 E2jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lMFob3fx; 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 n7si314730edt.587.2020.04.20.04.04.16; Mon, 20 Apr 2020 04:04:40 -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=lMFob3fx; 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 S1726105AbgDTLDM (ORCPT + 99 others); Mon, 20 Apr 2020 07:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726061AbgDTLDM (ORCPT ); Mon, 20 Apr 2020 07:03:12 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B28C061A0C for ; Mon, 20 Apr 2020 04:03:10 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id h2so10494318wmb.4 for ; Mon, 20 Apr 2020 04:03:10 -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=RrxAUu1aJiYwPMpjnlo5gqgVd7ZtEZg5UXQs37AT2OA=; b=lMFob3fxLkovbZefAL5wA3odVFIm8ECwFR8ONBNSMabgh9EC7cc1FPL9ylGueS3l7N Oao6KqAJmY/5QX0pzOeisTWEPOvDMQG9B+35JR/KSFGBdoV4wZ6OzZWAOvk4hKkMtBWf eB8fnGfr2wuWqVXqAmHaYVPGDgRQhRb36FTMASiRw4Neeyms8nCwIKJXjP39wK+Drgus sj+0AHJc3GRtn9s+3aA/BEhBpM2xdpMJHCK8Cujl5ZRsEF29TNerD8+rCEQ7LjcNp9nL Ddaz7/UXcIR/+wloa0P4zUKSPYl/9Aokn5frOpGbBhU8qUCspjSMMjlUYgNHucJAxPGy Uxyw== 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=RrxAUu1aJiYwPMpjnlo5gqgVd7ZtEZg5UXQs37AT2OA=; b=D0qESVoz9qdUdu+TcZC0yBWzPtlCBa4kH73Kd5f74nt3HEN5RDRXGqw42EU4K6SnJh QMabxQ2jPeYv0FYFtcKtMxsXFJ6LacUoJy9I+ykz3/Letd5XQ+e4sowv8iHLIThvMnEq 6xrh2LK91ip6eHAQFSh1GLovSRXeeYzBOxaK1dw3vDUi+SUWAj+Hfq8Pqyp2/BvsnYF3 gZLrgzC7hr/o4iujnPqZPO3/g/Q89wEbKRbfmrXoTq0vVMNKvly/Am8j8AC0THUvdlD4 0fvmDWY2rHTbqds3k9KIkVL7aleYypV5cSNJS4vvRgQus/SqP8BvMJGeVgiwMtNb2pq5 W5Qg== X-Gm-Message-State: AGi0PuatI5ZhsIHQHg35Rf5lilwdJq+sdR9gIO4NzYYUpicNd+Zts7VT rMzhuiihK1ZxKfhKwUQbgy3j4g== X-Received: by 2002:a05:600c:14d4:: with SMTP id i20mr17776614wmh.118.1587380588962; Mon, 20 Apr 2020 04:03:08 -0700 (PDT) Received: from localhost (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id m188sm859157wme.47.2020.04.20.04.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 04:03:08 -0700 (PDT) References: <20200419053815.15731-1-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 0/5] arm64: dts: meson: Simplify G12/SM1 Audio Configs In-reply-to: <20200419053815.15731-1-christianshewitt@gmail.com> Date: Mon, 20 Apr 2020 13:03:07 +0200 Message-ID: <1jk12apggk.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 Apr 2020 at 07:38, Christian Hewitt wrote: > This series creates two new dtsi with the HDMI and HDMI+S/PDIF audio configs > used in most G12/SM1 Android box devices and some SBC's and switches most dts > to use them. I have not touched the SEI510/610 which have extra hardware > in their dts, and the U200 which does not currently have audio support, but > will likely receive an 'all possible routings' master config when Jerome > sends his next set of changes (looking at his WIP branch) so I leave U200 > for him to address later. > > One advantaage of common configs is that distros that need to embed alsa > conf files as part of their userspace support now only need to include two > confs that will automatically support more boards and boxes as they are > added, instead of needing to track and add confs or card aliases for every > new device. > > Christian Hewitt (5): > arm64: dts: meson: create common hdmi/hdmi-spdif audio dtsi I'm really not a fan of this. Yes the configuration appear to be similar but there always the same. When they are, it is usually by lack of knowledge of the platform and its use cases. Using the same sound card model is particularily bad. > arm64: dts: meson: convert ugoos-am6 to common w400 dtsi > arm64: dts: meson: convert odroid-n2 to hdmi dtsi > arm64: dts: meson: convert khadas-vim3/vim3l to hdmi dtsi For example on the vim3, copying the sei610 was not the best choice possible. - SEI 610 prepares TDM B for 8 ch HDMI because TDM A is used for the internal speaker - VIM3 has the TDM B on the 40 pin header and TDM C on the M2 port. It would be better to use TDM A for HDMI is this case (patch will follow) This is just an example. Bottom, it designs are really copy/paste of the ref design, the dtsi should include all the platform, not just the sound. > arm64: dts: meson: convert x96max to hdmi dtsi > > .../amlogic/meson-g12-audio-hdmi-spdif.dtsi | 139 +++++ > .../dts/amlogic/meson-g12-audio-hdmi.dtsi | 96 ++++ > .../boot/dts/amlogic/meson-g12a-x96-max.dts | 131 +---- > .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 85 --- > .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 89 +-- > .../boot/dts/amlogic/meson-g12b-ugoos-am6.dts | 541 +----------------- > .../boot/dts/amlogic/meson-g12b-w400.dtsi | 423 ++++++++++++++ > .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 1 + > 8 files changed, 663 insertions(+), 842 deletions(-) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12-audio-hdmi-spdif.dtsi > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12-audio-hdmi.dtsi > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-w400.dtsi