From patchwork Tue Apr 24 12:07:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 903386 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 40VhtZ1V31z9ry1 for ; Tue, 24 Apr 2018 22:08:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DFCCAC21E50; Tue, 24 Apr 2018 12:07:54 +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=none 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 38233C21E89; Tue, 24 Apr 2018 12:07:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CF7D4C21E2C; Tue, 24 Apr 2018 12:07: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 C32E0C21E12 for ; Tue, 24 Apr 2018 12:07:29 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id 837245FD06; Tue, 24 Apr 2018 20:07:24 +0800 (CST) From: Chen-Yu Tsai To: Jagan Teki , Maxime Ripard , u-boot@lists.denx.de Date: Tue, 24 Apr 2018 20:07:12 +0800 Message-Id: <20180424120713.27858-5-wens@csie.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424120713.27858-1-wens@csie.org> References: <20180424120713.27858-1-wens@csie.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 4/5] sunxi: Add Libre Computer Board ALL-H3-CC H5 ver. 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" This patch adds a device tree file for the H5 version of the Libre Computer Board ALL-H3-CC. It is the same board first introduced in commit afe27544125e ("sunxi: Add support for Libre Computer Board ALL-H3-CC H3 ver."), with the H3 SoC replaced with the H5 SoC, and has 4Gb DDR3 chips instead of 2Gb ones. The device tree utilizes the common board design file for ALL-H3-CC, providing just the model strings and SoC specifics. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- arch/arm/dts/Makefile | 1 + ...tech-all-h3-cc.dts => sun50i-h5-libretech-all-h3-cc.dts} | 6 +++--- board/sunxi/MAINTAINERS | 1 + ...ngepi_one_defconfig => libretech_all_h3_cc_h5_defconfig} | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) copy arch/arm/dts/{sun8i-h2-plus-libretech-all-h3-cc.dts => sun50i-h5-libretech-all-h3-cc.dts} (53%) copy configs/{orangepi_one_defconfig => libretech_all_h3_cc_h5_defconfig} (80%) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 21e7bc1472aa..482ece6112f2 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -371,6 +371,7 @@ dtb-$(CONFIG_MACH_SUN8I_R40) += \ dtb-$(CONFIG_MACH_SUN8I_V3S) += \ sun8i-v3s-licheepi-zero.dtb dtb-$(CONFIG_MACH_SUN50I_H5) += \ + sun50i-h5-libretech-all-h3-cc.dtb \ sun50i-h5-nanopi-neo2.dtb \ sun50i-h5-nanopi-neo-plus2.dtb \ sun50i-h5-orangepi-pc2.dtb \ diff --git a/arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts similarity index 53% copy from arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts copy to arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts index 2e7e13ab7eec..6c84d575e366 100644 --- a/arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts +++ b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts @@ -4,10 +4,10 @@ */ /dts-v1/; -#include "sun8i-h3.dtsi" +#include "sun50i-h5.dtsi" #include "sunxi-hx-libretech-all-h3-cc.dtsi" / { - model = "Libre Computer Board ALL-H3-CC H2+"; - compatible = "libretech,all-h3-cc-h2-plus", "allwinner,sun8i-h2-plus"; + model = "Libre Computer Board ALL-H3-CC H5"; + compatible = "libretech,all-h3-cc-h5", "allwinner,sun50i-h5"; }; diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index 4c21a2fedfe8..ba36a09f5027 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -271,6 +271,7 @@ M: Chen-Yu Tsai S: Maintained F: configs/libretech_all_h3_cc_h2_plus_defconfig F: configs/libretech_all_h3_cc_h3_defconfig +F: configs/libretech_all_h3_cc_h5_defconfig NANOPI-M1 BOARD M: Mylène Josserand diff --git a/configs/orangepi_one_defconfig b/configs/libretech_all_h3_cc_h5_defconfig similarity index 80% copy from configs/orangepi_one_defconfig copy to configs/libretech_all_h3_cc_h5_defconfig index 23f4973e5bab..061bddc8fd5e 100644 --- a/configs/orangepi_one_defconfig +++ b/configs/libretech_all_h3_cc_h5_defconfig @@ -1,11 +1,11 @@ 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 -CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-one" +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-cc" # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set # CONFIG_CMD_FLASH is not set # CONFIG_SPL_DOS_PARTITION is not set