Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2340829ybz; Sat, 18 Apr 2020 22:41:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+oOKUkJggZ9X4PWcHwRmq6qGVgCiuXkoT46+zqrF+TfJMJPcchhVuoYXq55bvSRB1yyns X-Received: by 2002:a17:906:79d2:: with SMTP id m18mr8904884ejo.261.1587274878474; Sat, 18 Apr 2020 22:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587274878; cv=none; d=google.com; s=arc-20160816; b=SsILPjmAgzzsXMLMbCilnar6xOE1J43CdPU8DpBwXAc9LuhjUY7gVJbJGioy9w+d8V 3tiAw3WWGE1XT//iqa43YLCnpSOdcahtXvkvaaVdBlbRu9/K4nkOXEkEistf5UFvJWlt jqD0oD6Z6WWlwJeXYNO3MHnAC8rDCmeRdWD4+okm//KaLMB3scEkK9xrzWc6/psDN42T 8I+nG3ceRzvns1GMjItXNN3djHp4SO9nklqqlcu/QCvfK68JuVMxny6ox0DXFWgOVcKW XI7IbyejgfkJ3PE78E0suliwAkAcOyf9m7V2G64J75JklpQ1/N520ZdXB/KDroMgEiYz hfwg== 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=yYC0sRuA/TYJuw5oAwEPc/sM406ZLPi+JH8RytrM9Xo=; b=iXfA7cKHLWoA3csA8vpmD3AYoXgz95TaPAwvunV0LD44/g4xx44jFvIfCFVh/MTKDu bfpTZ0cETKmKmjUdM6VGztUCrPohNUe+vcuw3NhM+YMNldL5vmKSzAKG/m/wHia3laaQ DDfj4QV0mWC3xcGYpJjU9QfeKZdZGRh+/Rr7EkD//StstCXykE0OXNF8vy5/ieYYjpky DJQZhgiBFSZ3EiAHGCM+IjICxz0WtLdXkfU8DH8JOGQ3QSRtpTISjd4hXqHzTYe8GS6K nf4ArXIZu8QTL1bqV0rMuU53pQ830p7ss4ANA5Ez9EpQxSJo5SCmBYDgd/LOeTyDly8o KNQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NzhDfIBc; 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 d26si7969656ejc.216.2020.04.18.22.40.54; Sat, 18 Apr 2020 22:41:18 -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=NzhDfIBc; 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 S1726183AbgDSFik (ORCPT + 99 others); Sun, 19 Apr 2020 01:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgDSFig (ORCPT ); Sun, 19 Apr 2020 01:38:36 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57FA8C061A0F; Sat, 18 Apr 2020 22:38:36 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id x23so5218550lfq.1; Sat, 18 Apr 2020 22:38:36 -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=yYC0sRuA/TYJuw5oAwEPc/sM406ZLPi+JH8RytrM9Xo=; b=NzhDfIBcxQ9+BGr6tDprN7zGw5HKY4gX+mcL3G3z7uYLtCZtNHXP9yA348ho+833z1 MwScwF7kHs438Yxx5LMQFkFMaMqDMIHYCJdee1HhclVCseFjPvmnH7InR2iC/jEjMOVf /sL8xEkdFho9mrF86Dl6WVxT0u7EqRtwgzSfkQkZt4xkscKomcn4B07b2N7XdDKsX2YJ 20Ge+29mpe2DuFU5KchFkLsduui0eQ7upSinWBV3Y7tmvq+J0sgq32uDj8/RMxXxakmi xUp8ebHfDdp0hbBByacSwl2DWAdu5OZODSANMi1z9tquYKMTI3MZCUh0C+dmPC3Kg7ll JRbA== 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=yYC0sRuA/TYJuw5oAwEPc/sM406ZLPi+JH8RytrM9Xo=; b=h52c5dH4+c/O+uh0N0KUdynvTnfNVHqWuwV4lEStk9utI/6ByQr0TloXD5ffoOFByJ Jp60F9WzRih1Ruzr04aWLDgpYGOsuFO7HfH66fJL2CiPGBYpU+mZoFeH1waz8Y6gPy94 Kn7ih5k/aZA/4TqZnwSl6PhYW53t/WllAETMS7KQBy2sPgl8utyPSQl8x5Qw/d1+f0Rc Z2A3j1s43wTXATpznw06QIEf8C7vJw7OxigolhpmSlzZ4neBpeQ/tzeQpafBtC009tBE an+JDYejX9/DTIliglfUTFGWX80I9hOAoQtJki5JaWzZA/7yl3AUl31buReakyrfYcLU ZvMg== X-Gm-Message-State: AGi0PuZppKTESUt1jmvV8J8qm3vv6px8Wdjt4Z44dQr6XqEXgb5C2C9A LIfOoYOqXCGoAnffZldBNsrIRDJO X-Received: by 2002:a19:d3:: with SMTP id 202mr6530212lfa.24.1587274714755; Sat, 18 Apr 2020 22:38:34 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id r23sm20416619ljh.34.2020.04.18.22.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 22:38:34 -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 5/5] arm64: dts: meson: convert x96max to hdmi dtsi Date: Sun, 19 Apr 2020 05:38:15 +0000 Message-Id: <20200419053815.15731-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200419053815.15731-1-christianshewitt@gmail.com> References: <20200419053815.15731-1-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the X96-max dts by using meson-g12-audio-hdmi.dtsi Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 131 +----------------- 1 file changed, 1 insertion(+), 130 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts index 1b07c8c06eac..3ede72fc8f53 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts @@ -6,9 +6,9 @@ /dts-v1/; #include "meson-g12a.dtsi" +#include "meson-g12-audio-hdmi-spdif.dtsi" #include #include -#include / { compatible = "amediatech,x96-max", "amlogic,g12a"; @@ -19,13 +19,6 @@ ethernet0 = ðmac; }; - spdif_dit: audio-codec-1 { - #sound-dai-cells = <0>; - compatible = "linux,spdif-dit"; - status = "okay"; - sound-name-prefix = "DIT"; - }; - chosen { stdout-path = "serial0:115200n8"; }; @@ -148,86 +141,6 @@ regulator-always-on; }; - sound { - compatible = "amlogic,axg-sound-card"; - model = "G12A-X96-MAX"; - 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", - "SPDIFOUT IN 0", "FRDDR_A OUT 3", - "SPDIFOUT IN 1", "FRDDR_B OUT 3", - "SPDIFOUT IN 2", "FRDDR_C OUT 3"; - - 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>; - }; - }; - - /* spdif hdmi or toslink interface */ - dai-link-4 { - sound-dai = <&spdifout>; - - codec-0 { - sound-dai = <&spdif_dit>; - }; - - codec-1 { - sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>; - }; - }; - - /* spdif hdmi interface */ - dai-link-5 { - sound-dai = <&spdifout_b>; - - codec { - sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>; - }; - }; - - /* hdmi glue */ - dai-link-6 { - sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; - - codec { - sound-dai = <&hdmi_tx>; - }; - }; - }; - wifi32k: wifi32k { compatible = "pwm-clock"; #clock-cells = <0>; @@ -236,10 +149,6 @@ }; }; -&arb { - status = "okay"; -}; - &cec_AO { pinctrl-0 = <&cec_ao_a_h_pins>; pinctrl-names = "default"; @@ -254,10 +163,6 @@ hdmi-phandle = <&hdmi_tx>; }; -&clkc_audio { - status = "okay"; -}; - &cpu0 { cpu-supply = <&vddcpu>; operating-points-v2 = <&cpu_opp_table>; @@ -292,18 +197,6 @@ }; }; -&frddr_a { - status = "okay"; -}; - -&frddr_b { - status = "okay"; -}; - -&frddr_c { - status = "okay"; -}; - &hdmi_tx { status = "okay"; pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; @@ -457,25 +350,3 @@ vmmc-supply = <&vcc_3v3>; vqmmc-supply = <&flash_1v8>; }; - -&spdifout { - pinctrl-0 = <&spdif_out_h_pins>; - pinctrl-names = "default"; - status = "okay"; -}; - -&spdifout_b { - status = "okay"; -}; - -&tdmif_b { - status = "okay"; -}; - -&tdmout_b { - status = "okay"; -}; - -&tohdmitx { - status = "okay"; -}; -- 2.17.1