Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2376071ybk; Sun, 17 May 2020 19:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp7l6O4JwoVvxII8cK9kZAfz1CtsDhvNJL6L6Mo9bcKE995Kls+olMciZrJw7/c6cOEKzH X-Received: by 2002:a17:906:1c94:: with SMTP id g20mr12713002ejh.319.1589769432478; Sun, 17 May 2020 19:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589769432; cv=none; d=google.com; s=arc-20160816; b=NphPYkkU9x2HLQxLDEq4VQJJnLeAewMy+l1NlzJrV54oINVIToMdSLPOicxFzHT5mr Mhm1XnpkgiIp3t/g399WLZ5JLEURel6tkhT8kEvOrMB1xhcAwAYMbZTXcLpWtrxIePbM bxEMZLiJ8Vxe5MNv+fGAVnZU+L/d78/0uLw3Q0rI4/gwensYN08LwMkeNY+E6RSYbqGn 0x5QIs6VSPsrMAeo1f8FbOF5Sf+Epm+BocsLuJoaD/9sCLavihXgAMBnWyTrx0cVAGPo hsYzyjxVVbwPaum6vkd5TqxGI6ehkDApJ6RNjTZFKJ1/DC7x46wO9AfgctDtQn+p9gk2 cUNA== 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=ZobNRLV9OWt6qIUL1QmRkgHnNT9DqVov1qFrkfSpiCI=; b=TzyN9dIjjkvthsEQNU7/5ZzRU0gOmmc0I1/q61zRm8K9YDCWVKVhp/LSyZXh5kz9/k 2uVMvrmXhfA6SL/Z9VhsCc8sBHQqrO+3iOmFiHGwt/ADFbrwX6shqrCTjHXybTQopcAn 8n9TyuRl+nOwRUMPExzVL0eZwZHftTPabjx8rWsMDVvvYJbT8/s0iAu81ePZlENELd5F GngxWu+lHgCFpFCPiZjgkaqwPHj/Qo4RkNqb/BiDAGTWnpQQE2W2e3qLR3df/DC/I8zy Z/fg/Eb4qbpWitKKYkEVzIwGBK7zO9duV46EVdgMQ6XqlBEZQsPXqnl5hW2yBsjcQgbK R36Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PevFPDYw; 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 cc27si7313369edb.544.2020.05.17.19.36.49; Sun, 17 May 2020 19:37:12 -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=PevFPDYw; 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 S1727117AbgERCea (ORCPT + 99 others); Sun, 17 May 2020 22:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbgERCeY (ORCPT ); Sun, 17 May 2020 22:34:24 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24ECBC061A0C; Sun, 17 May 2020 19:34:24 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id v16so4094344ljc.8; Sun, 17 May 2020 19:34:24 -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=ZobNRLV9OWt6qIUL1QmRkgHnNT9DqVov1qFrkfSpiCI=; b=PevFPDYwTg51DhCU0WRAtF8Z9CWyayamnL10HfK/7K5D1rq4p6VwiSCbESN8VENPE9 yHb+rQ1ovfl5JfcuqX5naqvWLQXcHe4LQgN3WevhRMjql5vJ8AT+KDcm3aXg2WyCcV9F jGNcmSOhVLpcRw+uPEa7z5qacOzt4t+b8S//2tHh/vRca8fWOeSfRvnpB7ssRWXai9mN Mb59FjRz83c17rnrlgn54leQ4X5Cb5YDl8WV0l3CoLf6mmJLa9zZNrCTWV2yf2edjyIw DFOz054bKsPQblOzAGm1h4c6q5kejWW8rDYL8DvaLwJfMNyUcUc44hxusJcfbrE9mfTS IdEw== 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=ZobNRLV9OWt6qIUL1QmRkgHnNT9DqVov1qFrkfSpiCI=; b=uTAF5ffEAvg0pH0J1vZakI75D7fMfwuSMeCIINju+GPe5QYNr6wCnL6IPR9ORN/0nY qkk7fxooKNunh2YeJW4kEIJ1r1Sl/LBObGRCE8Dy5IVv3u9T9ifSZtXKe2/AhGRMnxC8 3IEAL+vXOtCgSPVywH2TM8Xr4dscJYwoJUAd5JPXoP6I5hP50onfU+FsOIQo4ma9GCRh cIYX+RP/mX+gIHTZBdJQkXs/AkdEDcduDO5CPANyG0SNCzIFvRSEbJp5SlM+oxU/aeIk 4EakCJ8835Mr+PvBT355IqBJlYmLk3EPBVz72MfyrFSRylk0BcK6+/RPHpGAaiFKcknd mTFQ== X-Gm-Message-State: AOAM5338mMjbDZ0nl62G81JJmoio2MCiTPSZl9AeQjySxB4jJ3JGSvIV ZGc28T11Tie3ks7qtzdavg8= X-Received: by 2002:a2e:3517:: with SMTP id z23mr8912474ljz.147.1589769262610; Sun, 17 May 2020 19:34:22 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id l25sm5937498lfh.71.2020.05.17.19.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 19:34:22 -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 5/5] arm64: dts: meson-g12b-gtking-pro: add initial device-tree Date: Mon, 18 May 2020 02:34:04 +0000 Message-Id: <20200518023404.15166-6-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 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 66691090b30c..38bb1f6e6ef6 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -5,6 +5,7 @@ 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-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