From patchwork Wed Aug 2 23:25:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 9877903 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 611906035F for ; Wed, 2 Aug 2017 23:25:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 534452883C for ; Wed, 2 Aug 2017 23:25:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47F7B2883E; Wed, 2 Aug 2017 23:25:45 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 25E282883C for ; Wed, 2 Aug 2017 23:25:44 +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: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:In-Reply-To: References:List-Owner; bh=EDVaJcwisTZRdTHqtpemd41CO9Kw9JniUldJCdydU3g=; b=ift 5efh3hCEnYxOYe5thgI/2YtLhRfPcIrILTGfJiCO7ovmSZCxt4z7sgTClLPwtV3cHcoXHMY8FoCBE yYboV13uhVrGu1+zpfZhKpxVJLfUCYD2QktZAeb6ya4a6rtKEdHj8u3P+jIiytJ2ookIt7hzN9zyu iEk5eev6RkzE1uj4q6pv24xV2F6dckqPDml77DEsd63aEC4FAYoF+8QpQMCSXo1e4XbrIayyj6gL/ onAX9fwJhGjKLdO7EZC4Rxm0CRx3g8CF2Y41PVvuBQgVaqeFuO1TDvqStzOPkrupGvIAFd7BP5cfS tj5V9c7zb1O8ltM6rmHl4vtRub1ZmzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dd31G-0003CV-Lf; Wed, 02 Aug 2017 23:25:38 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dd31D-0003AP-DO for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2017 23:25:37 +0000 Received: by mail-wr0-x242.google.com with SMTP id y43so369319wrd.0 for ; Wed, 02 Aug 2017 16:25:14 -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; bh=sH7WABFBM+bxSwzZxZrwU+Y2e4zUoOrihmvWa2X6Z5Q=; b=u7zagdCwrnCIMcZ0f53iVe61jyj3AZT/CAHEWPV9LYs7sO+iGbVg//rC6KUn7538np bA+at/gsAVWHwoOHFi/m48uUNpkkt3sZahDYkQojzLy6jgmLmMAbRSjc5uHiol9cGbQp prCnT5ZBX8+zw9ImETBIYYNI6YSxQgapZPPem/HDUl8TLlrG5vo/bq79vq9r/h71flNX r145OD7I6/jbyL3sg71+Oie7OvVGlgwLP7frRghPugjgW0xxf/xIiDpP8d+dt1lw9HT3 rkPP2I8Gw2xHI7Hpj7Q/zn6vk5p50e6fExf5q/CmUBaQrHVGUA33/J4WjtLEN+4pbKw/ OrSg== 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; bh=sH7WABFBM+bxSwzZxZrwU+Y2e4zUoOrihmvWa2X6Z5Q=; b=eaWOa9u30wN/btJP1ecZBMW8L0ofSTtrBCPL5Hx3ADkcSxkyRShFRdJEYwBgGRtNL9 xGQ3/AR6gn0AFaZJvXYygLVSEQ1TniH+WDtTi8W34bW1VmX57InPUGmeCq5nGzXaJRJ/ kFBkMYf2Muq6gxAfyc3L6/lPX/aSAHzLMtRbbHNgxcBvAr6PI/lGPM9x9pNujZXvPrMD x9XQBlHUwvNwRMkUQiN1tHLIFmrxFAoZiU6R+VjsbkX8MEulXdQONsBpmeZzO1xJ7JPx vYgQBC/WClJhf4wsioYN+g9vXE7zgaG4obbQ/TDM+syjqOtIV4H+ypspmgU1PXIQcREL xcQA== X-Gm-Message-State: AIVw112vqFnhO2aUeLM7Sh8XTMPxfIt2TU4/evMEPO6zrRh37rgIKGFC UU8xuDEX/iFonA== X-Received: by 10.223.147.197 with SMTP id 63mr1020130wrp.90.1501716312984; Wed, 02 Aug 2017 16:25:12 -0700 (PDT) Received: from philipp-K52Jr.fritz.box (p5B3DD0C2.dip0.t-ipconnect.de. [91.61.208.194]) by smtp.gmail.com with ESMTPSA id g26sm429868wrb.21.2017.08.02.16.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 16:25:11 -0700 (PDT) From: Philipp Rossak X-Google-Original-From: Philipp Rossak < embed3d@gmail.com > To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] This patch adds support for Sinovoip BPI-M3 A83T based board. Date: Thu, 3 Aug 2017 01:25:02 +0200 Message-Id: <1501716302-1009-1-git-send-email-embed3d@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170802_162535_646678_38B383A0 X-CRM114-Status: GOOD ( 17.93 ) 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: linux-sunxi@googlegroups.com, Vishnu Patekar , Philipp Rossak 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 From: Philipp Rossak It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar This Patch got somehow lost. This is a resubmit! The original patch could be found here: https://patchwork.ozlabs.org/patch/598497/ Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-a83t-sinovoip-bpi-m3.dts | 65 ++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-a83t-sinovoip-bpi-m3.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4b17f35..24cd10e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -904,6 +904,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-a33-sinlinx-sina33.dtb \ sun8i-a83t-allwinner-h8homlet-v2.dtb \ sun8i-a83t-cubietruck-plus.dtb \ + sun8i-a83t-sinovoip-bpi-m3.dtb \ sun8i-h2-plus-orangepi-zero.dtb \ sun8i-h3-bananapi-m2-plus.dtb \ sun8i-h3-beelink-x2.dtb \ diff --git a/arch/arm/boot/dts/sun8i-a83t-sinovoip-bpi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-sinovoip-bpi-m3.dts new file mode 100644 index 0000000..3c8a261 --- /dev/null +++ b/arch/arm/boot/dts/sun8i-a83t-sinovoip-bpi-m3.dts @@ -0,0 +1,65 @@ +/* + * Copyright 2016 Vishnu Patekar + * Vishnu Patekar + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun8i-a83t.dtsi" +#include "sunxi-common-regulators.dtsi" + +/ { + model = "Sinovoip BananaPi M3 v1.2"; + compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +};