Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11204582pxu; Thu, 31 Dec 2020 03:06:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxowkRwKm/mpx7dbnU5SG6OHotDbCq+o6vgZO43yWSZmUFesJ14OwCejOoW3UFWceOqDWFz X-Received: by 2002:a05:6402:1d18:: with SMTP id dg24mr53591751edb.221.1609412817710; Thu, 31 Dec 2020 03:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609412817; cv=none; d=google.com; s=arc-20160816; b=uyU32MhZwRsSxr4kLgKVkcAq8Scy7MiRn2Qbzfr1hCiowEDi5i1uG5yE2y7dQ+ixXZ SgCtr0b4Fclpfu5TRJtr07N3vSz1qF7fLRfqcalVNaROPpVznHrwo05DeXxrk2O9SWao p9cLir4QE0Nq5og1RaWyd2ZVFXLiphM5WCDdBYGtbHZC+GAMpFrJ4WgnZfih6bV0SA5U YDViLDsgtxC1iQsPpirKRctlnYvTsnHzx9+qcaL9aveMB1zFBy5s/du6XQLad2tSbe4e H1J0yNE/vLxbKuNhUc7c5JLf7XMeaAkwI394st+fY9kArTXbym2wpB/qdK3JpuecoCAo CzXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :autocrypt:from:references:to:subject:dkim-signature; bh=cxEudhZPFqhuhT8GK/KK/lyF11N/gNnuVpNnjBEKpzA=; b=P77LsyOC+18M8jiAPFAYjdVgQf2tt2T5vmaZAzU4Ix5CW2KG5miFPIXLOmio7O8I+R miUnkDLMgCe4uN5ODonT46TZlGgl2sIl8o8MYQ4xfBp6wjfyvKDY1tCCveYr/xHv/yIu TNqTmfn8jtdGF2PyicHvlG9NliUWkpnUMtvklaJ6mI2q/7zqCBicgXlMaVN1fFuIjq2g nfATIKwnPoNS8ZBUyRfGqb8FzOkIds23XX6VnHHoyG88Lb+UBsHwi0q69Gd6FdFPtpaU 8GoHJIo9+h76NXh6acKU4kunJFMeC1hzIlINkkC7tSGL0p4qitGkP7+yQtY+0HVRXrxS dSCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Zp3J7Klt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si26005691eds.173.2020.12.31.03.06.33; Thu, 31 Dec 2020 03:06:57 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Zp3J7Klt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgLaLGF (ORCPT + 99 others); Thu, 31 Dec 2020 06:06:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbgLaLGE (ORCPT ); Thu, 31 Dec 2020 06:06:04 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B536C061575 for ; Thu, 31 Dec 2020 03:05:24 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id t16so19837906wra.3 for ; Thu, 31 Dec 2020 03:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:autocrypt:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cxEudhZPFqhuhT8GK/KK/lyF11N/gNnuVpNnjBEKpzA=; b=Zp3J7Klt9b2yeJQNf1Z7IvH3xsr5w5cp6bpwdi6FPkCxGFuRLbZHMwQXMP9vBYkH3f sMl6Rj52XzZ+bRRCvqfCXWaq+ssBjZVpHqQ4oHPeKqaYwB8xmqOLKEp6r5g4jzSqYF7L hyrA1gM5nJXCbMEw/zfdyKvgb22WJb+7D+zyv2jHtTmX0vn7RDM3UZ4jxXFlTrDd4OPv AAGZVN87oXr76XQucQF2lwgYfghhjSwSWkOXwoTSz/1WSysW5LOk5yffIf2OgNpHoClA 3gr7eo0SnqEh51rEIS0P16hB2dhIaXP7dXY0Sbk2Vy+TjRPlrRiNZZB+0kqLuZkxXUGh 3Vgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=cxEudhZPFqhuhT8GK/KK/lyF11N/gNnuVpNnjBEKpzA=; b=VXPT6i3dTA5PQZ+4VhUXAEQwSGTJj/K6j+1m1EWoXq46hn7hHu2m8c+Z1Z49tYmv6V uapfWt3RAg3y8NGzFrOe/xN9VrHXwDKf9Ta+nq1A4v65ezxdWwPbd4hVxEhUPL6micGx rWqbHqERj6+/ei8wfrw041FdlQtw0d4ewt67Egi6xMre21itczLvNG/epOpYrarqOEnU 7ZqTX8RPg0FVWhTEuOUcUgFhcO6H+vYPQqrD6QYqLZOCzNo3e2Xhhay7iHMmvtOa9khq ehkOkGLqbq0T/Bst5/6dvX0tfpzrMwTwsCDc5jHDbx6T9OCm1DFELFrhtIwmANbqlCTQ 1yTQ== X-Gm-Message-State: AOAM530yA/bHpxLscgL+Q1wtcXv5zXHPaWmOoJ1Q7tw0dbuM6kEbnkec WBqdgPnjyhg6Chz0ZYFyFUZpzLMOhitv6A== X-Received: by 2002:a5d:47cc:: with SMTP id o12mr63039488wrc.236.1609412722447; Thu, 31 Dec 2020 03:05:22 -0800 (PST) Received: from ?IPv6:2a01:e35:2ec0:82b0:543f:d93a:78dc:eb25? ([2a01:e35:2ec0:82b0:543f:d93a:78dc:eb25]) by smtp.gmail.com with ESMTPSA id f77sm10963934wmf.42.2020.12.31.03.05.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Dec 2020 03:05:21 -0800 (PST) Subject: Re: [PATCH v2 2/2] arm64: dts: meson: add initial Beelink GS-King-X device-tree To: Christian Hewitt , 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 References: <20201230103729.2272-1-christianshewitt@gmail.com> <20201230103729.2272-3-christianshewitt@gmail.com> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= mQENBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAG0KE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT6JATsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2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yoASw EOTPKE6CVWrcQIztUp0WFTdRGgMK0cZB3Xfe6sOp24PQTHAKGtjTHNP/THomkH24Fum9K3iM /4Wh4V2eqGEgpdeSp5K+LdaNyNgaqzMOtt4HYk86LYLSHfFXywdlbGrY9+TqiJ+ZVW4trmui NIJCOku8SYansq34QzYM0x3UFRwff+45zNBEVzctSnremg1mVgrzOfXU8rt+4N1b2MxorPF8 619aCwVP7U16qNSBaqiAJr4e5SNEnoAq18+1Gp8QsFG0ARY8xp+qaKBByWES7lRi3QbqAKZf yOHS6gmYo9gBmuAhc65/VtHMJtxwjpUeN4Bcs9HUpDMDVHdfeRa73wM+wY5potfQ5zkSp0Jp bxnv/cRBH6+c43stTffprd//4Hgz+nJcCgZKtCYIAPkUxABC85ID2CidzbraErVACmRoizhT KR2OiqSLW2x4xdmSiFNcIWkWJB6Qdri0Fzs2dHe8etD1HYaht1ZhZ810s7QOL7JwypO8dscN KTEkyoTGn6cWj0CX+PeP4xp8AR8ot4d0BhtUY34UPzjE1/xyrQFAdnLd0PP4wXxdIUuRs0+n WLY9Aou/vC1LAdlaGsoTVzJ2gX4fkKQIWhX0WVk41BSFeDKQ3RQ2pnuzwedLO94Bf6X0G48O VsbXrP9BZ6snXyHfebPnno/te5XRqZTL9aJOytB/1iUna+1MAwBxGFPvqeEUUyT+gx1l3Acl ZaTUOEkgIor5losDrePdPgE= Organization: Baylibre Message-ID: <5a582ac6-37b9-c640-dd12-4f42e4a957c0@baylibre.com> Date: Thu, 31 Dec 2020 12:05:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201230103729.2272-3-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/12/2020 11:37, Christian Hewitt wrote: > 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 | 133 ++++++++++++++++++ > 2 files changed, 134 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 ced03946314f..dce41cd3f347 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..c9d9dcb0cd65 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-gsking-x.dts > @@ -0,0 +1,133 @@ > +// 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"; > + > + aliases { > + rtc0 = &rtc; > + rtc1 = &vrtc; > + }; > + > + 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>; > + }; > + }; > + > + sound { > + compatible = "amlogic,axg-sound-card"; > + model = "G12B-GSKING-X"; > + audio-aux-devs = <&tdmout_a>; > + audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 1", > + "TDMOUT_A IN 1", "FRDDR_B OUT 1", > + "TDMOUT_A IN 2", "FRDDR_C OUT 1", > + "TDM_A Playback", "TDMOUT_A 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_a>; > + 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_A>; > + }; > + }; > + > + 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"; > +}; > + > +&i2c3 { > + status = "okay"; > + pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; > + pinctrl-names = "default"; > + > + rtc: rtc@51 { > + compatible = "nxp,pcf8563"; > + reg = <0x51>; > + wakeup-source; > + }; > +}; > + > +&tdmif_a { > + status = "okay"; > +}; > + > +&tdmout_a { > + status = "okay"; > +}; > + > +&tohdmitx { > + status = "okay"; > +}; > Tested-by: Neil Armstrong