Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp720238ybh; Sat, 18 Jul 2020 19:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFAsqz7G8p+VWV4ivNE7HETHkmw/+2jZl0L36mz+UGu5H1cP+NdrPX/QE0NPQZ+qAeQLl8 X-Received: by 2002:a17:906:856:: with SMTP id f22mr14450179ejd.245.1595124954410; Sat, 18 Jul 2020 19:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595124954; cv=none; d=google.com; s=arc-20160816; b=Zd7R/kmhTXrv4WoPIYUsgSN4ybbk+0VaNo4ZKnQxFpDrLyBVs656oJuVW2DzxRH/QZ dhwmRnWil/L+V75cSSGpdDK88QhkS5OzQMZ9hGoXvo9+fMNXMBBtT/g9Lp5fKBX2m3lz /b9PCILH2EWhOMWoJX3bubYSqoaT8wpxgWYA3CG59SxdYQSXEgK/FUeCoPjvkr1M4GeA r9ws9D+ik++E+oX1lExf+4NtBLpR+WW+oN+2gA006AsIdMWcHd9n/stkWB4/6bkajvzh gYXKFc15d3/XoFaziB/r7tehNaKEnBWx8r8Yyr4McoedTf+ICW9CkJP1A+ePi2h+dEuy Xhsg== 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=f/k6s/5qmewnWjxFcMIM0b99O8FqXfAS6+WbVBOfeCk=; b=j9DxlqBR8UfErPd/c82OWfNhUQEwYTmpQwu8cVHo1pJXqmxOOjSKN+LILUC6eGNtd6 +5x9SWu8k4eRbcUIie92T4tOT+mMWc57J1qWzWqvJk3uySjU3xrEcwbbhTvPI/5GXTDP PUbtqpwpsZWHuFfVHHutX4mIHSD8oul5H71wRJlNj7J1Df21/pzYvjIlmn7fPpfpO7Ui SuDnSOHSAVth0tXETiWVzGMZWPFN8zfldk87UUvi6j20bY5YcdPycoIhJqFo+ynFif/V tAHombWnTxexJ8Rcwg3yPQapKQhtTcrSrZ32H3cBzceScSW+YxGtfVRQ8ggl0PZVH+9R 6AHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LkQRdQwv; 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 by7si7718743edb.303.2020.07.18.19.15.31; Sat, 18 Jul 2020 19:15:54 -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=LkQRdQwv; 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 S1726570AbgGSCOd (ORCPT + 99 others); Sat, 18 Jul 2020 22:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbgGSCOc (ORCPT ); Sat, 18 Jul 2020 22:14:32 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59EC5C0619D2; Sat, 18 Jul 2020 19:14:32 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id q15so19125215wmj.2; Sat, 18 Jul 2020 19:14:32 -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=f/k6s/5qmewnWjxFcMIM0b99O8FqXfAS6+WbVBOfeCk=; b=LkQRdQwv3EJoi5ixLnVE/NdpEUpdtSbCxrPSt5daGoTngAYR2Wa5889gudZ35stMMs 18HXMRAEIzEZ5mo+Ig81Ic4dS1TpdG5vYn9XML676JM7AbKWBAUWq8i5BR/UXCBp9ajA MUsDj/5zUlJNEzm+vwB8mEfHV+yuxN3nJVXJt5XZyKH+GaRffmsBBcxHOJNkDJgBB3Ui Ds4fijRUN8PcYkbKxZWBCjDy6ZV+1Gn1TdsMFYErwfZvdyy/tQaLOP97GXMb4B+fZ6Hy UillKr8pTSnsn0YLeHmnyc1D0QuGArQLaooOdFDvLWC+VgYi1xMM+v2pBbcfITUdAynV 8oPg== 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=f/k6s/5qmewnWjxFcMIM0b99O8FqXfAS6+WbVBOfeCk=; b=qurt/2TKXqcIw00ruZ38TxxdkW2LfRtpnT2XZ1A7sBrisLumiNYU1ehYwOmhQBrY8R P6gZzHVRNceXPxFELh4HWSjACBoLF+Fwn8i1hm3aa2Tz/mygRrWLo2TkU2T1NFk6gZu4 W4Nf4LTwXfhiFLTKb/7dr7RgIpkufd06agwDfXIksequMhghyDKMxtNgrx/VUkGC2OMy ux8YNjfH3wHGr4mYa2Oj26JuCc8LCesae1+kmbYImEFEGi6ciy8jMgfLJCr+WEdAHCnw c+bGATZ8rr8eQ+erBbuzdFSz4R+oasy7jJPOt3C1gLXD4qtCBvuE0feDyPjF9ZZI03Ma wFpg== X-Gm-Message-State: AOAM533qRMhqMIjZjThWc3pMJPZJ92djYq1Omz9YeVEu7Mkwu7SybiTJ K3WzhuI7clZ0yprRCVjPsDU= X-Received: by 2002:a1c:ba0b:: with SMTP id k11mr15199988wmf.140.1595124871096; Sat, 18 Jul 2020 19:14:31 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id v15sm22078103wmh.24.2020.07.18.19.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 19:14:30 -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 v3 2/2] arm64: dts: meson: add support for the WeTek Core 2 Date: Sun, 19 Jul 2020 02:14:21 +0000 Message-Id: <20200719021421.7959-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200719021421.7959-1-christianshewitt@gmail.com> References: <20200719021421.7959-1-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 87 +++++++++++++++++++ 2 files changed, 88 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..ec794c134c15 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-wetek-core2.dts @@ -0,0 +1,87 @@ +// 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>; + }; + }; +}; + +/* Disabled as Realtek RTL8152 USB provides Ethernet */ +ðmac { + status = "disabled"; +}; + +&internal_phy { + 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"; + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + }; +}; -- 2.17.1