Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp731803ybh; Sat, 18 Jul 2020 19:47:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm4af2ndR0P6lM7SFXTLEXG/vFTsmV9znaCDzLJoTFPRYjRoX378sh6cDce4QOa0Se7MZt X-Received: by 2002:a50:fc88:: with SMTP id f8mr16060193edq.314.1595126847909; Sat, 18 Jul 2020 19:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595126847; cv=none; d=google.com; s=arc-20160816; b=yJszjwHhKkmAwm3SbI+uRGWDt1KcOFbCGQglcNS1slLDQlpdRzvd1nZs9cwFAT48He ag1Fz//OhJd6oeYpPxXP9Ql1RaSP6DDbtzkJi1SO7BVNp3slM40bq2jor7ZPIWjfsBNP lHzT6Fx84g2mbHDWjdI1vu7ekdwNB4RQ0/SPiAyJv717NHIHfWnxbWLdqoBfLcDpj/fi WLoCFrj34x7V269E/hHLomKzzIQMcfNPud++mquSXgoVL/2wqPTioapl9Ig1/BnTtKXQ Udgy/tggKBcJ2jY/IHr3r9NOj5hlNWx8VluDzDcgjkJQ2G8sGF/OwJYGxCODHlFtODWK 583w== 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=CkudD2ilgDupJSHURKMzbhEFs7b0yGbe2QVwB04KX/exDTdhILiyvBJjZEvGQNLUJo qEedu8dm8XfsbTiGw0LrTYN1MMlc2LGGyvd4MTPzZvugTpOiVsZzrkBlVGsZimNKy5/r ngSP4OUUYY/17MPLTin4/y0RlnMx0AypkOsalT//ZnrYljzTCuYsaLAjdQqWFnNOv3CT pdkr4AW4rPKdkWYbqUu89SsZt7A0VkdSP4xd8jE7m6U+TRK7YbeOzaBwslTwyZckL1+f 55vxrdZedZgM43Ogw7GGNRSDqEd0Cqe6so9SBJdnvWkFhR4kfoKOHBGqEE/Dzn2v2y/y 9FNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GB/p6r90"; 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 j5si7972227ejk.74.2020.07.18.19.47.05; Sat, 18 Jul 2020 19:47:27 -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="GB/p6r90"; 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 S1726611AbgGSCp7 (ORCPT + 99 others); Sat, 18 Jul 2020 22:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbgGSCp6 (ORCPT ); Sat, 18 Jul 2020 22:45:58 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2FCC0619D2; Sat, 18 Jul 2020 19:45:58 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z13so14647998wrw.5; Sat, 18 Jul 2020 19:45:58 -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=GB/p6r90sAJgHXEEV7QpiFlvwmXSlJw0OtYyzSJPZyId1OjKBkqkcuPl3AbyVGLoyW EXsP2Tk+VC/iF9bMG2rZUpYN/90XpHhDelJwE+sM4i+zGpnQwP9SqpiOZuphXNHoXOAP OQS5VY1Kvw6xCaeGBFWPzBN0v3cONA30DLx14y5qkQOuCTnMvTrYwv9F7mjm952WDLUX kfXCm+7xaIzHVJO8t3lI2vnn+PwkZGxCGSWAasQvvo8gtd7ToEY3OPvVSAT+zPPNUsXw O+yrRHVsAUKFBvz0ExVv56wEHfOiJ6KMyL51vkfonxXqC35hMdghD91eO8N0xB0/sE/S oYMw== 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=YhmX51d/5L7aMl+fP8Rk5a59suZUoVc+4PKkpOBv9ECpkBb3S35gOfRI3idiCDObI/ TLN+LB0ZtmU19aU51XcDiwHILbrag81HG1ghp3C1uYABzjmoQSmI/X9ssEOIzikEqMpM Gw2B+7ZVPLZGNXSbvPBSOh+qufR0njLKLrMRNRxHdIqWr5jMPMotRZokK31YFhJ+oFnL lhF7iAleJKgv6D3vxcVlkVlaf1R8WDz2NpaLPb7FaWhc0dfc5gxbccChStSY/AVSL9PU pjPUH3xvubs7Y56uriy36zRjvH843HDsOLedQEkZ7vaDVxGk+xOuq8HSjac663XpR+XX oIXw== X-Gm-Message-State: AOAM533Ui3yN1mZJO0wooaL05qHFoGH00rdcc1viyxZA7LCUBiaN5fqU iJbpvHHymQnr8hB1LEuYhPU= X-Received: by 2002:a5d:5647:: with SMTP id j7mr16036425wrw.242.1595126757149; Sat, 18 Jul 2020 19:45:57 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e5sm5176242wrc.37.2020.07.18.19.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 19:45:56 -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 v2 2/3] arm64: dts: meson: add audio playback to khadas-vim3l Date: Sun, 19 Jul 2020 02:45:47 +0000 Message-Id: <20200719024548.8940-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200719024548.8940-1-christianshewitt@gmail.com> References: <20200719024548.8940-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