From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1FA1C433EC for ; Sat, 18 Jul 2020 09:44:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2AFA20691 for ; Sat, 18 Jul 2020 09:44:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AKLng7w7"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K9QT3C2F" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2AFA20691 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M1e1lI90YKd8F/BWVvLTJwJ2Yacgd+uxZQb/vbyUliA=; b=AKLng7w7LGziukohjJ0XwlA7z3 X3FHHYpcinpOpImzV+Oi2f2ZtfneNVeHSP052j2quF8E/nWUkILuzXJfrnShGIFUBYl5eTHcNr6Qp O6dakAscVRaxTnYYJMe5nFrvy6n7Z8KkgrSs+zJ803yn7ctG+0a5GMkC+eMVuZ1PJPboXuCp+7jFa M5EbcG4iX2/DNTybhwoDaBj1/zX1EBsxSq8Qy+Dn2wqK4EyS+P7WkMX7BkYQ46qb+PYGk72f8AvPq EWZlG2jjZBEd1J0axFM1lOb2dC0Lrx5pNYH2nMqjbhSZQ9km1520gK7u7AAC8F8YqIjQzcq1xh9sO sMoNp6+Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwjOA-0004un-VQ; Sat, 18 Jul 2020 09:44:15 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwjO4-0004sv-Pv; Sat, 18 Jul 2020 09:44:09 +0000 Received: by mail-wr1-x443.google.com with SMTP id f2so13440612wrp.7; Sat, 18 Jul 2020 02:44:08 -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=pJC59erINRP0bf+MfLFMFuLvKJR8XJ12i44RcGLpj2E=; b=K9QT3C2Fo0BAUMHNyX3U4ftKh4xnp1K2XduPyzDaECoO/WN3zucjokxEjQ74cXkE60 s61JsdHudGJFaD/IxOROlIJov5QJuxZwH4Zz/9zNBgpb4mexzQzSBZUxLIH+qVo9HGgb eg0+CEOWFF74Cj6KFiZ7gYPVc1ok1u2aG33K82gwBLIYjkho518oOXQEY7fgK5k+dbkO SooVdg9hTTmK4rYEm7Csrb0eerIIwmrfqkEnOzbUao94HOcf0Qq+yCP8qeKBFCQVRByY rVbCYEK628YdFtE1kBmT234CH+i4tg4whqPmwCZOn6BXxvnTaboa5ZYUuyzV8CZV0w8D GqrQ== 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=pJC59erINRP0bf+MfLFMFuLvKJR8XJ12i44RcGLpj2E=; b=qGTMp2qwXaXPMCos+reXEoRLFW8EyvQiTJptLT8O/aSChzXY7o5XAipxRKPqyEbzIT G7alpXD6+A13LI2bUC/+1DtHdnbRVAybR3DL+4xfK7CcCvqlCoMGVpJENDEszbIJnYuR B3J0c8qzKNoAjyqJBZBYWyGjPOal1+o/DCU7Q0iPr34/OCdSPxCS1ZAxP14BBz2+Os3b HV/NibGIpppuBuVrFkdVzmOITyvrPyxJgMUvgtRTXH4n/3v4TSK5Bz757w3/B7Y3GVC1 2O+rX18KL4sCI12lLL0xHiOm4MNZ1r04sXZV5FHABWxNq+TOWu80oK1Tsq3aA80G6I0v 53FQ== X-Gm-Message-State: AOAM532iJznrIdrE5mW9BK8qdjqONtsU/MhxrDyi1syATeUBd2lUZW9A aFYU74JAb6eLgEOtEpSije0= X-Google-Smtp-Source: ABdhPJwpyc2BrlitG3628ecIb+6jNMA6OCTk8cqDcXSd/35mA/hDehcbPn/lMSDSvPbhB1SVauU1mA== X-Received: by 2002:a5d:420e:: with SMTP id n14mr14909876wrq.164.1595065447652; Sat, 18 Jul 2020 02:44:07 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id v11sm16764554wmb.3.2020.07.18.02.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 02:44:07 -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 Subject: [PATCH v2 2/2] arm64: dts: meson: add support for the WeTek Core 2 Date: Sat, 18 Jul 2020 09:44:00 +0000 Message-Id: <20200718094400.1185-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200718094400.1185-1-christianshewitt@gmail.com> References: <20200718094400.1185-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_054408_867514_F99D556C X-CRM114-Status: GOOD ( 17.39 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christian Hewitt MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.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..b81f90015bd0 --- /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"; + enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + }; +}; -- 2.17.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic