From patchwork Thu May 25 19:26:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9749037 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 39C8460209 for ; Thu, 25 May 2017 19:27:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27178283BB for ; Thu, 25 May 2017 19:27:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AFBA283BF; Thu, 25 May 2017 19:27:36 +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=ham 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 8B5BF283BB for ; Thu, 25 May 2017 19:27:35 +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=dfabf23QgXM1qIKKRpVv8XrAlg6s0sISy/scvy1YKks=; b=t6i3IRio63pxm1Qc+mPxQXYRiP qz4Ycg5xxJI79xjwWUu/k9yy+66EH9jGrrOWH+Cj18Pk9bM/QtH3I6DsmGmfxPkE882Qi1OqUH9j/ dUqtnwGqLkMqn0p40SMBZfatpx/W19qyHCkcUXp0mXEwPnug0XgCA5cHBz5L2WZVdBcc679it253B mLC11YalCSiuv1YyPIlqfDP5eALoY2C2YVlnx2sAdYVL7y/Lx4tHiqg/5+dGTY49TOpUSUBLBj5EG 0tqOr3WnwFcK+3EEeR5prAPQVvN2eq4x2oOMOdCMJwmJr0AtoTl3PWi1F1tS75VUXDajHDI30ClvR vCyk+4fg==; 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 1dDyQ2-0000bS-9q; Thu, 25 May 2017 19:27:34 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDyPo-0000I0-4N for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2017 19:27:23 +0000 Received: by mail-pf0-x242.google.com with SMTP id u26so41060354pfd.2 for ; Thu, 25 May 2017 12:26:59 -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=EoXfVRhhJ5WNxkQDCsSvWaBOlLuKMhWyHtrOjOnjqRI=; b=ZcAjcW1DkJziHDeBjf0widHbnYFSEEC94aspREDJXV/nx40qfUfv4Y8pb6bHWFEQCD A+Nc1ceBI2/pHm9q/tt8F50gdIj4cmuQmyG+Gpu3MjiOLByd/jHfLcwjauAR/lBOzaag Nx4e6qSljNW/5i6B6Sojcln01MgiXtfzMQPHepL4jxg5E6c3ViRUNTKi8mhNl0q2I08p 9FRpsdGMCo17fg4b5SVcG/CQSFXtIFozxH1gIYTFjvOhXnZYlJSvnSiSPLm/6FVMyZ2S lKg+rgC7xIKqfydKJ1/twMWYt40jl0iuKKDOu2TZth6gtYAbPe6BlgoiV1XkNepxVH8s MJZg== 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=EoXfVRhhJ5WNxkQDCsSvWaBOlLuKMhWyHtrOjOnjqRI=; b=H4bof3FHq832XPYZhtqTTwff/ELC5EhUVQuP+nzhs9Gn/WUMYwfCZ0Gub93J9NwZiF KooT/VTdEvLDGZywrSdi9p/ep+FwpmxRq0B9FJdnXC9xh6IvlyCcgQvwo5n5C3TnpK2q aTgaOjTbZDykJwutU6w53b7tq3NG5B245Z6+ZlwOH0GLfeRocL3vCtJcYj7xJBzZw+JO Eg4tYl6rJqsy2wFSEAv+Qb+fxVnpGhJecgcAOlBqu5H1k0uEuCX0bo7S31B0oL+ErPbI zWXknwq1MMJs4pKipFugJXWCAkp42XbGCeJ1WsUmiDnwfuYjYaIMTHaNAnpsKChBJitV tkWQ== X-Gm-Message-State: AODbwcCEHGy2LFBrD6g5MDC1tYaJfv5u7vNbfCJfWTVxw46jWSNYbkZ4 enMI8LVMLFLVBg== X-Received: by 10.98.17.86 with SMTP id z83mr38754013pfi.212.1495740418838; Thu, 25 May 2017 12:26:58 -0700 (PDT) Received: from localhost.localdomain ([117.254.77.186]) by smtp.gmail.com with ESMTPSA id d123sm13609722pga.61.2017.05.25.12.26.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 12:26:57 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH 2/3] arm64: allwinner: h5: Add initial Orangepi Prime support Date: Fri, 26 May 2017 00:56:21 +0530 Message-Id: <1495740382-9061-2-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495740382-9061-1-git-send-email-jteki@openedev.com> References: <1495740382-9061-1-git-send-email-jteki@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170525_122720_315552_191F0C7E X-CRM114-Status: GOOD ( 18.33 ) 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 Prime is an open-source single-board computer using the Allwinner h5 SOC. H5 Orangepi Prime has - Quad-core Cortex-A53 - 2GB DDR3 - Debug TTL UART - 1000M/100M Ethernet RJ45 - Three USB 2.0 - HDMI - Audio and MIC - Wifi + BT - IR receiver - HDMI - Wifi + BT http://www.orangepi.org/OrangePiPrime/ Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-h5-orangepi-prime.dts | 100 +++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 4120ce9..bf7d3fe 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -2,6 +2,7 @@ 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 +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts new file mode 100644 index 0000000..9e98aac --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts @@ -0,0 +1,100 @@ +/* + * 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-h5.dtsi" + +#include + +/ { + model = "OrangePi Prime"; + compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + reg = <0x40000000 0x80000000>; + }; + + 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_a>, <&mmc0_cd_pin>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +};