Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2881412pxb; Sun, 15 Nov 2020 22:25:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyczG9PPhcrfQYnS8zmvW7iiIwbuniEtL8fNIWSgqLXdyrGaamEcVqyw/LM+zh1J47GzIcI X-Received: by 2002:a17:906:f2cc:: with SMTP id gz12mr9105454ejb.181.1605507931339; Sun, 15 Nov 2020 22:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605507931; cv=none; d=google.com; s=arc-20160816; b=vqhiXrh+Zwdvmdhnnvdj+kdMn0enDK8qRxvmgLHPDl9Y9ppScilvcTpE0DxxtxFbiz jy76YSIpQhwMLVIpJzZjI8pC48//54uYRG7mTAtZHSYIyOVNdpzqu1E9MJ9Gr7fnWke0 ao6dOxLn7ppsq1yBE34nrO6+oYQwd6c5rQ10ZjRIA1FkBo92SuxP4xalkkW6OeZmJlJ3 pi3ON/91RBep7Rtid+Kf9WQFoNckMABUXVkRGZUesZ99Tyn1ekCJt2xw34XKcZsVwagh AbAplwe2JssSjFN3DzU2l+6jT42cfnDaKQBa2Q9ZJVr8XNc7EjHGPppvFFPs0C7D6dwx ddVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=1gIivsKhrs5B4E2eM/SXdSVH3UTq3Ox3b3pPitMs8zM=; b=dTTiVNVN0/0yhRxc189vkLe1ZfV71TXxywtSexyeuO6E547N3IaqhrIe8Rw+B2YkaE FZZtz9u2absivasbZxPrKFnapj/DG8TrnV0YUsHk2sZv7n18LD2IT+Cp/g0sbNSobjNA On/vAIJGd9MksG5XPgvuERatlWzbFFy8+vNAn+jcRVLElQRhJpeyEhIymUeLVGdSwn3n WEFGsp7FsLvv0cuhT2Japkgk9ABrBrJwzNHvnt5ogU0U6/Rt8oDRqq7TUNWyJzsNLzsD kpZ0o7m73nDJaZDra4Tl+JNJXCCqga3nlFAKHAXhz0UbzYtAo9GVQFPwmn5InebSUrPO OBCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mj00KA0a; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si4113336edf.583.2020.11.15.22.25.08; Sun, 15 Nov 2020 22:25:31 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Mj00KA0a; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727061AbgKPGUw (ORCPT + 99 others); Mon, 16 Nov 2020 01:20:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbgKPGUv (ORCPT ); Mon, 16 Nov 2020 01:20:51 -0500 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 519B1C0613CF; Sun, 15 Nov 2020 22:20:51 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id d12so17340551wrr.13; Sun, 15 Nov 2020 22:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1gIivsKhrs5B4E2eM/SXdSVH3UTq3Ox3b3pPitMs8zM=; b=Mj00KA0a7s4QpdkqkPSUoIVCe5VfTiL38H3A13Q1CwiP6l6gZBjrN3DfiIYzehSVeR f1mtaedQdInmz3m+Ia+ZCoWGtDYtbk7ilngUhVrgqE92Xo9a+eX2HYlfaYSc6lwesVvK zeY21EZy2lhcd9txYzzgKj5KI2sdIi6279Evj4GTs+iQfiCXGPaCxn5RNDjbXhoWaMXg HRO8OoYoJuUiX9S7DCZ1Bs7cEc5l8sMTNb0kNSLJnPnI0EUU+uEYb3Yf8zsRkMbmgw22 mYIb47ZhxzetB5ykPRGbaRsH+c58y4VeE9LAmvxOv8VLeOKXwKdtaf84STQRVJVqKOTM w+nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1gIivsKhrs5B4E2eM/SXdSVH3UTq3Ox3b3pPitMs8zM=; b=C8FnvG9KnyP/VpS+8Sfls2awxbsXM7k+VzYk7/CnKh6+nEzGSLmTJYB+yJjSZWkR4U uWMJiiwb1luh79vijrekpgHh4QTHaQueWcB2HuRCb1OoeepXqmnx8mGW8XTFIAFeKCRc YTeS5bLD8wmIuPHKezWBq9Qx4bBW/RnjXRuc5m0aEDAFINzrAgLuvUuLuKxu2vH81yMU fA3UqdGIl3nnZrUqEcbJlvY9lEAPWlPHgvymurNmAcgALSYY3IrFNa4IYLc8bdKWoqxI +jTGPb/mew2vQMKobFWqavahuhzn7K9Buj3OxCU05GDQ1ZGZs0PDN7069bOVzG58XOgR YrgQ== X-Gm-Message-State: AOAM533iUcIjTdlX9W9xEhrInhq3ity7uLTHfbM9Mfbi1nFrJO3KQCm8 /hwipEs4U5zIfYKPB2hbMHI= X-Received: by 2002:adf:8028:: with SMTP id 37mr17153751wrk.111.1605507650109; Sun, 15 Nov 2020 22:20:50 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id m3sm17065985wrv.6.2020.11.15.22.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2020 22:20:49 -0800 (PST) From: Christian Hewitt To: 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 Cc: Christian Hewitt Subject: [PATCH v3 7/7] arm64: dts: meson: add audio playback to wetek-play2 Date: Mon, 16 Nov 2020 06:20:31 +0000 Message-Id: <20201116062031.11233-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201116062031.11233-1-christianshewitt@gmail.com> References: <20201116062031.11233-1-christianshewitt@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxbb-wetek-play2.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts index 2ab8a3d10079..f2562c7de67c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts @@ -8,11 +8,19 @@ #include "meson-gxbb-wetek.dtsi" #include +#include / { compatible = "wetek,play2", "amlogic,meson-gxbb"; model = "WeTek Play 2"; + spdif_dit: audio-codec-0 { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + status = "okay"; + sound-name-prefix = "DIT"; + }; + leds { led-wifi { label = "wetek-play:wifi-status"; @@ -39,6 +47,59 @@ gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>; }; }; + + sound { + compatible = "amlogic,gx-sound-card"; + model = "GXBB-WETEK-PLAY2"; + 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"; }; &i2c_A { -- 2.17.1