From patchwork Sun Jun 24 18:28:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10484735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC3916019D for ; Sun, 24 Jun 2018 18:29:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 948F428796 for ; Sun, 24 Jun 2018 18:29:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87A17287BE; Sun, 24 Jun 2018 18:29:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C3B028796 for ; Sun, 24 Jun 2018 18:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=5XuqOXCMD2pvUeUxZqTFvOwcymrk8T3SQjlq7ePrXOQ=; b=JBXH0xcGkgvSZN/m6E4zWLpT6d RVAGEaz1YEoOOAeJz7h7ZKteOjhKtNdcztN9W/loVWJeQ0zGy8mXHrGWsettYABQUuS8CDTDym6ph skEhBYRaP+Z6Nl0uynPsH7z2T6EInwkRmsSUSgvUQv53IHkCDG/e3nZvvXVppkucLF+lBS3FYZoKJ zTv0NtUfSPYYCj6c1iHAkJHk5/4YvQluRCNF2ZSrgeK0d3+U8zLC0jTeTxbVno89sjQE8hwhujucV Hl4Kk8oW0okWPxd1bZi8yX7nzut+HDBnWlVmCgQQsDZls5zNOodJ2jO6bYV+LK94Z7OVnyqQngUiY adeTmlIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fX9ky-0001r3-9p; Sun, 24 Jun 2018 18:29:00 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fX9ko-0001mm-Oi; Sun, 24 Jun 2018 18:28:52 +0000 Received: by mail-wm0-x241.google.com with SMTP id p11-v6so7569494wmc.4; Sun, 24 Jun 2018 11:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OELjptdE1DWK2NjEkBmgOWFuTzCFgNN0biyuRB8HQ6g=; b=KksKBJ+sjVivMQe7U3v+kM45W8pY5XQNesPVB2QB3xB2dfRpYjJYO/0NXRnBVJHAhL Ke13EdH0QjuASEKGg4ZqwEPGhIFXgXVZgr/dQck8wRHEAacC44x/yh6t087EZhqAlRDL +vkQWkTzSRfQLJbd5yPMjlZNKpnPMJ6iBWLDnZOsVMXmf2dORc8kHpmA0v2Me7kwCbcB ufYig9fvyF71zwkS/6HKMQAR/HNwQZv/fGhGWNz02jbt96+xg9yt8nkHLb9cNyFTweQa DI6jsoybDRqlk1MfKZt6G0QjctPbKkKqIXqtyPDYQ2w74cneHXWdCsJolMTxc8tParCQ m9TA== 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=OELjptdE1DWK2NjEkBmgOWFuTzCFgNN0biyuRB8HQ6g=; b=R1XOS3Pl39Ihy97YdtiqS0URvjJYlYp+V80h8PLImhsCn/37ln2hvee5/GMUEj4v2Y 5znUFbCMPmKetNNOc9BQ0nfrmbltX22TrqPFlXuaoGewtI496ybM02wdN9WFY8HaRi75 QHkBvUzNFsuiC85GVD0pK9N5SDsMteiRzdA0LwUyeQJstNmL2nUtoieGw4f4AfIasUol qVV7hYR1r7grn1FuTpTK7ycwxjlvmx46TWzN8wYvguvbPhxnmfwE8K++B1qvB4/WPra2 zDiUtZQGEP1hgtXSySM9l3uzkx+MeX8Euq5sHQNr7cB2avvFNKpRrEPQg7y60pemiIAf 1A0w== X-Gm-Message-State: APt69E1iN1jYeSp1GtcoMIYd42hQRSHfiorHLQGwKV91SNzwxwLvidc7 RWjdIr9LAbPjDFjdqzIJDLN73JnQ X-Google-Smtp-Source: ADUXVKKZt3iu0hTv2vWvWCD7V+PKj1D7it0geTNsCZRGExujGm3+ppbUjZ7htLZ6rAA/Ttv+b33ROw== X-Received: by 2002:a1c:d681:: with SMTP id n123-v6mr6780363wmg.158.1529864924101; Sun, 24 Jun 2018 11:28:44 -0700 (PDT) Received: from blackbox.darklights.net (p5DE38BB3.dip0.t-ipconnect.de. [93.227.139.179]) by smtp.googlemail.com with ESMTPSA id u15-v6sm11416419wma.37.2018.06.24.11.28.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 11:28:43 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, carlo@caione.org, khilman@baylibre.com Subject: [RfC v1 5/5] ARM64: dts: meson-gxl: add support for the Oranth Tanix TX3 Mini Date: Sun, 24 Jun 2018 20:28:14 +0200 Message-Id: <20180624182814.31691-6-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624182814.31691-1-martin.blumenstingl@googlemail.com> References: <20180624182814.31691-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180624_112850_814408_4D180E98 X-CRM114-Status: GOOD ( 16.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , jbrunet@baylibre.com, yixun.lan@amlogic.com, linux-arm-kernel@lists.infradead.org, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Tanix TX3 Mini is a TV box based on the Amlogic S905W chipset. There are two variants: - 1 GiB or 2 GiB of DDR3 memory - 8 GB or 16 GB eMMC flash Both variants come with: - 802.11 b/g/n wifi (Silicon Valley Microelectronics SSV6051, does not support Bluetooth) - an LED 7 segment display with an FD628 controller - HDMI and AV (CVBS) output - 2x USB (utilizing both USB ports provided by the SoC) - micro SD card slot - serial console (uart_AO) has to be soldered after opening the case The board seems to be very similar to the P23x and Q20x reference boards, which is why it includes meson-gx-p23x-q20x.dtsi: - eMMC reset routed to BOOT_9 - the SDIO wifi chip's reset line is routed to GPIOX_6 and the reference clock is 32.768KHz on PWM_E - SD card detection is routed to CARD_6 - vqmmc of all MMC controllers is hard-wired to 1.8V (VDDIO_BOOT) - uart_AO can be accessed after opening the case and soldering RX, TX and GND lines onto the exposed solder points (marked with RX, TX and GND) Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-gxl-s905w-tx3-mini.dts | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 6de2e7f5a9cc..1b46affd376d 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -18,6 +18,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p231.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts new file mode 100644 index 000000000000..08aca8346b72 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 Martin Blumenstingl . + * Based on meson-gxl-s905d-p231.dts: + * - Copyright (c) 2016 Endless Computers, Inc. + * Author: Carlo Caione + */ + +/dts-v1/; + +#include "meson-gxl-s905w.dtsi" +#include "meson-gx-p23x-q20x.dtsi" + +/ { + compatible = "oranth,tx3-mini", "amlogic,s905w", "amlogic,meson-gxl"; + model = "Oranth Tanix TX3 Mini"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; /* 1 GiB or 2 GiB */ + }; +};