Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp178741ybh; Fri, 17 Jul 2020 23:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwavC29oT85f5i1I4c7wFsZxehr1muIYEX87zOaSHDLvol68BK2aR1/lDyU5fvJALcEEqRG X-Received: by 2002:a05:6402:22d5:: with SMTP id dm21mr12522714edb.26.1595055527949; Fri, 17 Jul 2020 23:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595055527; cv=none; d=google.com; s=arc-20160816; b=zptF14c7oAR3q21qxjO7kMHG5FWlA6hRKV0f9Wu92ZS02B/8jJyvmmJetN8Gj/HXB8 PbpPQTdBz+WXyC5PCZYFTabtI3ZMfHJahmNxX0fD/FYbq19PrHBxnA1Pk28yPOwwlIM4 T3UgA59x2uVWPNIgMeI3OvdJiYgcWDydHegMPGZRZz/76uuqYdnvTrfKmXFmMkrH9hy8 /0yhhNtH4Se0ZrT5K/tuo8Ldv1aKERirazF1BadpJ1dqfZ2YjoVbPm3eIg9SK+ezPOfp SycUs4ijDKIXXiXz/L8XhMoRK/SeNyrIBfJn2UttJs5kgH+CId8DBfftEB71U1qn45Nn auiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3IIVS7MhfURH0UVnp76zcUfKlv8hfdezuu29h1qTO9Q=; b=i9wQQyL7PQzH/egeyriEQTAO4fWinsBVKOzDVCAE1RIXCfqwYRubgjD1+T40hQ7PFq YFv0sgzZsQeDZjXZbNyziMcRrFDaT2vkPjdDpkpkQT65bBNxs+Sg83N9OiIlr+xjriYe fkXZiGbDzPYugSaflcympcquVPQdrbtHOPsmO9ibiIryV+4ghZrn6Bv852FettEG2z0N oYqIFaOrGVM3OWcnN9p5EgswHx176ZL5ls40cJ7FpAgh7gtezqCi5LX03Icw73cs/3Tu Gbo7Ljiqqyo/vLJcYK4H/w/bvkwb0DNKEwm3xII1V4S0WkxDR/Z3ND6vK45bMpx2QsAd 3wgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neHTgbqf; 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 p7si6411786ejc.96.2020.07.17.23.58.25; Fri, 17 Jul 2020 23:58:47 -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=@gmail.com header.s=20161025 header.b=neHTgbqf; 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 S1729113AbgGRG6E (ORCPT + 99 others); Sat, 18 Jul 2020 02:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729072AbgGRG6B (ORCPT ); Sat, 18 Jul 2020 02:58:01 -0400 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 BE41BC0619D2; Fri, 17 Jul 2020 23:58:00 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z2so13280100wrp.2; Fri, 17 Jul 2020 23:58:00 -0700 (PDT) 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=3IIVS7MhfURH0UVnp76zcUfKlv8hfdezuu29h1qTO9Q=; b=neHTgbqfGpClsL0gQHB67RRXau6lnk7fbLn9xgBy3PbSToJl1m5N4Z3HP05r7yFwiv +FPXZgtCdnDtY/9lx51m4vVBJXvPhBj9W/BUsnDRCHVm1a3dTNtVViXysW2aL/uHorYp 6mJSJyfgpxfwbkRUVvnUPAzQDzrflpv73pXKg9R5Vtuiv6g42DRzxw5e0X1HmesTM+4O J988NtRNnW+ea1shLNC9e0xMmIR2aTPnNKT5pfZh8vKZ4cRVK0Yp0PNs1nL/ZcyIzbru aAiIwppV2XgbKPm71NusWFxxSPUFSYM5XBt/iEYcS2JHd5/AICUVeQVMGsn8LVFhhyAp 9t7A== 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=3IIVS7MhfURH0UVnp76zcUfKlv8hfdezuu29h1qTO9Q=; b=npS4+fs/RWCGydtK5Bp9BMmscFiotTRUA0Z5dN+hcfQQ69gNBa+CharhSieMCb9zmH Q9vnMB7zhtT0ijqIXAyh31k8rTDfOICXByxzZDCgkZ+JDZIYYnXh/SGaORBCHvEx2d8c Q6SCNyRSqx/1f9dgh5WGfh4NdbxdtZzSMW1tAoruV39nIs/UkRZa/VNFFaiR8MzstBJ8 PutV/pBioAwmb+GR3oprxYDSJ5dj6b3TfQpo39EN8oeVuT95et6r9yi71g6679gt32a7 UHsOPqm7W9Mtrui3i274Kmng3sXAJXo5+Sg/ly+QBIXgtCthHARcmUqNAM8o41Car3+9 ydpg== X-Gm-Message-State: AOAM531yUGwTVzt4fm2qiLfpH/l5iLWfeL/0t2M4MVzRbj1D5KX5nMGp bExn/h+9+0Oe6HfBlVMt8SY= X-Received: by 2002:a5d:6284:: with SMTP id k4mr643263wru.372.1595055479486; Fri, 17 Jul 2020 23:57:59 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id x5sm18749191wmg.2.2020.07.17.23.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 23:57:59 -0700 (PDT) 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 07/12] arm64: dts: meson: add audio playback to p200 Date: Sat, 18 Jul 2020 06:57:34 +0000 Message-Id: <20200718065739.7802-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200718065739.7802-1-christianshewitt@gmail.com> References: <20200718065739.7802-1-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org 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 --- .../boot/dts/amlogic/meson-gxbb-p200.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts index 3c93d1898b40..a16dac72600d 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts @@ -9,11 +9,19 @@ #include "meson-gxbb-p20x.dtsi" #include +#include / { compatible = "amlogic,p200", "amlogic,meson-gxbb"; model = "Amlogic Meson GXBB P200 Development Board"; + spdif_dit: audio-codec-0 { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + status = "okay"; + sound-name-prefix = "DIT"; + }; + avdd18_usb_adc: regulator-avdd18_usb_adc { compatible = "regulator-fixed"; regulator-name = "AVDD18_USB_ADC"; @@ -57,6 +65,59 @@ press-threshold-microvolt = <0>; /* 0% */ }; }; + + sound { + compatible = "amlogic,gx-sound-card"; + model = "GXBB-P200"; + 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"; }; ðmac { -- 2.17.1