From patchwork Fri Jan 25 10:38:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 1030952 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=csie.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43mFqn3L8Bz9s4s for ; Fri, 25 Jan 2019 21:38:40 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C5D35C21E36; Fri, 25 Jan 2019 10:38:34 +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_BLOCKED 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 113B7C21D56; Fri, 25 Jan 2019 10:38:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DFDCDC21D83; Fri, 25 Jan 2019 10:38:30 +0000 (UTC) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by lists.denx.de (Postfix) with ESMTPS id 1B69AC21D74 for ; Fri, 25 Jan 2019 10:38:30 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id A0F625FD57; Fri, 25 Jan 2019 18:38:25 +0800 (CST) From: Chen-Yu Tsai To: u-boot@lists.denx.de Date: Fri, 25 Jan 2019 18:38:24 +0800 Message-Id: <20190125103824.9803-4-wens@csie.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190125103824.9803-1-wens@csie.org> References: <20190125103824.9803-1-wens@csie.org> MIME-Version: 1.0 Cc: Maxime Ripard , Hans de Goede , Maxime Ripard , Jagan Teki , Icenowy Zheng Subject: [U-Boot] [PATCH 3/3] sunxi: Add Bananapi M2+ H5 board 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" As the H5 is pin compatible with the H3, vendors tend to upgrade their existing H3 products with an H5 SoC swap. This is the case with the Bananapi M2+ H5. Add the following to support it: - device tree file: synced from Linux v5.0-rc1, - defconfig: copy of bananapi_m2_plus_h3_defconfig with only SoC family and default device tree file name changed - MAINTAINERS entry Signed-off-by: Chen-Yu Tsai --- arch/arm/dts/sun50i-h5-bananapi-m2-plus.dts | 11 +++++++++++ board/sunxi/MAINTAINERS | 3 ++- ...lus_h3_defconfig => bananapi_m2_plus_h5_defconfig} | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 arch/arm/dts/sun50i-h5-bananapi-m2-plus.dts copy configs/{bananapi_m2_plus_h3_defconfig => bananapi_m2_plus_h5_defconfig} (85%) diff --git a/arch/arm/dts/sun50i-h5-bananapi-m2-plus.dts b/arch/arm/dts/sun50i-h5-bananapi-m2-plus.dts new file mode 100644 index 000000000000..350376748389 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-bananapi-m2-plus.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2018 Chen-Yu Tsai + +/dts-v1/; +#include "sun50i-h5.dtsi" +#include + +/ { + model = "Banana Pi BPI-M2-Plus H5"; + compatible = "sinovoip,bpi-m2-plus", "allwinner,sun50i-h5"; +}; diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index f420c92e8c92..b6d5c94a7c7a 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -137,11 +137,12 @@ M: Jagan Teki S: Maintained F: configs/bananapi_m2_berry_defconfig -BANANAPI M2 PLUS H3 BOARD +BANANAPI M2 PLUS BOARDS M: Icenowy Zheng M: Chen-Yu Tsai S: Maintained F: configs/bananapi_m2_plus_h3_defconfig +F: configs/bananapi_m2_plus_h5_defconfig F: configs/Sinovoip_BPI_M2_Plus_defconfig BANANAPI M2 ULTRA BOARD diff --git a/configs/bananapi_m2_plus_h3_defconfig b/configs/bananapi_m2_plus_h5_defconfig similarity index 85% copy from configs/bananapi_m2_plus_h3_defconfig copy to configs/bananapi_m2_plus_h5_defconfig index c2025ee0a499..e7c10dbdf2d0 100644 --- a/configs/bananapi_m2_plus_h3_defconfig +++ b/configs/bananapi_m2_plus_h5_defconfig @@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_SUNXI=y CONFIG_SPL=y -CONFIG_MACH_SUN8I_H3=y +CONFIG_MACH_SUN50I_H5=y CONFIG_DRAM_CLK=672 CONFIG_DRAM_ZQ=3881979 CONFIG_DRAM_ODT_EN=y @@ -12,7 +12,7 @@ CONFIG_NR_DRAM_BANKS=1 # CONFIG_CMD_FLASH is not set # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set -CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-bananapi-m2-plus" +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-bananapi-m2-plus" CONFIG_SUN8I_EMAC=y CONFIG_USB_OHCI_HCD=y CONFIG_USB_EHCI_HCD=y