Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2340911ybz; Sat, 18 Apr 2020 22:41:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5VOTqgZSWh4FHtz8JxgcaoKkEK6KXKwHFBEClGLTkk0lVhnp6hMUc+4kY46l4g69pjTMl X-Received: by 2002:a05:6402:2059:: with SMTP id bc25mr9544524edb.227.1587274886338; Sat, 18 Apr 2020 22:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587274886; cv=none; d=google.com; s=arc-20160816; b=X4fbfZS19WSWyRj2M7ayDfod9dvowX+T3jAiTukWHRzqGJ3GhCSHlNZvA+R1VJZeYx R0rBYlrJ+77rJYkmpPGttFkq27ePtUnEvjKYeWM+Js21x2/keP6v9d4tMFfZ3+PUnumY B7F2RWbX43UvlPcAIA0RR4g3oHS2DxfcO1g2scWnm2cKxtWNLqVp7It72iO1nT95z1JH BY5ragY0Qxq95UVeYmcaNmbd5+L+LWG/xwMWNR5NjFWCXej4mZ4G7/v9gKT5qpzUTvvN a6d3rtUot2m2676dNefUPStHaniTtVxCkyBlKtDF3wLaEWS1jWB+L8ZSkOr2SlKcAn5p pllA== 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=Ddvzpi4v1DdjM1yLeMifMRyxfGTNb5nDe0FeVHixmDk=; b=WDGf29MZ/qv8DPDFNRo18srTAcR03Z12g/WFdsEUKgyGaNADgsWUJsRNcQSJtNAJab Y3eiphH5UOc+o24Sz1xBs6nA7pFBBO1Tqe3TpaJx7HlSH1is2OGiBBPcfmseEi7qyx5Y AJrtKGkugZHlZl+QlJh2RbRn2v4O7m87nHL2TZgk5X3ujjUaZ3XuKofi6K6pc8jRkG7u sAwEUjpUMO1VNW88U39KZkdboTXtucFAlRzolbn7h5zzAsxUAjjIN6c3JkqgUJskdN/S BkahzS87QP+Ngytqwu8x0BwdPOQe1PfNornSZ+/Rw/jKizm6iLtijAyRd6jscgtnLeGw t21Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HP7fb0V1; 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 o18si13713018edr.30.2020.04.18.22.41.04; Sat, 18 Apr 2020 22:41: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=HP7fb0V1; 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 S1726157AbgDSFii (ORCPT + 99 others); Sun, 19 Apr 2020 01:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbgDSFif (ORCPT ); Sun, 19 Apr 2020 01:38:35 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46ADC061A0C; Sat, 18 Apr 2020 22:38:33 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id t11so5198537lfe.4; Sat, 18 Apr 2020 22:38:33 -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=Ddvzpi4v1DdjM1yLeMifMRyxfGTNb5nDe0FeVHixmDk=; b=HP7fb0V1bSnUs5kIp9q6xiNucjBoE8Im5ICE9u7dFzt9M4jyybrjjZ1JGqj8MnMDgQ ZRHWwD7+FSJ3lvatjsRqhtjLJU8h27O86ZHUvumPMY0ewcl8o3Sl831O0mF3Cr0ryHBO nhhpi0Q2TA8XMR05xSRk49IlG3pX+azwQG0qQlmIuXlbljOY9RUCpZ4RqVhH9uHludra FFIldxa27QjIVJnFHWUj5PPpFKgSFkKVBGeA8dj+K7aGFCuZ5w87UUjPkZWr+vxhkNZP T4lXEqDAs0ugbnh7w1dYj1LW/tdaK6AfePlnyl8rYerkvSSoa7m8+x9EbCPgpue9qcEi L1lw== 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=Ddvzpi4v1DdjM1yLeMifMRyxfGTNb5nDe0FeVHixmDk=; b=VWGtDOQTvbOwRa5CANqb8hNBIfwuj/Mc8fH/HZKSUexmxyr3DdpUM/QnPEXsqEpq5Z +bv/npJQKMYXRV85LXFuFbJz68z8wSPZtbZV8t6Yb8F/waPlTfZ7aDgrMExu2EhLR0+K ugMNtFYtQVzJjFKa/tvvSkqqdGR8RfeWAhEUqhpEbBRnKo6d9E1Mu/lT2kOvdF4zSpJs aV5RJyiRD6OtZ2W1UMcSQbf3n1hdTGeFHtVU7f74d/XvBvydRcxC64LA3URPHTratf/v grSrNLkD65XpXMW5Swz32vehCFM57ZENoH0xMjFnEfQ9oSKm6OC+a9BHIGytpUJ/SpMz Awyw== X-Gm-Message-State: AGi0PuawoatID0JC+WXLw9zBmHafGVkHiB/Mm+MkM56MHgQramDL2RC6 zKZSK/bgHloA3EvlDpLEviY= X-Received: by 2002:ac2:50ce:: with SMTP id h14mr6666282lfm.76.1587274712224; Sat, 18 Apr 2020 22:38:32 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id r23sm20416619ljh.34.2020.04.18.22.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 22:38:31 -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 4/5] arm64: dts: meson: convert khadas-vim3/vim3l to hdmi dtsi Date: Sun, 19 Apr 2020 05:38:14 +0000 Message-Id: <20200419053815.15731-5-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 Include meson-g12-audio-hdmi.dtsi in the common Khadas 3* dtsi. This simplifies the VIM3 dtsi and adds audio support to the VIM3L. This supercedes previous submissions: [1], [2], [3] for future kernels but [3] should still be applied as a fix to Linux 5.4. [1] https://patchwork.kernel.org/patch/11490837/ [2] https://patchwork.kernel.org/patch/11490889/ [3] https://patchwork.kernel.org/patch/11198535/ Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 85 ------------------- .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 1 + 2 files changed, 1 insertion(+), 85 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi index c33e85fbdaba..b8d69d99bc91 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi @@ -5,8 +5,6 @@ * Copyright (c) 2019 Christian Hewitt */ -#include - / { model = "Khadas VIM3"; @@ -47,69 +45,6 @@ regulator-boot-on; regulator-always-on; }; - - sound { - compatible = "amlogic,axg-sound-card"; - model = "G12B-KHADAS-VIM3"; - 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 { @@ -154,14 +89,6 @@ clock-latency = <50000>; }; -&frddr_b { - status = "okay"; -}; - -&frddr_c { - status = "okay"; -}; - &pwm_ab { pinctrl-0 = <&pwm_a_e_pins>; pinctrl-names = "default"; @@ -177,15 +104,3 @@ clock-names = "clkin1"; status = "okay"; }; - -&tdmif_b { - status = "okay"; -}; - -&tdmout_b { - status = "okay"; -}; - -&tohdmitx { - status = "okay"; -}; diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi index 094ecf2222bb..9c7841c627d0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi @@ -5,6 +5,7 @@ * Copyright (c) 2019 Christian Hewitt */ +#include "meson-g12-audio-hdmi.dtsi" #include #include -- 2.17.1