From patchwork Thu May 25 19:26:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9749035 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 5E85D60209 for ; Thu, 25 May 2017 19:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C650283BA for ; Thu, 25 May 2017 19:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4134E283BE; Thu, 25 May 2017 19:27:21 +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 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 B2A24283BA for ; Thu, 25 May 2017 19:27:20 +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=h/JPIxjf/kFgj6LeEZ0bjj2xNEHnX0av5r76wFcH8Os=; b=Yv6 +fT/mssqDRGuBGEGMM6RtjQjshQiP+9KbfPXdOSxjQvyqngQ/JWhmDp56UEz34EmHXAkpjgOGpYgS rM/nSdcHs/omdvTwgvOvX/krMJn3sYe40khMXIiTyjVPfGwhGSdoXIVXjJzQnbyAVvixCp0640jfc nPVQBrsfE7MTivbPVlQtc1igj0mvrmt+nVJ5+58l55yqm95dE7/6GiEIQ9KGvdv+HDeefrLpRIepc NaQcyfYkVk/zbq6h/pPJLtpnIfES3pt19bVViOyHBd5AMnpnq3VNcfFxBoox1bG6zWXouj8Ui9603 t1wyIhy84afHHbKoNqNtV0F4Y11A3zA==; 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 1dDyPm-0000Jp-JF; Thu, 25 May 2017 19:27:18 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDyPj-0000Hh-2v for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2017 19:27:17 +0000 Received: by mail-pf0-x244.google.com with SMTP id w69so41050900pfk.1 for ; Thu, 25 May 2017 12:26:54 -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=8X24T4cOSUIS4LHSxjPX5sqAdA7DY4s0l/dRvvxgG/A=; b=kzhmz5oC9qAGvqnQsjZbacBtxnp4JPE9rhXpnBugreZcKY1qWOidJrZkFXaOkj1cde 9JJPkBO8utpVVTqswjdjwBylEsBUk29hj6WTP3pTFALNzeE5gig66qfeg0sIUcxNRXhp R+CBTJCwVD6ulHKj3/oefGsOtCC0G6/tYXlESqJ/9LFUBY3PFkESWWgpkSg3AQxI4Zs5 ZqBywtasIWMa+fRgMnmm92ci1ZBJ/zdro3WYLopo+Ie94Xci+uNdW37qoA3IjZv1eFJ1 dO1v6x2Q8t9E2ZLVpA/DBt36ccBvnxkZFdiu6aUIqNgS+D7K74KWA9jwEWS82aJzdZ7+ k1bw== 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=8X24T4cOSUIS4LHSxjPX5sqAdA7DY4s0l/dRvvxgG/A=; b=tL6bgdCz2++nkkNhNjrO7sI9VoegkMQVJDNl0TkeDOwGNMXhBpORjfLqSnwyyDSLq/ 8gvXl3KIVwf662i1pHDGC+WawHUn+XRigl8bxkz3hD2Q8AuAbQtBFhxk9ErnC2GhP1+V zzUedyIfo7Qw/ZzMmhDfaDmKaTAw8konQxfrOg32jiicWoRFEgE4YXbzEYYtPkUBnLLT W9NDhbAQV7YNH3BxLtE/ugOHOT3/SyqlOp46z8ZIysIoiEUYhBtphHSylyntePYQ0DJQ j2xmty/closVCJ/T/kKS2tA3z1v1mEeG3fXsOj3UlCrD9Dr5jtyNlCA+MiCvTSfMH1tK CLpw== X-Gm-Message-State: AODbwcAcKRjkL3vu9GDV/3jq828LznNlDVc4xnyCJERTQot0Cq7Wwnbn TfVI72hUZNOwwQ== X-Received: by 10.99.143.74 with SMTP id r10mr11009468pgn.57.1495740414015; Thu, 25 May 2017 12:26:54 -0700 (PDT) Received: from localhost.localdomain ([117.254.77.186]) by smtp.gmail.com with ESMTPSA id d123sm13609722pga.61.2017.05.25.12.26.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 12:26:52 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH 1/3] arm64: allwinner: a64: Add initial Orangepi Win/WinPlus support Date: Fri, 26 May 2017 00:56:20 +0530 Message-Id: <1495740382-9061-1-git-send-email-jteki@openedev.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-20170525_122715_161933_1B3E540E X-CRM114-Status: GOOD ( 18.02 ) 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: Mark Rutland , devicetree@vger.kernel.org, Catalin Marinas , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org 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: Jagan Teki Orangepi Win/WinPlus is an open-source single-board computer using the Allwinner A64 SOC. A64 Orangepi Win/WinPlus has - A64 Quad-core Cortex-A53 64bit - 1GB(Win)/2GB(Win Plus) DDR3 SDRAM - Debug TTL UART - Four USB 2.0 - HDMI - LCD - Audio and MIC - Wifi + BT - IR receiver - 5V DC power supply http://www.orangepi.org/OrangePiWin_WinPlus/ Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 102 +++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 244e8b7..4120ce9 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -1,5 +1,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb always := $(dtb-y) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts new file mode 100644 index 0000000..b16e606 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2017 Jagan Teki + * + * 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 library 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 library 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 "sun50i-a64.dtsi" + +#include + +/ { + model = "OrangePi Win/Win Plus"; + compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + soc { + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_vcc3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +};