Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp169343ybk; Tue, 19 May 2020 18:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb8lUY3j8lmHzaagH7CHkMYe3QjKyQBebCfByt9USuctEAodMNDrub7Bv9LFslaB9ORL1s X-Received: by 2002:a17:906:a18a:: with SMTP id s10mr1813406ejy.484.1589939283570; Tue, 19 May 2020 18:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589939283; cv=none; d=google.com; s=arc-20160816; b=C2MGWfR3hC1a8cPE5Bujwh1z5TyIkDZmphCAHlawGTC33uy5vhP3PBR/qzzqAWNi/Z rnC9K9wHjOM3aZ78RMbQqImYkSZD18hlOM4SqR/QNMWDYZ8q8xFL11qDx5KNh/l7WNt/ oX8+iewjdt4wXxDinD8RsMXMeBc4V6Nf1iuZaSEduLM3vVEo04HK1UasCbVZ2+yclcml MBUQFIJ+uMk5sPWnaxp1lK/YpkuoIMPqI/BYnp/IYVU6+uhRXKOlAAtGT64cNwv8nlFr mlBRzOZcc7tls19KVBTilxDAu0Dsg6cQeybEraLTUromQpEZwIbpJQl5vNwg7lTCBUkK wPLg== 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=n+S74z9qQY+CaiuRLf+vHkg+q8IHeQbzLUk3GxZr2BM=; b=W3CB0qx7xfKuWxu5RD//SCNfLD3PGLp+yxWfpInWYYjdTe02lHmmjchvyhbpprPTWO 8tSNWD0shBp6WKTouiaOMWUCJliTnM0mGCzW7tH3V7Ols6vl2QFPqpE9//eMUGfj+mpH zKa7p615BLTl9VLTdrs2tNq7Q57nOyysBTvX7uvaiTWijpwuvNY5gkAcSsyYJPObaolk lfaC0ke/TXTa6SSijmgw9+J+4YET2xIMXYpanidYs4QLTsiJ/L946BcJHoWwVTAFBPsZ e/pAGVr+9VV2ANiQ/Ef6NCpVjgs2yTfczacfqa3vSI/rYzy+J2/JSnLNLVH1PryBSrkM 9j8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qp7L6Si3; 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 x25si649727edl.429.2020.05.19.18.47.41; Tue, 19 May 2020 18:48:03 -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=Qp7L6Si3; 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 S1728546AbgETBnt (ORCPT + 99 others); Tue, 19 May 2020 21:43:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728509AbgETBnq (ORCPT ); Tue, 19 May 2020 21:43:46 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CBC9C061A0E; Tue, 19 May 2020 18:43:46 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id k13so1469636wrx.3; Tue, 19 May 2020 18:43:46 -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=n+S74z9qQY+CaiuRLf+vHkg+q8IHeQbzLUk3GxZr2BM=; b=Qp7L6Si3snWBCiWaGE5dlCEs3hL4vi4uMh/VhE9IQCOUTLgsHwhlBonzgCMnusCcnL t6SCa48gtJJkYfGGuC5PdcAeBZB4sUno+Uaejs8zJxHNSnLnSOA9WUwQMZvE8VvcLuGt D446m8ho3hes/5OExzmPLzWtZB0z8WvWclKd6TZABlbtaWRteWHolXR8a7a35x1kf0cj fxPq8DDkKBPrPe2ggAwYlYhV+Vlwxsz7mZGlmaYq8qoZF1TnukHmaoOD5tg42rM5L0VZ JSZw8HB5wOGKMsB6IfINvFoZApKwsUAIS9koZTl5mQFtKjzhyEmdApDRR7kjZDpYDS6U 3giA== 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=n+S74z9qQY+CaiuRLf+vHkg+q8IHeQbzLUk3GxZr2BM=; b=derskwikSlNGrpV8MYQMJ47D1RMh0jrgnygi0kZERhxNg2Wjgc5y9lj7wjxZiQ0AVk IySvrhqtLlfGpwCFSdg8RcCh43YTC1obZM/lSarBWlgzccD3HHD3zxTesRk3Rdf1JWES kUgW7qNfLCuQEslHF/355TY3ALxm2lIDi/kP7XLYJy2mUIo5dOxzUfe4VDdKA6Pn53hK LVrnx1XDLcYQljn7x4ZVQaG6A69UaiI1nfOhjHeXGPEA5hxazOTQ/nMHh2EubaX4y0RL 1gKHbzPUQDGJWLYcj7qPOl5daP+s5g6b+bsSjXsX0Wmzfen2E9w7QvW1nn/OBksYXxJc euXg== X-Gm-Message-State: AOAM533GGL/RVcmoGvBU3FJmZCidZbpXKgU3WVYvusr5urm//DTFm3gT jKE3taRNexC7oTo2bM0E8b8= X-Received: by 2002:adf:9286:: with SMTP id 6mr1795267wrn.179.1589939024957; Tue, 19 May 2020 18:43:44 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id z10sm1493351wmi.2.2020.05.19.18.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 18:43:44 -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 5/5] arm64: dts: meson-g12b-gtking-pro: add initial device-tree Date: Wed, 20 May 2020 01:43:29 +0000 Message-Id: <20200520014329.12469-6-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 Pro 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 - Analogue audio output - 1x RS232 port - 2x USB 2.0 port - 2x USB 3.0 ports - IR receiver - 1x micro SD card slot - 1x Power on/off button Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-g12b-gtking-pro.dts | 125 ++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-gtking-pro.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 8c9e9dfa5da3..5cac4d1d487d 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-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-gtking-pro.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-pro.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking-pro.dts new file mode 100644 index 000000000000..f0c56a16af3d --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking-pro.dts @@ -0,0 +1,125 @@ +// 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 Pro"; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <100>; + + power-button { + label = "power"; + linux,code = ; + gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; + }; + }; + + leds { + compatible = "gpio-leds"; + + white { + label = "power:white"; + gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "G12B-GTKING-PRO"; + 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>; + }; + }; + + dai-link-4 { + 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"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; -- 2.17.1