Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143898pxb; Wed, 10 Feb 2021 00:46:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIlbzp2G0vr8D6Akjb/rrAccR0VirjR/4YVyKQM3GFHZJd1g/0qPoQnCzuvG0DY9KFFbC9 X-Received: by 2002:a05:6402:b8c:: with SMTP id cf12mr2147463edb.320.1612946799221; Wed, 10 Feb 2021 00:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946799; cv=none; d=google.com; s=arc-20160816; b=pEVUzehTJjNUZBVS12dUfyGnBLHghLwCdHj0Sa4a3ko58Fs7vj+5Qd2wojONTojds4 6GsMq4a8qm4j5d4azxFH+CWRoKcBywg40ikJxAACqhs2hiGcCAHyTgRmkNULxvvNQsOu 0Vu/B4IkeNobC0nxrjmhuCVdxNJsuArxojwio2HjbLxlpz0IpPps4g4ISqq1JaeNQz7u MQVMWu3q/dfT7WiKqw9FlH2Udwjk0lJMP6as9aMBTtco0UR8+kObS2GwAmVXjY6b/Su4 KF3DGzbRxyQhh1Gl8Pqf0ZNeB6BWNbJ0fdmxgnbJFbGW/yFJvV4sQdHDJbRM3Hu8E+qb GW0Q== 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=A9US22jrA5hZzbGcN6O/Yi1EA8ioR21bQjPEQ1IuBAc=; b=dWjfsYWc4j44ot4XkUw6ZRGcSeMkhDfuzPh+DycTWrV365B/OBvERh3IlpxtEL2ShH /LBAHYQSmsqVV6BK4ih6VPgnaQBHKgVsr1bCYIdLk2lqduS8spYqa2Z7VsqOpOgGDyLP ipRatjPW+MTRYzGnnYKC0bS4R1U8VogGqCgg7vhh8FqGlA4Ow/HQlH3e55tIm3K99m5e QVf6fv7prgeBebwOXxdtiIYNBJMOZgAysyxPDmPQHm7bX4uVIiJurhcCxy3aIjb1eXTk 6CT7VG8LYEst3ict6fO8Yon/wsZ3YgAcMX4ZodZbupfZ9oNp4hB/2A68gaBMqKe1zom2 sJUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Ov3fVcUf; 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 k27si883835eje.568.2021.02.10.00.46.15; Wed, 10 Feb 2021 00:46:39 -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=Ov3fVcUf; 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 S233744AbhBJINV (ORCPT + 99 others); Wed, 10 Feb 2021 03:13:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233756AbhBJIMq (ORCPT ); Wed, 10 Feb 2021 03:12:46 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD403C06174A for ; Wed, 10 Feb 2021 00:12:05 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id i9so1045039wmq.1 for ; Wed, 10 Feb 2021 00:12:05 -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=A9US22jrA5hZzbGcN6O/Yi1EA8ioR21bQjPEQ1IuBAc=; b=Ov3fVcUfe1VNVoTr47vHxDZyI3HO1mFcdpgc9OxfUi0f3Z7+YLrZ9jAYUsEDZ6L+gX VF+nqXyRRMQVxl1hyjbwW+xAQdVlcnINSz2MbC23S9BFS8PaT4jWAu21/eNE9vR7+zG6 zLizMQt1RovMN0h2eCtnXDvLcXdE1KPKacdzR0a5Ta506qRPooAYkx9R5LDgjLUtgAM0 RWb2RE4AKHZT57nXOLKrOMqeNW+Fwpc2ZCJUH66v7jPljKyrl25gDYA0hvZcpaGpUl3T xFisP2JF2ilopPIYFWqbZSMXVUUwNzFA/A3D3BccXvhGpa7Aoo4LwsdxO7VEXotiK9MZ 5MLQ== 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=A9US22jrA5hZzbGcN6O/Yi1EA8ioR21bQjPEQ1IuBAc=; b=UVe7HWkHtU2zJ6YvENJEKbT8HhyUzFTqlcVuvbEGbJli6dDSOOMFt8/ERNJSITAQnN A5fOl5UN7JCb3Ueh95SiEt4FrMBlhEW1U5WR/5/iW02xAOoN+XLxJexEEVwQ519RWukZ 1uOBsjFFsseV4xRuqoClMiO3o0riPddxh0yK8i68cgguLhRw73ML2u1XpdBfqDdIYqz7 fzZWbduJ0hrDaWHduQlojAaXBmRnKeIfpSI6SHSWH2r7rqpeFmBOmif5HcAwN+ahvod2 qsz/ty1ZqeMDJZsN6L2Wa8nxk0C95m+e4D6Y39ggZETc1mIN7evFeAEvP88sUsbEkg92 0o6Q== X-Gm-Message-State: AOAM532HwDXpUxUL30Y+w2llAq5EQYk+BXOzLXT7LEHbSZkshIwZFGx7 e0/SdMTAMErIQqAse1y8NsmsGtr424lJRvsW X-Received: by 2002:a1c:dd55:: with SMTP id u82mr1809135wmg.135.1612944694343; Wed, 10 Feb 2021 00:11:34 -0800 (PST) Received: from ?IPv6:2a01:e0a:90c:e290:d403:f5fa:8912:cba5? ([2a01:e0a:90c:e290:d403:f5fa:8912:cba5]) by smtp.gmail.com with ESMTPSA id f2sm1800913wrt.7.2021.02.10.00.11.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 00:11:33 -0800 (PST) Subject: Re: [PATCH 2/2] arm64: dts: meson: add initial device-tree for Minix NEO U9-H 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: <20210201210508.1528-1-christianshewitt@gmail.com> <20210201210508.1528-2-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 RqvgB62oKOFlgOTYCMkYpm2aAOZZ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OTPKE6CVWrcQIztUp0WFTdRGgMK0cZB3Xfe6sOp24PQTHAKGtjTHNP/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: <35942a39-517a-2437-8f53-f885d7f6d274@baylibre.com> Date: Wed, 10 Feb 2021 09:11:32 +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: <20210201210508.1528-2-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 01/02/2021 22:05, Christian Hewitt wrote: > Minix NEO U9-H is based on the Amlogic Q200 reference board with an > S912-H chip and the following specs: > > - 2GB DDR3 RAM > - 16GB eMMC > - 10/100/1000 Base-T Ethernet > - AP6356S Wireless (802.11 a/b/g/n/ac, BT 4.1) > - RTC chip > - HDMI 2.1 video > - S/PDIF optical output > - ES8323 audio codec > - Analogue headphone output > - 3x USB 2.0 ports (1x OTG) > - IR receiver > - 1x Power LED (white) > - 1x Power button (rear) > - 1x Update/Reset button (underside) > - 1x micro SD card slot > > Tested-by: Wes Bradley > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../dts/amlogic/meson-gxm-minix-neo-u9h.dts | 120 ++++++++++++++++++ > 2 files changed, 121 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxm-minix-neo-u9h.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index dce41cd3f347..46e67de3d6d2 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -38,6 +38,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-libretech-pc.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-gxm-minix-neo-u9h.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-minix-neo-u9h.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-minix-neo-u9h.dts > new file mode 100644 > index 000000000000..a414cd39c2b1 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-minix-neo-u9h.dts > @@ -0,0 +1,120 @@ > +// 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 = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm"; > + model = "Minix Neo U9-H"; > + > + leds { > + compatible = "gpio-leds"; > + > + 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>; > + }; > + }; > + > + gpio-keys-polled { > + compatible = "gpio-keys-polled"; > + #address-cells = <1>; > + #size-cells = <0>; > + poll-interval = <100>; > + > + button@0 { > + label = "power"; > + linux,code = ; > + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; > + }; > + }; > +}; > + > +ð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-minix-neo"; > +}; > + > +&i2c_B { > + status = "okay"; > + pinctrl-0 = <&i2c_b_pins>; > + pinctrl-names = "default"; > + > + rtc: rtc@51 { > + status = "okay"; > + compatible = "haoyu,hym8563"; > + reg = <0x51>; > + #clock-cells = <0>; > + clock-frequency = <32768>; > + clock-output-names = "xin32k"; > + wakeup-source; > + }; > +}; > + > +&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"; > + }; > +}; > Reviewed-by: Neil Armstrong