From patchwork Tue May 30 17:41:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 768733 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wcgs02BzYz9s7F for ; Wed, 31 May 2017 03:41:40 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E6586C21C70; Tue, 30 May 2017 17:41:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B9CB3C21C3C; Tue, 30 May 2017 17:41:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8D14FC21C3C; Tue, 30 May 2017 17:41:32 +0000 (UTC) Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by lists.denx.de (Postfix) with ESMTPS id F016BC21C32 for ; Tue, 30 May 2017 17:41:31 +0000 (UTC) Received: by mail-qt0-f193.google.com with SMTP id a46so13213205qte.0 for ; Tue, 30 May 2017 10:41:31 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=duMkx+BeIkbcWSLsb+TJDDpRmeuSfWp5SKAuGtOMAtc=; b=LxxZwjnC0uFIfLSZvNDh0SvIs6TygC5VtvXON7chcbHpeuMADQ9Lb3X+5CoK2YFif6 Io7npFExMzwPOqakbdDLJDn47hWJZok+Er9k7Q96+bYL2vSbvJRhstQ1Z9Q7r2rr1++K Gef9H2pGQyPoMxn4f1OynQpcOo8HidouQIXhnKY1rl51m71IZ0nBHldbLSz2ES299D/Y sUZFGEsvI3/U4wrM4y2gZMdwQnVTq96rKP6drBsuRDYUPj8Lm3+f8Lp0x/7jshzjyR68 Sizrnl9uDtPNpABywa39+U6KQ8QnhZCHje0PntEvIoLMFliFmNOky7qO6+wyahm4Hv/c KGBw== X-Gm-Message-State: AODbwcBGal8U7fm1pEWJO3XbVbgfR5OEVycTdb+TrfVmBgSH1mkDET4h iOMDHbXDZyIwcg== X-Received: by 10.200.49.100 with SMTP id h33mr27195139qtb.52.1496166090994; Tue, 30 May 2017 10:41:30 -0700 (PDT) Received: from localhost.localdomain (micene.amarulasolutions.com. [138.201.192.134]) by smtp.gmail.com with ESMTPSA id x31sm8910967qtx.12.2017.05.30.10.41.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 May 2017 10:41:29 -0700 (PDT) From: Jagan Teki To: Maxime Ripard Date: Tue, 30 May 2017 17:41:14 +0000 Message-Id: <1496166075-6542-1-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Cc: u-boot@lists.denx.de, linux-sunxi@googlegroups.com Subject: [U-Boot] [PATCH 1/2] sun8i: h3: Add initial NanoPi M1 Plus support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jagan Teki NanoPi M1 Plus is designed and developed by FriendlyElec for professionals, enterprise users, makers and hobbyists using the Allwinner H3 SOC. NanoPi M1 Plus key features - Allwinner H3, Quad-core Cortex-A7@1.2GHz - 1GB DDR3 RAM - 8GB eMMC - microSD slot - 10/100/1000M Ethernet - Serial Debug Port - 5V 2A DC power-supply Signed-off-by: Jagan Teki Tested-by: Jagan Teki --- Note: Need to add mmc node for eMMC, will add it on next version once tested arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts | 64 ++++++++++++++++++++++++++++++++ board/sunxi/MAINTAINERS | 5 +++ configs/nanopi_m1_plus_defconfig | 18 +++++++++ 4 files changed, 88 insertions(+) create mode 100644 arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts create mode 100644 configs/nanopi_m1_plus_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index eaf9ada..bf16563 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -309,6 +309,7 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \ sun8i-h3-orangepi-plus.dtb \ sun8i-h3-orangepi-plus2e.dtb \ sun8i-h3-nanopi-m1.dtb \ + sun8i-h3-nanopi-m1-plus.dtb \ sun8i-h3-nanopi-neo.dtb \ sun8i-h3-nanopi-neo-air.dtb dtb-$(CONFIG_MACH_SUN8I_R40) += \ diff --git a/arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts new file mode 100644 index 0000000..8ddd1b2 --- /dev/null +++ b/arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts @@ -0,0 +1,64 @@ +/* + * 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 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. + */ + +#include "sun8i-h3-nanopi.dtsi" + +/ { + model = "FriendlyArm NanoPi M1 Plus"; + compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3"; +}; + +&ehci1 { + status = "okay"; +}; + +&ehci2 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index 010e87c..531e6e0 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -252,6 +252,11 @@ M: Mylène Josserand S: Maintained F: configs/nanopi_m1_defconfig +NANOPI-M1 PLUS BOARD +M: Jagan Teki +S: Maintained +F: configs/nanopi_m1_plus_defconfig + NANOPI-NEO BOARD M: Jelle van der Waa S: Maintained diff --git a/configs/nanopi_m1_plus_defconfig b/configs/nanopi_m1_plus_defconfig new file mode 100644 index 0000000..d7a908d --- /dev/null +++ b/configs/nanopi_m1_plus_defconfig @@ -0,0 +1,18 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUN8I_H3=y +CONFIG_DRAM_CLK=408 +CONFIG_DRAM_ZQ=3881979 +CONFIG_DRAM_ODT_EN=y +CONFIG_MMC0_CD_PIN="PH13" +CONFIG_MMC_SUNXI_SLOT_EXTRA=2 +CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-nanopi-m1-plus" +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +CONFIG_SPL=y +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_FPGA is not set +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_SPL_ISO_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_USB_EHCI_HCD=y