Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5460C636D4 for ; Fri, 10 Feb 2023 15:36:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232789AbjBJPgM (ORCPT ); Fri, 10 Feb 2023 10:36:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232777AbjBJPgK (ORCPT ); Fri, 10 Feb 2023 10:36:10 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DC42C148 for ; Fri, 10 Feb 2023 07:36:08 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id hn2-20020a05600ca38200b003dc5cb96d46so6549063wmb.4 for ; Fri, 10 Feb 2023 07:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=B0iJ9ifSxWtyxJLdg8qNKxhkPjPgSJPt4W8qmCIqg0Q=; b=HfNMVsmPPDvMYvt5+tJkozBjMlVdYJItOX28z5S2ADhR2yM3++LVa0ez+38on/yuKa HqsAaYjJ2EtFYAa3Yh8caBZG+2cJfnlULiqsNBt9Lhp/pd2iY3s6pPSC5eD7wQFAkho2 x6yD+LC3ka9DW/O1HzcoxLSdpocpgptkr4VEmzxBpNFgWJOqE/RhpLWcrFC1Zikm1IGD 8FnPhEGX3RH4GRbiSoncBItI/i8fgJUjtMIJVKspNKu/oQH5fsF26ebzcXrERaJszpCE ha9nM6Y5qlVn7z9YIQRbaBUgKe0AWXnuuOJOsv1hECz3O9p9mlLgSLQlDCI+o5iIwPYV qf/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B0iJ9ifSxWtyxJLdg8qNKxhkPjPgSJPt4W8qmCIqg0Q=; b=5F8ntWtux6qvLjaVrRmdwm2BU8BVYvM1pQDz4lIKuYCrItx7YH9jjK3BuXE3wKzlxP zsWyDgIeCFI4EiMk/CEa5L9Nf1AK59Z16FlZdHE1xUjjVJ7cEVit5KaDBRojgRzhsKGt Sfy8vdxQbumvIYNZcGWMjD6Wus5YeshkyNwp9Tbm+Xy8KwqX85CS7tip5Uq1HjvVMS5N JsYjUlB/wPpIBdmtXABu4P1c71N3C7196NXObjS7QtZzSg7MZuNOJ1VgusGhwwG6xIM4 jMTK/XFDYWBQoXddGVCNXt4foNv6asoFcJufKBufK+kGnnO6Zs2Nev8jTUoAW50Gy6QV F6Qw== X-Gm-Message-State: AO0yUKXlcIyw/xEyrf9gQBc0y35MsxvPz8im5iBxKIT+WNC/iEi8ckkv ZkX57jo5sixPgO5zJCrQd6j9eA== X-Google-Smtp-Source: AK7set9f0qq7kzrpbHSL06E28VSOJyoJFskmV0IOe9AnouV/GnHZKvzhSNxuFumH/NZ3ZMOfYhmZVg== X-Received: by 2002:a05:600c:a68f:b0:3db:1f68:28f with SMTP id ip15-20020a05600ca68f00b003db1f68028fmr12508990wmb.24.1676043366716; Fri, 10 Feb 2023 07:36:06 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:5a65:5553:55cf:3027? ([2a01:e0a:982:cbb0:5a65:5553:55cf:3027]) by smtp.gmail.com with ESMTPSA id p1-20020a1c7401000000b003cfa622a18asm8806159wmc.3.2023.02.10.07.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Feb 2023 07:36:06 -0800 (PST) Message-ID: <09b018a6-ffd7-b929-4ce0-bac18ebcb2b1@linaro.org> Date: Fri, 10 Feb 2023 16:36:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 3/3] arm64: dts: meson: gxbb-kii-pro: add initial audio support Content-Language: en-US To: Christian Hewitt , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Ferass El Hafidi References: <20230210122817.1027765-1-christianshewitt@gmail.com> <20230210122817.1027765-4-christianshewitt@gmail.com> Organization: Linaro Developer Services In-Reply-To: <20230210122817.1027765-4-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2023 13:28, Christian Hewitt wrote: > Add initial support for HDMI and S/PDIF audio output. > > Signed-off-by: Christian Hewitt > Tested-by: Ferass El Hafidi > --- > .../boot/dts/amlogic/meson-gxbb-kii-pro.dts | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts > index 435ae2aa404e..b6ee76011d82 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts > @@ -9,11 +9,19 @@ > #include > #include > #include > +#include > > / { > compatible = "videostrong,kii-pro", "amlogic,meson-gxbb"; > model = "Videostrong KII Pro"; > > + spdif_dit: audio-codec-0 { > + #sound-dai-cells = <0>; > + compatible = "linux,spdif-dit"; > + status = "okay"; > + sound-name-prefix = "DIT"; > + }; > + > leds { > compatible = "gpio-leds"; > > @@ -35,6 +43,59 @@ button-reset { > gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; > }; > }; > + > + sound { > + compatible = "amlogic,gx-sound-card"; > + model = "KII-PRO"; > + 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"; Drop this 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"; > }; > > ðmac { With that change: Reviewed-by: Neil Armstrong