From patchwork Sat Apr 28 05:36:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 906037 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 40Y0232s5bz9s06 for ; Sat, 28 Apr 2018 15:37:47 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0EFB2C21FB7; Sat, 28 Apr 2018 05:36:52 +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 72FC4C2202A; Sat, 28 Apr 2018 05:36:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 03675C21E7E; Sat, 28 Apr 2018 05:36:11 +0000 (UTC) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by lists.denx.de (Postfix) with ESMTPS id 33647C21E9F for ; Sat, 28 Apr 2018 05:36:11 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id 18BCA5FCF2; Sat, 28 Apr 2018 13:36:06 +0800 (CST) From: Chen-Yu Tsai To: Jagan Teki , Maxime Ripard , u-boot@lists.denx.de Date: Sat, 28 Apr 2018 13:36:02 +0800 Message-Id: <20180428053604.5572-4-wens@csie.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180428053604.5572-1-wens@csie.org> References: <20180428053604.5572-1-wens@csie.org> Subject: [U-Boot] [PATCH v2 3/5] sunxi: Add Libre Computer Board ALL-H3-CC H2+ 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch adds a device tree file for the H2+ 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 H2+ SoC, and has only two 2Gb DDR3 chips instead of four. 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 + arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts | 13 +++++++++++++ board/sunxi/MAINTAINERS | 3 ++- ...config => libretech_all_h3_cc_h2_plus_defconfig} | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts copy configs/{orangepi_one_defconfig => libretech_all_h3_cc_h2_plus_defconfig} (85%) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index ac7667b1e805..21e7bc1472aa 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -351,6 +351,7 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \ sun8i-a83t-cubietruck-plus.dtb \ sun8i-a83t-tbs-a711.dts dtb-$(CONFIG_MACH_SUN8I_H3) += \ + sun8i-h2-plus-libretech-all-h3-cc.dtb \ sun8i-h2-plus-orangepi-zero.dtb \ sun8i-h3-bananapi-m2-plus.dtb \ sun8i-h3-libretech-all-h3-cc.dtb \ diff --git a/arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts b/arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts new file mode 100644 index 000000000000..4db0d4bb65eb --- /dev/null +++ b/arch/arm/dts/sun8i-h2-plus-libretech-all-h3-cc.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2018 Chen-Yu Tsai + */ + +/dts-v1/; +#include "sun8i-h3.dtsi" +#include "sunxi-libretech-all-h3-cc.dtsi" + +/ { + model = "Libre Computer Board ALL-H3-CC H2+"; + compatible = "libretech,all-h3-cc-h2-plus", "allwinner,sun8i-h2-plus"; +}; diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index 6dd48c026516..4c21a2fedfe8 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -266,9 +266,10 @@ M: Siarhei Siamashka S: Maintained F: configs/MSI_Primo81_defconfig -LIBRETECH ALL-H3-CC H3 BOARD +LIBRETECH ALL-H3-CC BOARDS M: Chen-Yu Tsai S: Maintained +F: configs/libretech_all_h3_cc_h2_plus_defconfig F: configs/libretech_all_h3_cc_h3_defconfig NANOPI-M1 BOARD diff --git a/configs/orangepi_one_defconfig b/configs/libretech_all_h3_cc_h2_plus_defconfig similarity index 85% copy from configs/orangepi_one_defconfig copy to configs/libretech_all_h3_cc_h2_plus_defconfig index 23f4973e5bab..0cbcd48aadb8 100644 --- a/configs/orangepi_one_defconfig +++ b/configs/libretech_all_h3_cc_h2_plus_defconfig @@ -5,7 +5,7 @@ CONFIG_MACH_SUN8I_H3=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="sun8i-h2-plus-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