From patchwork Tue Apr 24 09:24:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 903333 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=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="WlnGDiKb"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40VdGB19L2z9rvt for ; Tue, 24 Apr 2018 19:25:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 51878C21E77; Tue, 24 Apr 2018 09:25:00 +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_MSPIKE_H2, T_DKIM_INVALID 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 F38B9C21DA1; Tue, 24 Apr 2018 09:24:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 600A7C21DA1; Tue, 24 Apr 2018 09:24:56 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id F3ECAC21C57 for ; Tue, 24 Apr 2018 09:24:55 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id d1-v6so48682505wrj.13 for ; Tue, 24 Apr 2018 02:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wmMxF+sF2f1p/7iv7PCOAlci4dwuPKpNW9f1ckjoFVA=; b=WlnGDiKbXrO0DqsyWq1XYnf7Epg5ctoUflwCg7aV+OZZoEw6U1VKPc01Ztw+q/Lcm5 /VQbwIlvTQieJ+F+2Qn8Kfe+5yb8rE7KQK1qQzqfFz4v2mHnco4k8UsXaztzIPEvWK+D mCz+F5/QJIKY431vhxvRvJ+fxM/T3kXjciZjVOSTVGiuDZodQV9Nhebtg08ztWpQAdkm 4MIThkN+RTJ7yJh3DY9jfFwOHuWAvT8YUHT+Uwsp3C1wULY2YKRggXbFSVFzbUrLPVc/ L9y4NM6opjvq/y3aSTuVqx45l5UIRF3w/FSETeoWDNVcRsySFW9ZDdt1ZxyaSqRB0GFp I6BA== 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; bh=wmMxF+sF2f1p/7iv7PCOAlci4dwuPKpNW9f1ckjoFVA=; b=EiQ8LkBcLstOxA3HjnqVkRu8uxpNAm7EQ6u/WY7cLs+f+ky51Ms2ecfc2Il39bRWk+ xMMpCd5TSNFJRBX6xHYYC1+KfWoypCStM9E/UUB+bkiKm+60jwbYbMjqb7N9jqzB1M82 iqoLRTGZlbogunckgk/k0wnf76Z2aTX92v6PIkgaP1fCY82/UmxUo0jFABJUPfa2wPIn bpvLKhesLKbEXnF1L0XksuBAIaGekzbMpqdH2y3InonuBdB5p4xEbQAbYa14+UdyV1pk oznukqMBLCjnM8UoniKND/xgpSFyI+PpU8f0LpQ3V20kqZHWihcMZfQiU/7GBnEpG310 E/fw== X-Gm-Message-State: ALQs6tB0uq2jkyXxbQhLQwpFh5+Njb9GFzaRj8aLCh8LqzKnxR9vNFZP mAo+/vJSzNIKa9W582gjk6ZTbl7dQfs= X-Google-Smtp-Source: AB8JxZqIt5cqQ91k1HGBeYlcRoL+I1P+X71HclfwssupfwxmjNm1RcUNlwxhwIWjkV2c1yle3lOOvg== X-Received: by 10.28.191.215 with SMTP id o84mr8710342wmi.157.1524561895165; Tue, 24 Apr 2018 02:24:55 -0700 (PDT) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id p128sm14610007wmd.45.2018.04.24.02.24.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Apr 2018 02:24:54 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Tue, 24 Apr 2018 11:24:51 +0200 Message-Id: <1524561891-2704-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 Cc: maxime.ripard@bootlin.com, clabbe@baylibre.com Subject: [U-Boot] [PATCH] sunxi: Add support for 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The Libre Computer Board ALL-H3-CC from Libre Technology is a Raspberry Pi B+ form factor single board computer based on the Allwinner H3 or H5 SoC. The board has 1GB DDR3 SDRAM, provided by 4 2Gb chips. The mounting holes and connectors are in the exact same position as on the Raspberry Pi B+. This patch adds defconfig and dts files for the H5 variant of the same board. The dts file simply includes the H3 variant since the board is the same. The defconfig is based on the H3 variant and adapted to build for the H5. This follows the corresponding Linux patchset at [1]. [1] http://lkml.kernel.org/r/1524561576-2201-1-git-send-email-narmstrong@baylibre.com Signed-off-by: Neil Armstrong --- arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts | 12 ++++++++++++ configs/libretech_all_h3_cc_h5_defconfig | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts create mode 100644 configs/libretech_all_h3_cc_h5_defconfig diff --git a/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts new file mode 100644 index 0000000..a72b0a3 --- /dev/null +++ b/arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2018 BayLibre, SAS + * Author: Neil Armstrong + */ + +#include "sun8i-h3-libretech-all-h3-cc.dts" + +/ { + model = "Libre Computer Board ALL-H3-CC H5"; + compatible = "libretech,all-h3-cc-h5", "allwinner,sun50i-h5"; +}; diff --git a/configs/libretech_all_h3_cc_h5_defconfig b/configs/libretech_all_h3_cc_h5_defconfig new file mode 100644 index 0000000..8e5021d --- /dev/null +++ b/configs/libretech_all_h3_cc_h5_defconfig @@ -0,0 +1,17 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_SPL=y +CONFIG_MACH_SUN50I_H5=y +CONFIG_DRAM_CLK=672 +CONFIG_DRAM_ZQ=3881979 +CONFIG_DRAM_ODT_EN=y +CONFIG_R_I2C_ENABLE=y +CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-libretech-all-h3-cc" +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +CONFIG_SPL_I2C_SUPPORT=y +# CONFIG_CMD_FLASH is not set +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_SUN8I_EMAC=y +CONFIG_USB_EHCI_HCD=y +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y