Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp191614ybh; Sat, 18 Jul 2020 00:29:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ9XgCOhkc8xXa72i7yOclfaM8igU9M/nJ+bx1m+vSGVuEBYRplLTR7aL0JytJc0TffKCh X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr12247731edb.60.1595057353365; Sat, 18 Jul 2020 00:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595057353; cv=none; d=google.com; s=arc-20160816; b=07fPWKcMenpad0Zx77ADJY4umu5L5HZMkcvNfCc2NbHWtRbi1CNJAWRwus9utWcbf1 UDmi2p88ydVQPFOeM05r2WEeLfJK43nAXd06Yi5RFUYSWNRk5jXmihJsJD9UbSofjUay GHQWEdWa/P9RQ4RaMXrP9d7B7lrK2tVZ04XK72TC7hvkJCnVcfYQk7A6gAnLtKhMAkvO hG50fqfq4gm1ZF8dLPm4sKADIqG6+auJsgcDQKQdi0/bDJcG7WJFY9KVyt/Pf0HsyP5o 3IUki6BvVRG4cXstFisp6SjJuuHbLC+7qX+bBFmKr3nZOab2Pt4VPQXH74m2aLwYOx5X 8Qcw== 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=keAVpGfsQcEDqnbHUMyN/ynnpJsp1LvUpjA6RoHC1Co=; b=h7FpcuNjJdfCUmYvzd2/3ugnrBL83hnmq3yN21JlBNKeh/zI6UMSQ8sa4HBazn8h4K x9sHhKM6Z2AwauUpKBAeqRCzP8P69kG8pJ/UquU2lR4ZlvnJOKx6Q2PBuwZom4KJm5qG taQ8oWMXtDrCNvI7z5QYEnnO2s83B5pTSwgC91tSOIAPJW0R4SHvd4hKmg+/wBOo6YmQ ch5ZPx3+rCqeDXN+UpH4TXP6jOGY0NUPvE3m9OFK0hbQ2cjpl0SC5yA2XUG6jKjaYWkP YBb/hCbL/CBMt3cycoObe0vLsgIytgdiVD6kbIyzODJ3O+risfelVZ54UhYZqG3YQRlK xKtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Ke+wmC2/"; 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 n6si6653832edy.324.2020.07.18.00.28.50; Sat, 18 Jul 2020 00:29:13 -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="Ke+wmC2/"; 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 S1729133AbgGRHZr (ORCPT + 99 others); Sat, 18 Jul 2020 03:25:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729089AbgGRHZm (ORCPT ); Sat, 18 Jul 2020 03:25:42 -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 3887BC0619D2; Sat, 18 Jul 2020 00:25:42 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id g75so17766825wme.5; Sat, 18 Jul 2020 00:25:42 -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=keAVpGfsQcEDqnbHUMyN/ynnpJsp1LvUpjA6RoHC1Co=; b=Ke+wmC2/T6ELScDbLkHP0eIT7W6dGZGXFAgyiQ/tHK+3jjRYLPqVh9oVmc1nhbz1to t2Gt2E6s2AHP/wcmbsvvCuinTIs2EzumrzEYS7Gb+OTqR8sWS7BTh99PJ79znsf2f129 TsmhbcN+xnGHHJOrW6POeg3eR1xrYLIrGwg737I0ssgn2aPxXvJjg8+t6rwvxOJA+uRE eCbsaJ/ZvqCyt7YULkfoZFfKJwFGQuTmnL7lN+/3QqS67IPYXl+62/HX9GeOw9reGJ5i TbsA2uAEqBgKKsNFEGgKkgYAFIalYrwLXZgcGtFwFqzg5ZNt+wjkpfIGJNq29/x0SPho YA9A== 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=keAVpGfsQcEDqnbHUMyN/ynnpJsp1LvUpjA6RoHC1Co=; b=Wo+AUZEbIOVlk/2rGDFaosQGdQc4mgjaX5gipojGHksmhqtyQvlkNhPvKv16QYNKKT qZau0rKJfZrmEtVW6QJFfDXuPlC7GnO7dCA7b+Xv7xzcHxbLX5a8dCe8GMsHW4HesYp5 z7jlc2sIgEl/XOgi13dp7Qc9E2XgfBm+QOsXZZD46bjLYWnBOZQe81u9hgZcT+gYzmMB WELTlfmTfGqEgn1iu0uDAZdUs83HrxEwpBNPQKYBg9gwj34cYSawAYiDhdBebb0ivrUG ghbiwtf3MkCyx3/OEUEnG6AMolLFkg98aq1T0r3pJorAkP3vGWX9AI9+zM9zm1tr3wG0 oLwg== X-Gm-Message-State: AOAM533I/TXHXrt7RIkxY2Lbp9QWeFtux8o6sI/YtbuFcLaMOmEDc5Oq dGISG0PVpjx5syI7mmDd0e0= X-Received: by 2002:a1c:4b09:: with SMTP id y9mr13033409wma.46.1595057140962; Sat, 18 Jul 2020 00:25:40 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id c7sm19550192wrq.58.2020.07.18.00.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 00:25:40 -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 2/2] arm64: dts: meson: add audio playback to khadas-vim3l Date: Sat, 18 Jul 2020 07:25:32 +0000 Message-Id: <20200718072532.8427-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200718072532.8427-1-christianshewitt@gmail.com> References: <20200718072532.8427-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, copying the config from the existing VIM3 device-tree. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-sm1-khadas-vim3l.dts | 88 +++++++++++++++++++ 1 file changed, 88 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 dbbf29a0dbf6..b104967dbef1 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,69 @@ regulator-boot-on; regulator-always-on; }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "SM1-KHADAS-VIM3L"; + audio-aux-devs = <&tdmout_a>; + 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"; + + 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>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_a>; + 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_A>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; }; &cpu0 { @@ -61,6 +125,18 @@ clock-latency = <50000>; }; +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + &pwm_AO_cd { pinctrl-0 = <&pwm_ao_d_e_pins>; pinctrl-names = "default"; @@ -93,3 +169,15 @@ phy-names = "usb2-phy0", "usb2-phy1"; }; */ + +&tdmif_a { + status = "okay"; +}; + +&tdmout_a { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; -- 2.17.1