Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1727857ybg; Sat, 19 Oct 2019 01:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi1Eb5plXQslOYJvgGtDq6ZmpOEt14XgMvNHORfn79oELzcaxDM1NgVwWLFg0EybLcRXpO X-Received: by 2002:a17:906:1911:: with SMTP id a17mr12463401eje.14.1571472734227; Sat, 19 Oct 2019 01:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472734; cv=none; d=google.com; s=arc-20160816; b=EP0PP+LGLTYzSx9JOl+sDyOu5SF6J9PhQLxdnmkKVMZGgi3IFrd1eZ5/BZ1eOU6v8d kAcbe6NqLYx9lKqNDnBltAYkfOeJ3axLlOeDwqLZERr/Gnpynz6hvj0PUMtCtyC1b2j/ T0LskYL0/V9gN5qVfbZIXazmn3pXBnzhDNQ7SGZIefkxML4wpBYu4upBDKFRdVQt7Qs5 Az18bTf8BxgKo/e6On14N0WWkyqG0clrR/wpFzf8IatqfgQXKvz9Zr4dMPV0MGWmG7Kd OSaal469pftQX4PISwyfZRkowZputWpYt2PKuk0yypD93yjvdm+bOSycDd2hDH2h3Rmx ElAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=0eiHvls0Nus4fxRx6FaGv3bpIKyYEdO98HSCYTKm7Gw=; b=gE+xEA0YSgWLYxnZsSzFyEM1LXN+GASh+n5tRqBRgdmkBqXYyMYnQ0+iZw+GSuhUzK A5yntluXOSx0a0YBcYuVRZW34vKKDINFojuopAPsqXSGIoZY8y6cc4BGJyB2AA+wSWO0 HCZJKAhXWhFNJLkjk6W6rovh0pwsJE6E20Cn58Gqkgrx3JsrCAQvNcv+rk2EO6nCpR0W M+YF22D/cFyFoh90jXpFVU8W05MtGbooQIG8PWsXuLWqr6A89EcMdWlD6Tyh6Zswrws7 4QYa48ysQ2ZOX7cXJWvO1WikUl39Uw9USvFCphqmHJ7oDVqkX7ku7V/SvDAeb25M3uiA WJmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nsGuiiyc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id c10si5529114edc.419.2019.10.19.01.11.51; Sat, 19 Oct 2019 01:12:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nsGuiiyc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2633245AbfJRKGx (ORCPT + 99 others); Fri, 18 Oct 2019 06:06:53 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44521 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727249AbfJRKGx (ORCPT ); Fri, 18 Oct 2019 06:06:53 -0400 Received: by mail-pg1-f195.google.com with SMTP id e10so3085373pgd.11; Fri, 18 Oct 2019 03:06:51 -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; bh=0eiHvls0Nus4fxRx6FaGv3bpIKyYEdO98HSCYTKm7Gw=; b=nsGuiiycXx2WSdCzMwM7OGdczvN4PM5MqGuNK5KbBK+mP6CsDDjlfBKO8iOB7zaLQW jGoS/VU1QmMNOP59S1QiR2CTOneuCyCtsYTCKHNVT5sBT3J44P+GmLqQ3T1hLMbz2qHR CKSQquvIQQZTIYmJx1WEhCU3YJYbZwdsJUHSFRQX3/T5relvq932rSmQB4A1aBGZvWxk Ef2bVxtZC+5hgrsqvB53rI9BxWYsFCVTF3BHt98UG+ith0nm1zYvqDP29WwAvasRpRII GAQ3CsfXbpDqiodJLTpnL98azqjUuCnqUhjMGCJc8J3Aq6bnSgStIauiU9Uxh6tiQaqU f/CQ== 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; bh=0eiHvls0Nus4fxRx6FaGv3bpIKyYEdO98HSCYTKm7Gw=; b=aG4JH/qT0sIVGtCvkjFDJsE9KoLJrOsL3iNT3iu7ywj9qPWOIKZcFLOZOyzqwwpkoE 39YxQuz45x2UNfY1IQ0PGPMXGg8KznIc2SlO8C1/a+oiJCgOF+2B5KtCkUqlb14UOqUW ilzaY6vbgQtIVnOVkZwwusCgAognb+ofVKwBXmi+jUpLv2tMvf+biZ4ziCmbpCtSsy0y v1cT96hSXb+ivMreNxmyreOmM+OwsA2JspmjKAlChy24dR79vn+KKtv0kugolC4NzAXq gVExJWw6H7QweiVAklYc8D+fYj2z6cSbe06zO/jv3sENo+5GYB7XXjodpB6i3FIj7seH fhRw== X-Gm-Message-State: APjAAAWbNdSE2BdznyDYFEEPFKUm0/ncRypJLAdmgPt6RFjTfbGaB4YC tpPMXv3jRgDkCPyomEes+vg= X-Received: by 2002:aa7:9d89:: with SMTP id f9mr5918915pfq.25.1571393210682; Fri, 18 Oct 2019 03:06:50 -0700 (PDT) Received: from localhost.localdomain ([94.204.252.234]) by smtp.gmail.com with ESMTPSA id a11sm5361901pfo.165.2019.10.18.03.06.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Oct 2019 03:06:49 -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] arm64: dts: meson: khadas-vim3l: enable audio Date: Fri, 18 Oct 2019 14:05:52 +0400 Message-Id: <1571393152-3698-1-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add and enable the audio nodes on the VIM3L. This is based on the recent submission for the SEI610 device [1] and the existing VIM3 dts. [1] https://patchwork.kernel.org/patch/11180785/ Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 147 +++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts index dbbf29a..d07f0cf 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts @@ -8,6 +8,7 @@ #include "meson-sm1.dtsi" #include "meson-khadas-vim3.dtsi" +#include / { compatible = "khadas,vim3l", "amlogic,sm1"; @@ -31,6 +32,86 @@ regulator-boot-on; regulator-always-on; }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "SM1-KHADAS-VIM3L"; + audio-aux-devs = <&tdmout_a>, <&tdmout_b>, + <&tdmin_a>, <&tdmin_b>; + audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0", + "TDMOUT_A IN 1", "FRDDR_B OUT 0", + "TDMOUT_A IN 2", "FRDDR_C OUT 0", + "TDM_A Playback", "TDMOUT_A OUT", + "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + assigned-clocks = <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + assigned-clock-parents = <0>, <0>, <0>; + assigned-clock-rates = <294912000>, + <270950400>, + <393216000>; + status = "okay"; + + dai-link-0 { + sound-dai = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + dai-link-3 { + sound-dai = <&toddr_a>; + }; + + dai-link-4 { + sound-dai = <&toddr_b>; + }; + + dai-link-5 { + sound-dai = <&toddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-6 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-7 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; }; &cpu0 { @@ -61,6 +142,24 @@ clock-latency = <50000>; }; +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&pdm { + pinctrl-0 = <&pdm_din0_z_pins>, <&pdm_dclk_z_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &pwm_AO_cd { pinctrl-0 = <&pwm_ao_d_e_pins>; pinctrl-names = "default"; @@ -93,3 +192,51 @@ phy-names = "usb2-phy0", "usb2-phy1"; }; */ + +&tdmif_a { + pinctrl-0 = <&tdm_a_dout0_pins>, <&tdm_a_fs_pins>, <&tdm_a_sclk_pins>; + pinctrl-names = "default"; + status = "okay"; + + assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD0>, + <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD0>; + assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_A_SCLK>, + <&clkc_audio AUD_CLKID_MST_A_LRCLK>; + assigned-clock-rates = <0>, <0>; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmin_a { + status = "okay"; +}; + +&tdmin_b { + status = "okay"; +}; + +&tdmout_a { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&toddr_a { + status = "okay"; +}; + +&toddr_b { + status = "okay"; +}; + +&toddr_c { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; -- 2.7.4