Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp143967ybh; Fri, 17 Jul 2020 22:24:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2KjGIGl6KvrPax6U+3ZD12iZTR4ekmVn946iZ1TyaKn84mxmYnrV2/V+iaolGpT4DI9tj X-Received: by 2002:aa7:c496:: with SMTP id m22mr12549073edq.336.1595049851968; Fri, 17 Jul 2020 22:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595049851; cv=none; d=google.com; s=arc-20160816; b=tXqOxpDnxTlXtOznc2uDilhtQl6/cT+VwalSlBYovBqU2+JVsGf7HtIm59r7HAWwbN 00FeTICNtHTzeevS8fz0bVGdnbDZua+mO4CK2kz2M/Hd75LV4KvM2m6LFH4Db98vdueL z7OvumMuN6qawKrv+IvvLzmJdVsr3WNmFPLZX+OEpY542n5xVIuTzunao0OxgQM9DM73 yh1vubP7JfiuXWm98xADyFj2193/2TW44n6UgkeMMZg8pl11bGVMsPe7BxLTEEi1bLsA C56gHFzMhQNePxlc9kF0PzxKB2PjoEkBvmHg72SJlwF+LChifCLLurHsC1BWg3uEzw0D s+ig== 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=cAYxwf3PWKuckY2hB45qBXD12qyW8EWqiGVEnf1AhJ8=; b=cxXUbR6EUi8xLfUQZbbi93rMBWS03MX/r/G/3jv9LWBFjh876pzGB4NlQ59v6tsexn EC3GKhAB0JvNYb9nXLBT+pqiXlbxKFIkjEzv3IO/WVym1ibP30f7/uA4iRMcIcdVOGDs EXCbd5sezyPf9+sKloVF99srCMgBCQN9wM+nBht0M7ATrizlrB2Z/uUx9zethcCUZyWE u9h7cmVuclMeMwSX30YzI6oNicLqBQrgPQW+0X5t0oM48JONAXyFkO2g/4RmIznYPt2B Fg4GyiY1kCmHT5KaoNZ7pF6FswsNuuvLvrNRoOazdb4EKZqF1Hp5bQVf6MPa9hrwuova RuFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ahoKNN/2"; 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 a20si6176482ejb.361.2020.07.17.22.23.49; Fri, 17 Jul 2020 22:24:11 -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="ahoKNN/2"; 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 S1726611AbgGRFXH (ORCPT + 99 others); Sat, 18 Jul 2020 01:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgGRFXG (ORCPT ); Sat, 18 Jul 2020 01:23:06 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECEF0C0619D2; Fri, 17 Jul 2020 22:23:05 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o2so20440364wmh.2; Fri, 17 Jul 2020 22:23:05 -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=cAYxwf3PWKuckY2hB45qBXD12qyW8EWqiGVEnf1AhJ8=; b=ahoKNN/2UsGf2261/PlAzJzMU5wSe7qP1X+NHH1C5XFRC9/Eixnma6gwZKnybt4GAt Tk9O4FMkcXWGGNEfeV4pOWJVh8CBI/X5iBSamDa/WungfMcVb9TTFeTrrf/MQwPTsvRa 2XmgDnOiP+4khMX0h6UwQE53Kyc0fyxeSCS0wN8ZMi3atYkNM+2AHtnwMetN+VFpphHF DEGcD6XS2v9jPs8LRhVE6+vbVsTRSTXLdf3+pYnXE8NnFw0Lk/aX11oevj51tuLJzXiL OfeVYxLdDdgExNGWp4wNQOPMAWnbIPj4YZIpzvsI7eJ0HbZhsc+demln5eAzf0ZTl1cl pZ8Q== 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=cAYxwf3PWKuckY2hB45qBXD12qyW8EWqiGVEnf1AhJ8=; b=D9MzmfwMQI5gGexxMWqlhENCHUV69cdnX4Mlhk13donZQ1hOJL2k6gS79vHv8yPpMa uaHDP6/xtln4EugWAQnxp+0eli3pOm++bU6CLW0R85w9fU8VPtMy0gnJUYlexfsUjI44 IxMD/uXsdU6LcXLSo90XxflcYrDjXR4SNdEVSWVxcMBY7T6Hza95Ub93PrhVBnFmZmQ4 50RdIqWHnxSvW78OpgaPachVH78RZmftKWq9WDZG0H5RvbUsGRkDy4mWYT0CQXE+VoZN 4GrOFjjFl87zGebX5ySBg6Om/GXs044pbCZP4v0p0VJT7wPDFooIT9LMqKEBEm8h7GTd LprQ== X-Gm-Message-State: AOAM530fXyvBFNPdXh38Mhnc3I5tGbqk27at94GmVVrcpKrSartcwyN4 nlwhsL2W0FgFUZz7DeFuDv4= X-Received: by 2002:a1c:4183:: with SMTP id o125mr12180611wma.101.1595049784690; Fri, 17 Jul 2020 22:23:04 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id f16sm17536608wmf.17.2020.07.17.22.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 22:23:04 -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 2/2] arm64: dts: meson: add initial Beelink GS-King-X device-tree Date: Sat, 18 Jul 2020 05:22:58 +0000 Message-Id: <20200718052258.2890-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200718052258.2890-1-christianshewitt@gmail.com> References: <20200718052258.2890-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) GS-King-X is based on the Amlogic W400 reference board with an S922X-H 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 - 2x ESS9018 audio DACs - 4x Ricor RT6862 audio amps - Analogue headphone output - 1x USB 2.0 OTG port - 3x USB 3.0 ports - IR receiver - 1x micro SD card slot (internal) - USB SATA controller with 2x 3.5" drive bays - 1x Power on/off button Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-gsking-x.dts | 170 ++++++++++++++++++ 2 files changed, 171 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-gsking-x.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 5cac4d1d487d..99a6e8e0b644 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-gsking-x.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 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-gsking-x.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-gsking-x.dts new file mode 100644 index 000000000000..60b681d6cfe3 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-gsking-x.dts @@ -0,0 +1,170 @@ +// 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 +#include + +/ { + compatible = "azw,gsking-x", "amlogic,g12b"; + model = "Beelink GS-King X"; + + 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"; + + blue { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + 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-GSKING-X"; + 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