Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2372715ybk; Sun, 17 May 2020 19:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5YnkvT9RbuYtiPtHCt4MAfSqAti2H0+PlHjw3WpiaFJ3AnJOaBEjvL2l55rEgqDHCs4EJ X-Received: by 2002:aa7:d2d0:: with SMTP id k16mr9616902edr.272.1589768984738; Sun, 17 May 2020 19:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589768984; cv=none; d=google.com; s=arc-20160816; b=Thw7vWWQmL6K6C8z+YHZg8bG4VF+wlrm3ZL+XiZ/ae+drlB7po7xF+KhhNexeXBEeq O56YijNlAismmqV9SM3cOs5D7a60NvkBA+pkjtr1Laf0FJN6GJdmvuzxwUDSwPO48ztT nDTRBT4wc+ktkgcqB4+2Bb0Sf9+5B91AfPhnH+A5CvT8v0ORPPI/PS3fmuX5w+mXSYnG PapIQOG/KR8sxHkDInYc7Fn0tgTyHz9erainCgkiMuV9AJif2uNUfRt8x9OauzzTzmim g08wwTGz/qQyEe+vn6abiS6EX4hSZngsdf1UPeSfpu1xM7fGYFP5PePk1lo4JqZbv2Yh 0HiA== 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=iKK5nR76wtl2EiDlYXY7E4WWBowQMaXP7GBlXqi0lsCLPFto8q2ordkNmM4aD6Ykhy GBrAsixgFkGiydbwEkdQMed/xpgg4+P+LpTe7JvUpkWQqtk3/xbTYN+rLi/9fQWiWoQM O1ROU86E4MroZntzWVCxT7G6EfOkevqFCCFA75YJB6CT01l/ECsr4J1vIRZkeTb0kMNW cwUVA0w0jFjxFARGJC/+vBo85a3/iCOC/y/VYANaccbbKngM/4z8DiRL5OK1AOzEzzfy T3Bdw01lTrWf+4QFMwlYzWx6kGQDQE98fbBDYKxMfRZ6R/Zyr6KVq6QWOUiPbOUS09aR 3zCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fa+sLwXF; 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 z3si5511498eda.578.2020.05.17.19.29.21; Sun, 17 May 2020 19:29:44 -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=Fa+sLwXF; 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 S1727030AbgERCZy (ORCPT + 99 others); Sun, 17 May 2020 22:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbgERCZx (ORCPT ); Sun, 17 May 2020 22:25:53 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD7C8C061A0C; Sun, 17 May 2020 19:25:51 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id l19so8139944lje.10; Sun, 17 May 2020 19:25:51 -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=Fa+sLwXFj+6YJYZB5+V59CKynIEG0EI/zUj+KfUX4xmhj8vB9k/z7JNHN8xbvXmYFD xfDZYHPB+uVelSfJrpTryuhGjFcZQ7nNUo3+E8wS4G9nSELGNdMxEIvWWazEjXu1l+zc 3FyAYbtMvOJeFsAhO9lHQzrhvJp48lzG3LDnIj5YrnscpNnY5Pyhtrp/I4+AgwdouMN/ MSe6UdHngOusWGsmSxXMRMlDakiAFYPFD8N0HKGy/2eTn+gn+jo/G4UMqwWQcFAt92H0 ldCc11Rc41Qi2S2GpcZHuKDbpQCGBKT18lADXixjVqIvg1lZOg3nphctkMolxdhwH2Az ZBMA== 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=ufUai+mF/pbY8Y4F2RP6fUQ9zWEtElsKJa3mJ+3Y7oygfSfatBipsyjIUyrMOglgOP 1TbLPAhDQsdWLCZHEugJKWfWKRMT+TI+N4gIKkaUXKEQ/iz21KaqhiRNfBWBYVQkD79z ViBpJgudGV0zAMARPlDitft5cctTXdulX6vYyHy2MlUU4PD62kzNx/SKirRNUkEkOhih lAH7/qFZqx/wx2fh87WmfVk1eGxUVUhm2M7zVuAbxtjrvmS3DDMkjDm21q2RLEb9YUN7 TlAmlVm9ktMyJbwuJTpTdMm2RiX0nY7wnBPEmKTJKmCDoEzEUwE9nNAJKbGNh2jzKj81 VQCQ== X-Gm-Message-State: AOAM530LAYTEma/ROoK57Hg7gJVGrZDZpHPuemqy6M81ejaLpCTn4e8d 7JLshw8/WmuOdPfRa2VfN8I= X-Received: by 2002:a05:651c:545:: with SMTP id q5mr9218846ljp.57.1589768750372; Sun, 17 May 2020 19:25:50 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id m13sm5997306lfk.12.2020.05.17.19.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 19:25:49 -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 v2 5/5] arm64: dts: meson-g12b-gtking-pro: add initial device-tree Date: Mon, 18 May 2020 02:25:31 +0000 Message-Id: <20200518022531.14739-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200518022531.14739-1-christianshewitt@gmail.com> References: <20200518022531.14739-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