Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3436660pxt; Tue, 10 Aug 2021 03:42:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzn4kfquhrOQjyBCgwZjtfPeLFto1yoLFV7RZa2bnOID4o5qVFHB5TA5c7XtQtOx4zcBe5 X-Received: by 2002:a17:906:5e59:: with SMTP id b25mr12894338eju.492.1628592154029; Tue, 10 Aug 2021 03:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628592154; cv=none; d=google.com; s=arc-20160816; b=Ej3ArtAZeKKCUhq/GtZm3lpaPEjSxs3Ozna6gw7Iad2CcbZgVpGdDW+Nkctm4quQLy SVI81wYNtRFQrpdcdRLEvVNSbuW3FMQRLaT0gfsgfLjpEYwtBnfFiABHLYhTyT19FM2C iQfeq+I8yDQfEn8gNt/ryMAjCfuWzmBqG7XY6jIFmfaImqVWKkeSZNLGu06KGwwrfxHg HLbDzHIRz0NVL2kUJi4lztmXwmKykwr1EzRQ6+3M35Ogen+GderPzuShHhQo6NBEsT4X QnpJ6/HZYwRmUf7orG7+wqUhe8MYm+cpU5zhBXS/fix7ZrfEH9xtsNZHzceKi/iZKEnr xRWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature; bh=6e9/sqGBr6SL7sXKS2HQPlB7IrU87392c7UU58nujaY=; b=QsWwVoQyuV+7dmvz2dbKLaOXu2X/HmnkrKn27iFBTaR5Xc12SLUs+gQyOk4wG5wijp XB2kj14z0wJW5tb72bBNhx0topAonk91E8MF2Cv9N5ujwEiFB8mpVE5mLduVZrQTYwkR WdXWF1hY/656L7pFKxSCPhEfdatP+UwQt+LYA/h9Nqf2vrVrY2MSfny82wDTsYYtN7Mn VuOQ0XhTHE3NDfsaN3PRU+8o3zm80+aOCP+N8Swzo8+d2E1FooGOqHxu5S8Bvk1Mz0ja 7ozgZTUVmX331lp8cqJk8JJFc3OO9gnN/thqvR1DiK5I2WOK8YiIq8r7iz+5JDBOfw3G AtPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ANEHnnto; 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 w11si21185899edd.252.2021.08.10.03.42.08; Tue, 10 Aug 2021 03:42:34 -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=ANEHnnto; 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 S237454AbhHJHtH (ORCPT + 99 others); Tue, 10 Aug 2021 03:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbhHJHtG (ORCPT ); Tue, 10 Aug 2021 03:49:06 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 027FDC061796 for ; Tue, 10 Aug 2021 00:48:44 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id b11so8832081wrx.6 for ; Tue, 10 Aug 2021 00:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6e9/sqGBr6SL7sXKS2HQPlB7IrU87392c7UU58nujaY=; b=ANEHnntoFmqrjDLA7KyToEVGX5mvYSe2fEmRiD9apuD1GX47EVhGU6giaX6KTvnLE6 YTIWHOcp5o1i0xlqg4K2+sQFkDqIt1M9UTI6t7oFv4A9uK6JUa+9vujGXxGVRudQkgtt ZhxT/JCCqVoUNksZ3jifJIFc+UextMVkmvzEw0a0PrlZsXqftTwQx6w5oOyf8kDdTHK9 4IfaxSIwJ7FX9ww2+pL3UyAXH+DEdiB7L8N+6IiRS5dS8V91AytAdBI9TNsE7opx0dyG ClxyA/nwDTNcOyx7XXofMcnx4OYfrwvC3bguA7FmJihIaS94/bCd6wo8orhn/a2tmKDv DSfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=6e9/sqGBr6SL7sXKS2HQPlB7IrU87392c7UU58nujaY=; b=XJZXaGGois7JYz1dYngEVDWeD8lARQRk9pziQzI8agpfRgKNH9OwvRDVHxFbOvlvnG p+PN+CGuwLwAfz+fN9ZUMKEaY7JSpfRKgGSdwvIsF3Nc9ppXuhQyQTih7QOegEzMGTyO egFeeoKNCXe+ajdVxnxJKR/TGnW3mDq42K7i48NZt5NXzVIwWUSbzARacS0DGzUp5NeM dK+wZ3BA26Ukw7H48TItvritO34S6rc4IM0xeqcPsAKgPTIAYyGfyG8KuuU+a6/80wRb sWKNkWjKyfkG7Mzr+8/3izXkqqfJjsm4IOykTNDbQ2PJjKB7V/bb9OYqjdH9ruRWXiQW VCYw== X-Gm-Message-State: AOAM5326JpSFjBFNjFDUtPL6J8hSFANxjIj8ZBFkKvExzti7Fgb50GtN LlC4DPjfQ91VCjxCHjHcqYtuxik6oM8vmoYH X-Received: by 2002:adf:ba0d:: with SMTP id o13mr28544928wrg.134.1628581722053; Tue, 10 Aug 2021 00:48:42 -0700 (PDT) Received: from ?IPv6:2001:861:44c0:66c0:b710:2b6e:27aa:f0a0? ([2001:861:44c0:66c0:b710:2b6e:27aa:f0a0]) by smtp.gmail.com with ESMTPSA id y21sm1857172wma.38.2021.08.10.00.48.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 00:48:41 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: meson: add audio playback to vega-s95 dtsi 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 References: <20210804140258.4666-1-christianshewitt@gmail.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Tue, 10 Aug 2021 09:48:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210804140258.4666-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/08/2021 16:02, Christian Hewitt wrote: > Add initial support limited to HDMI i2s and SPDIF (LPCM). > > Tested-by: Oleg Ivanov <150balbes@yandex.ru> > Signed-off-by: Christian Hewitt > --- > .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > index 9b0b81f191f1..66daf3af34c3 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi > @@ -4,6 +4,7 @@ > */ > > #include "meson-gxbb.dtsi" > +#include > > / { > compatible = "tronsmart,vega-s95", "amlogic,meson-gxbb"; > @@ -17,6 +18,13 @@ > stdout-path = "serial0:115200n8"; > }; > > + spdif_dit: audio-codec-0 { > + #sound-dai-cells = <0>; > + compatible = "linux,spdif-dit"; > + status = "okay"; > + sound-name-prefix = "DIT"; > + }; > + > leds { > compatible = "gpio-leds"; > > @@ -97,6 +105,59 @@ > clocks = <&wifi32k>; > clock-names = "ext_clock"; > }; > + > + sound { > + compatible = "amlogic,gx-sound-card"; > + model = "VEGA-S95"; > + assigned-clocks = <&clkc CLKID_MPLL0>, > + <&clkc CLKID_MPLL1>, > + <&clkc CLKID_MPLL2>; > + assigned-clock-parents = <0>, <0>, <0>; > + assigned-clock-rates = <294912000>, > + <270950400>, > + <393216000>; > + status = "okay"; > + > + dai-link-0 { > + sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; > + }; > + > + dai-link-1 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; > + }; > + > + dai-link-2 { > + sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; > + dai-format = "i2s"; > + mclk-fs = <256>; > + > + codec-0 { > + sound-dai = <&aiu AIU_HDMI CTRL_I2S>; > + }; > + }; > + > + dai-link-3 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; > + > + codec-0 { > + sound-dai = <&spdif_dit>; > + }; > + }; > + > + dai-link-4 { > + sound-dai = <&aiu AIU_HDMI CTRL_OUT>; > + > + codec-0 { > + sound-dai = <&hdmi_tx>; > + }; > + }; > + }; > +}; > + > +&aiu { > + status = "okay"; > + pinctrl-0 = <&spdif_out_y_pins>; > + pinctrl-names = "default"; > }; > > &cec_AO { > Reviewed-by: Neil Armstrong