Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp178645ybh; Fri, 17 Jul 2020 23:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiMG+hTM93WiCpu6ciNZARxEzG8y32uJbxysCcfNgky4jb+xVtpqyJtcZQ0pOAFtkl5oZq X-Received: by 2002:a17:906:4a87:: with SMTP id x7mr9905740eju.44.1595055503310; Fri, 17 Jul 2020 23:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595055503; cv=none; d=google.com; s=arc-20160816; b=iL6W2R2gDviHTfGGBggHaPoRc8/seqFFG+k4SFkd2OfWsoAVuteBilIK+Afr3Giey3 As1Q2Lju00H5WbL5fNv4I+uaK/jbd1Y3Tsmggc86xh+YgKjcK+tKuqQlPMXsl1EF93+B ZjGPpg9FunsiauDDPzKWEpPn1n4cp/xAyw4WZrCPefc292Ef1ROJ5bhvCdffsxmmXZKt ocZtqVg++ZnRD9bdIqmRK+iOq6sAbmZS7/vlGW8JXOCCdJpqpz+xBFK0IFrjaDAfRTwJ REIlrur9ZfbJCSrQbwy27Chr8b83AM8+GEQXYJIatoT3NRjyHcY8TWtTSSBS8Y7KOqjS 2J1w== 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=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=AdKE9RRtx4EMb4RWUaDmKrmdcZiAxTAUDwGK2N+ufd6KjI6gkYAiIWDlchqsPgH6lK CDBMHb+r7oWLZTavYQR39u841av+y5uvkSf/jguwzwr0896sRxSEEMgQi5/0h0NB9Fuv F8idiREBgpRGoFn7AXM8bdQV9wIhzZ/SNnrLhKvJBl3lHXR33D/jKzMUQbe0UhzUKwqj 0Xa4hXZcLwrKLWYTw3qN0OMKV721zltU2jZerPGbojk3zFGHWp+fvCy54AnR0BFLOejr JIP7WcHA1E6DeIC4HQ4MNEEo98vWfcteh35FisUJvaZSz2O5wTS3KK0jFzYupNjI/g0l UYAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="oIZEdH/u"; 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 t24si6805350eds.158.2020.07.17.23.58.00; Fri, 17 Jul 2020 23:58:23 -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="oIZEdH/u"; 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 S1728977AbgGRG5v (ORCPT + 99 others); Sat, 18 Jul 2020 02:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728957AbgGRG5u (ORCPT ); Sat, 18 Jul 2020 02:57:50 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A9E2C0619D2; Fri, 17 Jul 2020 23:57:50 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id l2so20529968wmf.0; Fri, 17 Jul 2020 23:57:50 -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=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=oIZEdH/uh1TtykZuv0ukEQCuPEVWNo4glkJgnskWVrWqZbBySTf3C1iuxSIa/lPFl0 v7Jds4ptBemj8bLOAjXDMjvKEigG5o0B5q9GcYZzpCH/deoFab07POBkE1UPCK3yp1kr 0tSUJ7vtVYq20TSiWldnLyFEkKTdyiGjF6TFLrCNRqcfqYfGFqigTBFlg1GDqMHtmdeM EYKRLEv1ivQErEBvEOTFlM9L47yBSHMbCXyVnyOJVmB+wjfUqviKWTUcWm0X9xr4LM2V VMoqNU5caMrZV7xp0dEyfjpE7FmP9tNpDlojKJlqVIuHCFBldlmYLp3miy80l15tWeJ0 ldXg== 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=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=ifJX4Dm2o+zZd/Ap0jJiri/rHpE/NW1yXxqFQ+9qqJKN/smUKtVIoDXe/lGxKs+wOS +FpCmtAJ9S/kEgcFKPl0fJfXFMy4VG4oh7mg044Iq4hd3rogmkXOABKx6qcYSzgeyj+T 1/mPVfYibOPhFvBYGm3r13aeuD5gaPq0vt9bQp7j/59eGUlGpkF1crX/k5xu9a7kSqBE omprWg/vM2dhl3bwnfOVt9qG7Zp99S8LifmBJW1/2A0yuMZBf4XV8AlQy5JtsZPAEbc2 0w400eS+k9KQn1o0RXy4epG1WM69d6gRYfxxF3/zCBTVWv8AD8NFZpAFuckYTQ6gsN9f RKYQ== X-Gm-Message-State: AOAM532JYfu5rnGGFVgXNgr33pCJV2gNV8kLN6gCtXDXIiD6hgLLl9eJ 05vEhnrsjj1sW93eAyzvoAY= X-Received: by 2002:a1c:2e57:: with SMTP id u84mr13315589wmu.52.1595055468849; Fri, 17 Jul 2020 23:57:48 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id x5sm18749191wmg.2.2020.07.17.23.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 23:57:48 -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 02/12] arm64: dts: meson: add audio playback to khadas-vim2 Date: Sat, 18 Jul 2020 06:57:29 +0000 Message-Id: <20200718065739.7802-3-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 audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 44 +++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts index bff8ec2c1c70..d4734220443c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -7,9 +7,9 @@ /dts-v1/; -#include - #include "meson-gxm.dtsi" +#include +#include / { compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; @@ -145,6 +145,45 @@ clock-frequency = <32768>; pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ }; + + sound { + compatible = "amlogic,gx-sound-card"; + model = "GXM-KHADAS-VIM2"; + 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_I2S_ENCODER>; + dai-format = "i2s"; + mclk-fs = <256>; + + codec-0 { + sound-dai = <&aiu AIU_HDMI CTRL_I2S>; + }; + }; + + dai-link-2 { + sound-dai = <&aiu AIU_HDMI CTRL_OUT>; + + codec-0 { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&aiu { + status = "okay"; }; &cec_AO { @@ -154,7 +193,6 @@ hdmi-phandle = <&hdmi_tx>; }; - &cpu_cooling_maps { map0 { cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; -- 2.17.1