Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3077942imw; Mon, 18 Jul 2022 01:26:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNfjeBAmipj31/Ufk6wg5AvaQ2TrxOR3Z+2Asj4jMNfY/g0cpIPYBvBp8yYiVeJjOpAAX/ X-Received: by 2002:a65:6d0c:0:b0:412:6da1:df6b with SMTP id bf12-20020a656d0c000000b004126da1df6bmr23573810pgb.14.1658132819588; Mon, 18 Jul 2022 01:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658132819; cv=none; d=google.com; s=arc-20160816; b=JVB2vS7IbsRI8wCoWOiOIQmxI1l4Ix/Tgls35iGaDyh0sWVL2ELFGqN+WeDrZdhYsa Ibk3D6/S/s5WjA6ySeYcKPWN/+0GhxYWAuynNbF+iW4UOmun4qf7JpHCAY4SdkcKVdJX QGxDGIpIrv7FeNdui7djsOlzgGtOduJgI2Svv85JhP8SWps33bdrM65ayEJUE1+45Idg 3VyLkFFc/OhnFyKyOM83aKS1cOGYqNJ6XFu2V6rqZc0Bl4X98D3NIxaV7R1rRJz7LiXP eExr5jrZmWKPNYijGIq7UNtKdLgHhr/oiaI+jQJGi1/MJbBbKKfArPDaSQ1OxYU4tHxk bVUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=vEslTCITyimnIbsqLplwjM+NWGFZaT0Hs7X96p81Hkw=; b=nFBDAzjcwDdSPXkpKO7hw+K3kZ8L5VfX5jXWjgV7MYNbq44Jkwfdrd3US2Zc5L0m4f v6PKhaz6HnuN3HvzNS3ak8r2pIPewHvsMs5JwUFdk67blbw0XIpDlk/rd0CtaK6Uagzo vADkz/6I5/3crZzpwypvgQAIDS2ksiwZH09T8WnGsKxvO6R0NJo1gH0+6upJOmwHF/NG 3l5ICHFmPDtFOufLctZAeLAkQ6GV6JFAh4HNPpgIoXQhK2h88QNB7TuHCshMb0J6SL9V j3a4yPITFp2WdD0sfeibj6TcXpsM05JKUM/dNrQ6HGg930fJ+MKAvVW8ZhY8cDC5hSL+ R3UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=7RsWumKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6391c2000000b0040de79f8b78si14150857pge.500.2022.07.18.01.26.44; Mon, 18 Jul 2022 01:26:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=7RsWumKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbiGRH5s (ORCPT + 99 others); Mon, 18 Jul 2022 03:57:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbiGRH5q (ORCPT ); Mon, 18 Jul 2022 03:57:46 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7ADD183BC for ; Mon, 18 Jul 2022 00:57:44 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id bu1so15806400wrb.9 for ; Mon, 18 Jul 2022 00:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=vEslTCITyimnIbsqLplwjM+NWGFZaT0Hs7X96p81Hkw=; b=7RsWumKS/cfYmyRJ4MP3H3gJCDxUZGilhTzh5mFgx2JHv7QQSCOVAoF11HW/UZceyh m6TYGjxr/YHwiRCtHvbmEDUO4eqF9SSsjkaP8fiJl0YmP8UU6+l3xLbT0X9UARxcoyRX 8nqsGx6f0bBGyTgCMbHxPmz+k0A3V7hDKsyjvskTk2KWIMyYbRtniOxmFhvUAVZGWCPa 3XkWspTkyyfp3FImy7eJ4Ch/xO9+sU0fLLuspGM9oyw+iLig/BpNIBDfNVpnYNnMiq2g uoA6LS206TFe5Hun/lOQb9cgEJoj9qoAn5A/qkUkNvnlsOdn0DZflOze/JkimIyev7U4 3ppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=vEslTCITyimnIbsqLplwjM+NWGFZaT0Hs7X96p81Hkw=; b=rae9iOsMnfuReF/dJTYfVJ1w5aUdv3zHVEK73n5hSNYMaBBVlpoWW/o9xioccZhYba VjEi0/y15I65o8t4KQRJvtrybAx/7bd9tGP2j73/nM8bO7Iqmfgr+/QN80icSoeHXXO0 3GnAQO46aU30IeHuTkJqSWwXBPkuNXC1xDQWUjNagB5KnCaPTI9k6kZNIrBg62KyPsLx 2KKMXPCIbxolpJ8CHi7RSAltwGqEd7fHub7h6/OGAzO8LrDg0UK7yaiTyfXsCANDNCyj YDed3h8WivcuocrTgOq0ZcMaER0dyDYV7TqrvgLw9lv/76AcYYUaOAjH2CROXGh9zOtu gf6g== X-Gm-Message-State: AJIora8QV9V1+3uyDn6hfedYX8pBsiVH8OJZRugV9qYvMLXMmvafxX6u e6icoeehKsST4qbLeBZ5RD3I6Q== X-Received: by 2002:a5d:5985:0:b0:21d:b6b6:4434 with SMTP id n5-20020a5d5985000000b0021db6b64434mr21345760wri.111.1658131063310; Mon, 18 Jul 2022 00:57:43 -0700 (PDT) Received: from ?IPV6:2001:861:44c0:66c0:a2b7:375c:fabd:3626? ([2001:861:44c0:66c0:a2b7:375c:fabd:3626]) by smtp.gmail.com with ESMTPSA id a7-20020adfeec7000000b0021d7050ace4sm5040248wrp.77.2022.07.18.00.57.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 00:57:42 -0700 (PDT) Message-ID: <2280fc46-cd0a-6267-ad0f-9916bd0ea146@baylibre.com> Date: Mon, 18 Jul 2022 09:57:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 2/2] arm64: dts: meson: add support for Beelink GT1 Ultimate Content-Language: en-US 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 Cc: Furkan Kardame References: <20220707093954.21716-1-christianshewitt@gmail.com> <20220707093954.21716-2-christianshewitt@gmail.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220707093954.21716-2-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2022 11:39, Christian Hewitt wrote: > The Beelink GT1 Ultimate is based on the Amlogic S912 (Q200) > reference design with the following specifications: > > - 3GB DDR3 RAM > - 32GB eMMC > - HDMI 2.1 video > - S/PDIF optical output > - 10/100/1000 Ethernet > - AP6356S Wireless (802.11 a/b/g/n, BT 4.2) > - 3x USB 2.0 ports > - IR receiver > - 1x micro SD card slot > - 1x Power LED (white) > - 1x Reset button (internal) > > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../dts/amlogic/meson-gxm-gt1-ultimate.dts | 91 +++++++++++++++++++ > 2 files changed, 92 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxm-gt1-ultimate.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index 8773211df50e..641399fcbdd9 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -43,6 +43,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-gxm-gt1-ultimate.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-mecool-kiii-pro.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-minix-neo-u9h.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-gt1-ultimate.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-gt1-ultimate.dts > new file mode 100644 > index 000000000000..2c267884cc16 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-gt1-ultimate.dts > @@ -0,0 +1,91 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) Christian Hewitt > + */ > + > +/dts-v1/; > + > +#include "meson-gxm.dtsi" > +#include "meson-gx-p23x-q20x.dtsi" > +#include > +#include > + > +/ { > + compatible = "azw,gt1-ultimate", "amlogic,s912", "amlogic,meson-gxm"; > + model = "Beelink GT1 Ultimate"; > + > + leds { > + compatible = "gpio-leds"; > + > + led-white { > + color = ; > + function = LED_FUNCTION_POWER; > + gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + panic-indicator; > + }; > + }; > + > + adc-keys { > + compatible = "adc-keys"; > + io-channels = <&saradc 0>; > + io-channel-names = "buttons"; > + keyup-threshold-microvolt = <1710000>; > + > + button-function { > + label = "update"; > + linux,code = ; > + press-threshold-microvolt = <10000>; > + }; > + }; > +}; > + > +ðmac { > + pinctrl-0 = <ð_pins>; > + pinctrl-names = "default"; > + phy-handle = <&external_phy>; > + amlogic,tx-delay-ns = <2>; > + phy-mode = "rgmii"; > +}; > + > +&external_mdio { > + external_phy: ethernet-phy@0 { > + /* Realtek RTL8211F (0x001cc916) */ > + reg = <0>; > + max-speed = <1000>; > + > + reset-assert-us = <10000>; > + reset-deassert-us = <80000>; > + reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; > + > + interrupt-parent = <&gpio_intc>; > + /* MAC_INTR on GPIOZ_15 */ > + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; > + }; > +}; > + > +&ir { > + linux,rc-map-name = "rc-beelink-gs1"; > +}; > + > +&sd_emmc_a { > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + }; > +}; > + > +&uart_A { > + status = "okay"; > + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; > + pinctrl-names = "default"; > + uart-has-rtscts; > + > + bluetooth { > + compatible = "brcm,bcm43438-bt"; > + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; > + max-speed = <2000000>; > + clocks = <&wifi32k>; > + clock-names = "lpo"; > + }; > +}; Looks fine for me: Reviewed-by: Neil Armstrong