Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp168317ybk; Tue, 19 May 2020 18:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW4K6wB12XsucswTwBmxPfv3ZkASwNdmZ8cUoCtaEGI+T3eXSID3o3I0jkVRUtvAuwrrIR X-Received: by 2002:a17:906:2343:: with SMTP id m3mr1758055eja.301.1589939150988; Tue, 19 May 2020 18:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589939150; cv=none; d=google.com; s=arc-20160816; b=v8hZrlyDPiwnJiE+B8WA6WUcLugzNObwIXnOAqRMAyzS67RDlPYDWjD+EITEBdxgrr W1/ykQ1HRE56VZ4t4o4WUNOS9bs2Qezgd6E4or2dLgXDl7dAwwIZQMFxWgW5CW8pZBda aflP9PpluWojUZlyMVOE+0eblGUaDAeEdsxSO8JDyeCZb6Usw3PBmlR0D1itp53Vspxi ajU7tTdTvj3CtBl2QB8fSj/nMwkQk4r20OcGUB5uGFNKjOcJl1JBmAKvhacyofiBZbry wKIe5FlJ4PVFNGKkL9Sc+xtBlRi4SfN4viSRQL8SEEbNUqy7sXnFm+sI56gUw2PB+mCI QcQw== 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=tlIaO+V455uUA3ker9XdrHVC10aTSZSWaxuAu4tCmC0=; b=cXdXevqMtekhkSXvdDI7dyyKbMWs0Nzr2aHCFsollGSz/9iPrkBi84OqDPcGlS8U/Y IUMO3bQakR2E3eutmuxzSljWvXUyqlaFD5k7Sc4FBJsWL7/nl1/Jclcx08a0Isj8JAHb a+GD+fl1EIl++DqvLgc7OcKgSf6nP22vVN3RoWi7YTjUBh41ZBjBBL7u/+fGMy4rQGXq HGIpnlzp9QUxQBF1hyK/XuUBsmsipT2sR+4BeQvontjIe6Kyk6Ka/EOflhU5cykdgixX DHoj+OVybWQzeM4+kT7GNkpG6g69i6LxUYHE9LinPzUIrXPRG+2JQ0U6ZWKfGN6dtoWB zWyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VekBt0Xh; 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 x25si663128edl.429.2020.05.19.18.45.28; Tue, 19 May 2020 18:45:50 -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=VekBt0Xh; 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 S1728504AbgETBnq (ORCPT + 99 others); Tue, 19 May 2020 21:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbgETBnm (ORCPT ); Tue, 19 May 2020 21:43:42 -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 0D018C061A0E; Tue, 19 May 2020 18:43:42 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j5so1484591wrq.2; Tue, 19 May 2020 18:43:41 -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=tlIaO+V455uUA3ker9XdrHVC10aTSZSWaxuAu4tCmC0=; b=VekBt0Xhmco50S3jB/jSSWhaMkq255u7afVBG3GbSGRHTxswmrBQbK1apU/JXKkXrx FzIvGHN+nYa6a4eWmDdWI8Pgihzulq2/32WUfVJrczTvZo5gYFw27r2LLC0RQIPQaHyJ h/yqapZl7EdC+XD/sC1HtpPmiItwkfD38b3YnAUiwnxzvw3u08JuxA1RCCPmCsNOP8su f6uaZfGwrKYrUQEOnZISvg1f/P+1BAuU47I9DR+//cg+ziY7KrBV/9BsXIjEJsvnIC/s HmFuCthCJSlnDTNscfgu0HaBZl4UzKtiX9fws3xKvjL6O6/lBlX+N/XWS1OVaE4a73Qo sBUg== 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=tlIaO+V455uUA3ker9XdrHVC10aTSZSWaxuAu4tCmC0=; b=blPiYBsYC7Rl8g5fG/xPpUfrtt3UvCUrj6QaMDivT0EG42BKwv7FXcrwxz5IFNhS2D NIl0T8iRh0gHDuXzf9FQtRWHBHiNaK72swHFXVR+SDUmxiT/A3syysTA03KK9lkavKzS yz0b2Q4dxtPz6NS929Xbw9Yi3hWjh2dEuCVx+wjCtD5KQYW+72c1QVVXBz6ZU8tQtPJa ET3uK9/Qhyb53jm5Ap7BcHVsTfuYypTgGTIDWg3imV2663luXBvbuJ1xoTLeynVOBREp T0+57DKIJ/aO6uCe3wrB/lO5NMFMMAaKDyROCWasOLdluGZGpAUh+veO5aolEmq3L0/F MgfA== X-Gm-Message-State: AOAM532CJuRJj9Eu1QxJuo9EsqiX84ZbaMZih3Cm3VBPLIJuJzoMCsMo ++/etAdzhwh0Sbt/3SkszjrqHsS4 X-Received: by 2002:a5d:4d89:: with SMTP id b9mr1845689wru.210.1589939020695; Tue, 19 May 2020 18:43:40 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id z10sm1493351wmi.2.2020.05.19.18.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 18:43:40 -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 v4 3/5] arm64: dts: meson-g12b-gtking: add initial device-tree Date: Wed, 20 May 2020 01:43:27 +0000 Message-Id: <20200520014329.12469-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200520014329.12469-1-christianshewitt@gmail.com> References: <20200520014329.12469-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 af883e0bfb9c..8c9e9dfa5da3 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -3,6 +3,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-axg-s400.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12a-sei510.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