Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2375862ybk; Sun, 17 May 2020 19:36:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7nQDCqRrIquSw5BinWrExxusf3ocSo/eO/W4LnHOUUViOPON7uLL9jC838GjdCUaoQto4 X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr11609228edt.166.1589769405481; Sun, 17 May 2020 19:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589769405; cv=none; d=google.com; s=arc-20160816; b=t86cOFmYWBhNAXiTosT0/XQPrwNKyhd2d2dLKaDLlPqO2Z6GG8X7mh9MpbWMD3YWQE yiNaAo2z8DT0Rn4EHf2dhQNqYWoR4Km24LfjIwYBdmhc6GBcorqgJknx2U35Dn2ogP8R nNpKAhcmJgBNwqj7nIRVEBdaJtBZBcN/6xfFEVlhqTwTrrTna0BbBb87bdkUrRXtNzmS BGqhnReDCdmShl8FWJB45N4GQKimsBtlZ3Vm2/otbdiwD027huvnLk+QG69bV6ZFK6cw EZnBt8KA/jBXqVCwJY9/Q49KU1SJc2Jnn/sDyD2gXC3IQX4OrDTLrAJ2YRI7vxBJGtc9 6Xrg== 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=owseaUgVdUp1iGU/MsdkGUhcwERmtg+0Eo8UVFbYquc=; b=JdKVYyYDignL5LGnlIIps8mVzlh7q/BW3cCcr994gJUDSh03Uss+eljxO2sHjPg1Sk up/enqY8oQrtClk+plk04+yjQ/httgVgMw2ljjK29Q4/qxhI4oTiAmohxgtUltDyr1fO CAozIbzYkwmvogQ8OasvfWm6l85xjDtUPU6vhaV9AuwkIXUcZI0LwEjlAK0SD/RxnhUi LIol0EFS4wsmtkddnxjqtNEAMioHmx92xGWSOo+Wh2yD+6jKtPXrEXkQX65xkmz9TI3M acHGgib8xnA/t99uuKT/e/aflRLL99lUAyPXdfeDAyCa0z6Qc7BydTWXITgOHdhA+kb3 xu+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K8cMGoHL; 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 w5si5959033ejq.420.2020.05.17.19.36.20; Sun, 17 May 2020 19:36:45 -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=K8cMGoHL; 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 S1727009AbgERCeX (ORCPT + 99 others); Sun, 17 May 2020 22:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbgERCeT (ORCPT ); Sun, 17 May 2020 22:34:19 -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 00095C061A0C; Sun, 17 May 2020 19:34:18 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id h26so6658568lfg.6; Sun, 17 May 2020 19:34:18 -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=owseaUgVdUp1iGU/MsdkGUhcwERmtg+0Eo8UVFbYquc=; b=K8cMGoHLGPLARM/xf/iQMQnxmR0KqEfQlR2C8gEcdd9CoEHsMANbT8//2DQpbdWHSz TrtkFpL9wlFfM6WRxH/Ko/bzfT4mbUPWF2L8lorBLweXv/+qzzOXo9Rgmn965cf7qTnY 9c43iq5d4BqU2KFdPV3Zb2GzHNL1czjt9pj9ws7EqVvLFX0l8gcxooDdhywmnKh3RXFE RVrtLTDD1poCjTH8W36si5cskA+Ju9UIj3vi6sHSh/vgrmRG/piSsVbdOUA4jPuHuDyj +dNPznwKL7GzdqF8wgJhLXpj/PimBs2edjD3iiThdyGbU1Xgv2wL6vmTyfuDf2eOr3Ax q4og== 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=owseaUgVdUp1iGU/MsdkGUhcwERmtg+0Eo8UVFbYquc=; b=WuFBR74HW3lFpgE3Q4IGf/+CCiH6luT2Q+xnbb5xQ8zgOgZQJU0I/rYGoVq/S5293G trk8reRa4N7L1OUNQF/yAqB0zaCYdbthTSCSxwFCw7lX87PugIhd6OY8apz1P7gQshEN KBmfUjDwcL3qxiCX12sYG3Jqj/8V3SQuk54qIeiSHQMV59gGPq1YXzDhyZPG61pTup3G 6RzcZti3RYgbVuWFrwFHtcEAUlMjU1w5BaTSexMmmJM9NE79afWJl1t1Wsqpy7O1QBVP od2n/Z1iLa4vGMuxWfxe+c/W5gNJrNpY6QrxnDe3Op6XSXf79IQjPt2aOvsN26n5Y0rL VhfA== X-Gm-Message-State: AOAM533qYhVvJmMjsHg94YElgpkPURIaBwtxow22pKA1f4+Aiv62LcvP y0uFwXvpDf/0RM7t/3JoOvs= X-Received: by 2002:a19:6914:: with SMTP id e20mr3440674lfc.27.1589769257453; Sun, 17 May 2020 19:34:17 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id l25sm5937498lfh.71.2020.05.17.19.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 19:34:16 -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 v3 3/5] arm64: dts: meson-g12b-gtking: add initial device-tree Date: Mon, 18 May 2020 02:34:02 +0000 Message-Id: <20200518023404.15166-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200518023404.15166-1-christianshewitt@gmail.com> References: <20200518023404.15166-1-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Shenzen AZW (Beelink) GT-King is based on the Amlogic W400 reference board with an S922X chip. - 4GB LPDDR4 RAM - 64GB eMMC storage - 10/100/1000 Base-T Ethernet - AP6356S Wireless (802.11 a/b/g/n/ac, BT 4.1) - HDMI 2.1 video - S/PDIF optical output - Analogue audio output - 1x USB 2.0 port - 2x USB 3.0 ports - IR receiver - 1x micro SD card slot Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-gtking.dts | 145 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 01e32415e252..66691090b30c 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12a-sei510.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12a-tanix-tx5max.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12a-u200.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12a-x96-max.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-g12b-gtking.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-a311d-khadas-vim3.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts new file mode 100644 index 000000000000..eeb7bc5539ef --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre, SAS + * Author: Neil Armstrong + * Copyright (c) 2019 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-g12b-w400.dtsi" +#include + +/ { + compatible = "azw,gtking", "amlogic,g12b"; + model = "Beelink GT-King"; + + spdif_dit: audio-codec-1 { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + status = "okay"; + sound-name-prefix = "DIT"; + }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "G12B-GTKING"; + 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>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&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