Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp254687pxu; Wed, 2 Dec 2020 22:07:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJygaZF6Ugni5+j0sLkRmn+hgNXQfQJzh+LTCZDBvd26VWmeioRs336j/LDwbRAQQtVlvGvx X-Received: by 2002:a17:906:c097:: with SMTP id f23mr1218897ejz.136.1606975639878; Wed, 02 Dec 2020 22:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606975639; cv=none; d=google.com; s=arc-20160816; b=Af3yPFXkmOao0xvkIgUJcNC1igzzqErtxWY/HevQa+i2ndv/Cngz/YRPFkMEQekBan QJK4JpMgOwqkEzr0nLFCxbrL8otqZvUxwRKu7QHoiFXwbV71+y3Q51oVFxHy6+Blzv2d j/EuvYT0n27yaNyOZQwAI2vYlpHhEMn5Qp/TNHcvjEHC5EYB8qvUZIYRuxgDdSYB/7+D SGa7TrrlXD/KWRgZBrpBS1/q+yKT28rD06b3JLgZRYos6ezJbZo8bCLtcXa//A8gljuw nMcP81b3KPYd4rEd0gLpf0wAf2YmmNjPHeQWnLB+OVggNZhH2f93lAAMUGli6dWeJJbX Unqg== 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=0Q2LsdTBYpLDoB7Cj1Qbdhjz0kWaNgxAFVnGw/sfz1U=; b=UgVguESo2UkxPv4sdX5bg8u4R4mtCi+x9yqhmnJSmsEwsVYHQzLG4ajKgAka5AzbQy ZrSA3cFlBCTz4jeqoHPcPVpFPyuJ9nRiyhZE3mLZIQz7CIvkWatNwecuSTrkqbO6ik0I d3z/hLLV7fQRHJ9J8JRYiQuvomGmFaZMr9pUWK2R0Jfhi3M0FfmCwjXMRWc0JGndocnx EHu6qnZpp3O+nzydGaPsgwVGl21C6iJmMyBd7eaTxkMxaIarWcc45gdTsgoIOmWZqyyB h4lRSkFSIyDTe82nHfPVuSHuzwGs6eD98hjyLwDOFb2w1gGNrfGGWjy4D9hr8dos/fDy S1AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QtXO3tiA; 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 i8si565649ejj.700.2020.12.02.22.06.55; Wed, 02 Dec 2020 22:07:19 -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=QtXO3tiA; 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 S1729428AbgLCGBz (ORCPT + 99 others); Thu, 3 Dec 2020 01:01:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727868AbgLCGBy (ORCPT ); Thu, 3 Dec 2020 01:01:54 -0500 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 745E2C061A55; Wed, 2 Dec 2020 22:00:44 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id g25so1906474wmh.1; Wed, 02 Dec 2020 22:00:44 -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=0Q2LsdTBYpLDoB7Cj1Qbdhjz0kWaNgxAFVnGw/sfz1U=; b=QtXO3tiAI6/rE9SWRU/ZhO0OVFw6FzMAkpmBXmsCns8KNURciKJ4bYtJsEsqUC3Cro Wd1LBED6m2sT9lJZrxnfElSD7CU7LbQqc7TPP67G8I0YoaYVR9XqX230+H4vKuCkOyfJ Mbjtf8+A61w845BLTaDvW7xuvLbQxcGu3effd8HSNUxw7IImVDN+CQcb7xAEKiVZ7rnO 6REB/gdTXZgN/OEwLM5bW/2wHzRFx7Qrcu98TPguIr+PkrNfEWKlHkHcwy+wH2EWrg5C Fc0+k5/TjK/Uyhlne6zKpm820Qk1B/Hl+mrtydx+DPNzV51C+RmJTkN6U0H/wAeJfR5d 5dRw== 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=0Q2LsdTBYpLDoB7Cj1Qbdhjz0kWaNgxAFVnGw/sfz1U=; b=T+yASL/BUTNu4+MH39NRblKT/3mtKEtV/FNEsMdtTcD1bGHXuQCqEoZUvu42etsanw AJAtiqB547xwbxHR8wmXJvuGS0D6L9mshHz3nFOCO7zQgQquw2KPJAi+JzPlkPnuy3s1 8mDmUZpcxHyn+a0VxfbzJZj1s1uD8u1VO5Fa1dsZZIlq4ZQfMsWROAP1qlizVnhMK2U2 zDO4Pmg16OsmiJMEg/cl4SCo1avUD4jI/wV/MDwdwO0xFQ1h0jblaYlSmkAfALbTRIIe 6BNJ5pL6f9qM24MQ8939OTK8JSgH2qd88+IxvU7DyO2xRBFDaF4pu0jy+/IGGZGDKy1t Ta5A== X-Gm-Message-State: AOAM533QQa6vJRL3Wre8S0CLJm9oJWQTjvUgEK8L8lee2TVPXqHAT2Tr 7T0dBRB9NKW70uD7l6A66Ro= X-Received: by 2002:a7b:ca4c:: with SMTP id m12mr1367107wml.11.1606975243190; Wed, 02 Dec 2020 22:00:43 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i11sm218439wro.85.2020.12.02.22.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 22:00:42 -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 v4 7/7] arm64: dts: meson: add audio playback to wetek-play2 Date: Thu, 3 Dec 2020 06:00:23 +0000 Message-Id: <20201203060023.9454-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201203060023.9454-1-christianshewitt@gmail.com> References: <20201203060023.9454-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 Acked-by: Jerome Brunet --- .../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