Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp224222ybh; Sat, 18 Jul 2020 01:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfbjThGlTjvRdYkgt0qKUUHdn1V9YWwPHla7lADs2UZFn+4O8quqa5YdI4hmVYwlOTnFCU X-Received: by 2002:a17:907:2105:: with SMTP id qn5mr12003323ejb.308.1595062409168; Sat, 18 Jul 2020 01:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595062409; cv=none; d=google.com; s=arc-20160816; b=waZEnp1wkzfvLuWp8jLSx+1AZv05oqszqW3nGAlsR0wvaOmTK9FijX15m5BaCMOJUz xzLPkxCTljbuDP9hxGako7vQCn4pyrjDcJhLoY6+fpmgvHMKcxkc+4UXEJ58T/HMhzk1 KU2rR1G2xo5DInZ+GsdzEG6q3sFQDfXakNd1NqKtmP0Tv2XhsoUydaZowuLVV+3NVOVc 5Owf4Z9Fr5QmxxHw0HmcEHXH7x3EP5RgJbFP0FnLIbZKGi5pf+l6Bgscpf/PL8vrJUyv ZnrZDyq3zQcsRhuGVzr/DpO0UbqXyRQyzWznr3i06RmtwM3ziZqzI6DKhW+mxgNabFPU 8/Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=9ayyodkGKOpYivSbbjMTJTNckO5WX56Y6RqfjhxjCBI=; b=ycrYekkfiINTfy1v25JRcsfiAOUAMfkCPzhtZAfxg+sXY8TvF3GwZXNTIt5w2Ib1it UlH11O3K5iMDodBBzvyAM1wOQNsaFyFNBRXKz/lg8tenqwrCqzlBob4i3DKcolwOvk36 qX3meJPwhazLxyolviSV2Lj2yoLbl2Lgm/uYtrDa39lce0p3AwQwW+UMySrH/Yxr4F4L iOz+nncrpHN11fLE+U+4zo3X85yyMgxYO81t7tYU2+VJ7OxowILxja6DcNGj6KNgFSSz zVeuUjWr4nJyK/dTIbgShte6KqDyj/1H0GGx3K1mP0t28j4thY2h5+RBWHHBlJU+sIQl iLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n93979QF; 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 n3si7182379eji.720.2020.07.18.01.53.05; Sat, 18 Jul 2020 01:53:29 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n93979QF; 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 S1726262AbgGRIw3 (ORCPT + 99 others); Sat, 18 Jul 2020 04:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgGRIw3 (ORCPT ); Sat, 18 Jul 2020 04:52:29 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06731C0619D3 for ; Sat, 18 Jul 2020 01:52:29 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id s10so13336428wrw.12 for ; Sat, 18 Jul 2020 01:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=9ayyodkGKOpYivSbbjMTJTNckO5WX56Y6RqfjhxjCBI=; b=n93979QFLxxXKf9glRQf3YuTidR5ReP3Bl3WKjAa8NMu+CyyI18OY/AOEZpzMHOXqW H+2NEg1ebSLylQVCFKWKZMexiDFTpv7QglvmSm2Sp+POKmqLGjFxw3EcGuXG6lf1kBCp b5XWmNdF/k9BTOMAtSsqiR+0ri3CvM/DNd/ihuYDjA3a/1OmgB7dTOgUTjHZuYIM6iFT p06J8pZIRaFiZUnlBho+qAk/Hhh1f0n2GvT2peLk+T2MBlopq0HGHa8XsqkZ7/T2Bz5F vftWQYLqpoGV63d2c3N+IYAhC+O6/yCwQ6gVzDE30/eJO34l8iJcoaIdx77YRAsSTpYf iPwA== 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:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=9ayyodkGKOpYivSbbjMTJTNckO5WX56Y6RqfjhxjCBI=; b=i1w82HfvfsYKHYQd/UlntxhNxhYiG+hw15O7ii6rzrkN7fUlsjIxdV7jugmQvHvm3U ghK6T+c+tBUs7ZNpfesLywQMtkZIE99qw2by8utwq1UvKwCxnJuqZeRuCeznPZrYS6Hb v/GCzvB0SJhbE8qqkzSvb44BJJs9FF957aASoDPNe3PB5bAB9RWBB7s3wkvOEveRm3qb 0Foc68ZYLzBca3E2svpUyEaPbuDolX5pJhYPx6QydJ4CAgPH1ZfRdg6MekheuJqc62Jt ysREZGmhaRw3XxdagziVchN2xGnl/aE+pAl1o96BUhpZcdawFvTCJySkhZjZyVNJMrL4 eYhw== X-Gm-Message-State: AOAM533HnUUs6CBkIN6itiXb3ja+eG2ln7psENsC9Hs47Wxbpo5ov8mh ccG3/FbcbP/OrRoWTMC1ApAheIppmwD1JQ== X-Received: by 2002:adf:9307:: with SMTP id 7mr13579644wro.414.1595062347034; Sat, 18 Jul 2020 01:52:27 -0700 (PDT) Received: from Armstrongs-MacBook-Pro.local ([2a01:e35:2ec0:82b0:9d0:bf63:799d:4aa1]) by smtp.gmail.com with ESMTPSA id l14sm19932531wrn.18.2020.07.18.01.52.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 01:52:26 -0700 (PDT) Subject: Re: [PATCH 2/2] arm64: dts: meson: add support for the WeTek Core 2 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: <20200718050056.1713-1-christianshewitt@gmail.com> <20200718050056.1713-2-christianshewitt@gmail.com> From: Neil Armstrong Message-ID: <2ab5e28a-77f6-cac1-68ed-f0a23d5f2a24@baylibre.com> Date: Sat, 18 Jul 2020 10:52:26 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200718050056.1713-2-christianshewitt@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 18/07/2020 ? 07:00, Christian Hewitt a ?crit : > The WeTek Core2 is a commercial device based on the Amlogic Q200 reference > design but with the following differences: > > - 3GB RAM, 32GB eMMC > - Blue and Red LEDs used to signal on/off status > - uart_AO can be accessed after opening the case; soldering required > - USB OTG is not accessible (inside the case) > - Realtek RTL8152 Ethernet (internal USB connection) > > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../dts/amlogic/meson-gxm-wetek-core2.dts | 90 +++++++++++++++++++ > 2 files changed, 91 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxm-wetek-core2.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index 5cac4d1d487d..4e2239ffcaa5 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-s912-libretech-pc.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-wetek-core2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-wetek-core2.dts > new file mode 100644 > index 000000000000..44fc5ea38dc0 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-wetek-core2.dts > @@ -0,0 +1,90 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2020 Christian Hewitt > + */ > + > +/dts-v1/; > + > +#include "meson-gxm.dtsi" > +#include "meson-gx-p23x-q20x.dtsi" > +#include > +#include > + > +/ { > + compatible = "wetek,core2", "amlogic,s912", "amlogic,meson-gxm"; > + model = "WeTek Core 2"; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */ > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + blue { > + color = ; > + function = LED_FUNCTION_STATUS; > + gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; > + }; > + > + adc-keys { > + compatible = "adc-keys"; > + io-channels = <&saradc 0>; > + io-channel-names = "buttons"; > + keyup-threshold-microvolt = <1710000>; > + > + button-update { > + 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-power { > + label = "power"; > + linux,code = ; > + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; > + }; > + }; > +}; > + > +/* This is disabled as Realtek RTL8152 USB provides Ethernet */ > +ðmac { > + status = "disabled"; > + phy-mode = "rmii"; > + phy-handle = <&internal_phy>; I think you can remove these 2 lines > +}; > + > +&internal_phy { > + pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; > + pinctrl-names = "default"; Simply add : status = "disabled"; > +}; > + > +&ir { > + linux,rc-map-name = "rc-wetek-play2"; > +}; > + > +/* This is connected to the Bluetooth module: */ > +&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"; > + enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; > + max-speed = <2000000>; > + clocks = <&wifi32k>; > + clock-names = "lpo"; > + }; > +}; > Otherwise looks good Neil