Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp253506pxu; Wed, 2 Dec 2020 22:05:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUrEXN3EQoO8qbg/wo40bQfGftM8fJu86W/iFp36puQsssAAJ5MsjesA54xHEs6oa1RDwm X-Received: by 2002:a50:d884:: with SMTP id p4mr1421179edj.120.1606975500481; Wed, 02 Dec 2020 22:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606975500; cv=none; d=google.com; s=arc-20160816; b=z6aWTtkCr84udH40kp/c6vMWKTDA/klk3dFUrcXIhOC+E3Te5vJIw33Sqh9HdGYurk S7iIltXIoQDKZOffhcq9BzjPN+TH1JblRbl8PwSvjg8t04zy2R1uHY+U+MpQ4ELaCgII ZUyBpLazo230jM5GDER0rOT8qklnCgoUgrAe1BVzr4HoLwcwCCiRw8FCxORb6He8C9mt 3aRJNvvKI0ms+gcJCAepMb51jD1yHwvYwIO2S+PP2lwAJVg66lsVMnT0GzW8B5W+D87N haSjtWHfu7MfAyY31blQgrKTbZ9QqQwv9rIZEIK05/YNhBEaBuxldsjXr9wHFHVELa6A 1LSQ== 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=dxWzeifwzXJ8noPCs15h/EHSm9BBgorS6bs8r2VapUw=; b=rQSlSE4fcj9+AmdIMHuF1DUJ5vp/v9rbOrdaGQ/FXmzs/51+b/a4VnPTjqQqncChST 8zrOF+ZAn5fERjfG9I48H6cwACFIiK9+aROyT7gH/aMEzxDfcy9P9QX/DHQGT6XepCTi /zKg4N1bXrmDLvkA0zilwePOqjQZHsvgT40Tz3s5Yj1qe9PMTP21gU9ewv9nnwxAn409 FErtSO1KhoeBYiO5buZ+cdqxDz/chqoExujnM6BJl0dnQQfZBSOYeBaO9//3/ziUeKwW P5PqFS7UhRYmGFKP6tdSArTwqjXgiaXzoP0HtdpMkyRzlzZjhcHS8w4TZlaQEPjyxKsw 7ABQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nfH7OYWI; 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 a6si508004ejj.398.2020.12.02.22.04.38; Wed, 02 Dec 2020 22:05:00 -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=nfH7OYWI; 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 S1728678AbgLCGBO (ORCPT + 99 others); Thu, 3 Dec 2020 01:01:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgLCGBN (ORCPT ); Thu, 3 Dec 2020 01:01:13 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3D1C061A4F; Wed, 2 Dec 2020 22:00:33 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id g185so2547057wmf.3; Wed, 02 Dec 2020 22:00:33 -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=dxWzeifwzXJ8noPCs15h/EHSm9BBgorS6bs8r2VapUw=; b=nfH7OYWIw0J+z1tIfWzUQM45lxCokcLmQcieCVApZEyurRmlPJ7PsupvrSVnLrFZbJ ZT7cnyXmxAJ0IEhdJd5XU+Az23Y4WBFBfXx6vAKdUAgrfxTCThXIjAErYcbu9n5WExyL iyKWXqwYTYw6drECbFRtEfcKbkuHriRGXpg0C/YXglxG6sJrMm9ckfcVkzs4bh0CuxoX guNQTxCdsqmhtKJcw5bd2RYFN6mzWpzWYivSO/63AmG9XxKq0vd6S2LNgOHoAD2uFOfX qDt+Q2DoF2r2APwTYmWhybcjNKESaCyQV8R4tnCdFgh+hFnA6mas1k+LjaB2sWqLKZF+ MH8g== 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=dxWzeifwzXJ8noPCs15h/EHSm9BBgorS6bs8r2VapUw=; b=nL/OYcG1IaPi/vAGNAJpRbcKmaTJCBfp7hK8pATYeAuRMDce2ml5wpn1gKBmKx5qjW uFYW0YPtWT44iQTtamFCQDOH7BhZ47sbVJ0MkQ6rnC3F/pSnPgbS25mymJMtOIfE91x4 My3YHCgY8H31c/k62CCnPokVbs7X9UA7PROw6xVfawvWZo8VZSI2wTnKrLegMKqPGWN/ YIY+TblrvOL98E0QhrBV1jo9ABGUSTR6bSEuXEeB0by12M2t4wI0mhE6GOO04qPgAnwv y5Uhsk2+gg9zyo0eBFxe3SCkgogrpjMkFGmW0BG7nbHY1k7Ukjr4RuS9gyAUT5NeSh2G vh+Q== X-Gm-Message-State: AOAM530EfHQ/noVykMXyRaXlmP5ZAEvgm6EDN1zb1IRli1bcFiFa3eYW R3u+SZhPd9IVUxWg1LsYVgs= X-Received: by 2002:a1c:28c4:: with SMTP id o187mr1400052wmo.40.1606975232264; Wed, 02 Dec 2020 22:00:32 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i11sm218439wro.85.2020.12.02.22.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 22:00:31 -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 2/7] arm64: dts: meson: add audio playback to khadas-vim Date: Thu, 3 Dec 2020 06:00:18 +0000 Message-Id: <20201203060023.9454-3-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 audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt Acked-by: Jerome Brunet --- .../amlogic/meson-gxl-s905x-khadas-vim.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts index 638a5992d760..7aa08f74c49b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts @@ -8,6 +8,7 @@ #include #include "meson-gxl-s905x-p212.dtsi" +#include / { compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; @@ -63,6 +64,45 @@ }; }; }; + + sound { + compatible = "amlogic,gx-sound-card"; + model = "GXL-KHADAS-VIM1"; + 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 { -- 2.17.1