Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp732513ybh; Sat, 18 Jul 2020 19:49:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/7OO186fiod0lVtmBeqcl3HcdHSeaaWieX06tzfnj2bSxStnExfQwN6ZsapHJJY6abvEw X-Received: by 2002:a17:906:6b0c:: with SMTP id q12mr15871488ejr.525.1595126966804; Sat, 18 Jul 2020 19:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595126966; cv=none; d=google.com; s=arc-20160816; b=YwySPw5yde3IH65dN4U5Yr9soS+/GjVfu+RKc06fbwp8t1fQs9nxAWFChTjoQMzlAi ib2ifq47c6WpgSE+ZO7q02wxe1Y5Ow6C8JXv/US9JbnkeRnvurGcY9JSkUnY0h1IJFh2 MVcMZ4Gs3kJDe2p4EswmjxAjNGQz+njOhZjBv0ISrCJHiIw24+PpyU0vI6+NBqZUUiuw UKTjcdky87meYO5VAzmjr/+1bbpx7Zw6G/PWcscbjuRv6qzJAjIZdMNRvkFVOVwtAVtz UbxBB2hArtiqoVO8aatTSzbZyFFfBWTzi6IgSvH0w+T42Md2S+bxuPP0yX/gXdyktg1+ t63Q== 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=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=eFRDWVwOMZf8s7NNBfT+82KD7CvPf9eUNd0YnconYbxRbyseKgV3ToJpd3U1lgoBrC XXkgOJ63isfJHFstJNXqbb4Vg6UiG2P6C9B+B5Xo5fH7N1P7WMVFRMmtNUvmGYZo+yyo MIiKzKEMIjAxVronDCd3Stkig5+lW+uHvUwZo9vWDfoMjY+pic005vA/voavLndqY0Ug 0UBI9oEuoCXINc1YfToVCvxds4KVXmVSmQ/tZi5a9swznrmN9cCrybvhLTqS1B+PChIC 73Ahbu3Yuy0aTLBJlVg6j4veDCAH4O/AVWixiWOfdyg7mJv+r518KHPC5lRCBHRRYSWT OdvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LyELbglL; 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 c25si8314936ejd.178.2020.07.18.19.49.04; Sat, 18 Jul 2020 19:49:26 -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=LyELbglL; 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 S1726570AbgGSCp5 (ORCPT + 99 others); Sat, 18 Jul 2020 22:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbgGSCp5 (ORCPT ); Sat, 18 Jul 2020 22:45:57 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82D2C0619D2; Sat, 18 Jul 2020 19:45:56 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z15so14628773wrl.8; Sat, 18 Jul 2020 19:45:56 -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=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=LyELbglLP8QhhXUc6DClCstA2/Gl4Fw2P+jtTbqaZKiEZBK2V/sBjXTjXgqqmDw2S0 7iX9qAjlBro9G3o6MV3gWDPj2WEvXyoPPIlpHH0SKZl9cNvZpxqbtjM8ao9+lt77Cszy 2VbVwsIyhu96SgQaaIyzUCCXoo+VFdlztCNYJOTNgNppApub2UqTRARsJwavqz7ridkx 7T/OdlGwO6RZfRhJ1uQDrN/szSdbsTcANu5pp7JyVadRXgAyv7y4FhMpXWdUot7HgYWh /WMrZNce6YG6XRl++1HsnQrd6IDmvA5W+MyVYEFE+yJ1+1LgGD77aJCgMChSN3mJtzPK CDfg== 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=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=DiSVJUyO2W4jJ4G5QAn50b8pmrysO831yNP4IjOBdpnjm/3/7ZCIyWUKz+fRVGqRy6 Yhv7eiGbcpT32fUNVxzhxTsq9QOxxLdZYUIQRaXTjKylJG3E2doYQKj3iKtftMRoLTO0 jpH28Qcoty85ac0CNScwC9DSC/E4vwxuuf9b+2sJg5Y1RtBXgjIBV8Vk0ijCxmfzsdLX OfKVEvwf471DB3YrILPzqySm2d4p28STXB6C8WNDg0KNRzWRfTc/MEm4JJe3DpAblpnP SmCJOqfeucq/Z3jJNPSU6K+Fjz+HH0cF1yv/rGAnSTEX1zTUQjKXqKUWMz8aYq+vTTTk 55Lw== X-Gm-Message-State: AOAM531Gt0TWuVG0j2UPOFyR3oQwLA1Wdl+R71m5YOvvkoentKY9aR0j xwSPVetGCeG0wxkv0mkSyXQ= X-Received: by 2002:adf:ab46:: with SMTP id r6mr16648219wrc.260.1595126755054; Sat, 18 Jul 2020 19:45:55 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e5sm5176242wrc.37.2020.07.18.19.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 19:45:54 -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 1/3] arm64: dts: meson: add audio playback to odroid-c4 Date: Sun, 19 Jul 2020 02:45:46 +0000 Message-Id: <20200719024548.8940-2-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. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts index 00d90b30f8b4..cf5a98f0e47c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -8,6 +8,7 @@ #include "meson-sm1.dtsi" #include #include +#include / { compatible = "hardkernel,odroid-c4", "amlogic,sm1"; @@ -186,6 +187,69 @@ }; }; }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "SM1-ODROID-C4"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "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>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + 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-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; }; &cpu0 { @@ -237,6 +301,18 @@ amlogic,tx-delay-ns = <2>; }; +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + &gpio { gpio-line-names = /* GPIOZ */ @@ -381,6 +457,18 @@ vqmmc-supply = <&flash_1v8>; }; +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; -- 2.17.1