From patchwork Thu Mar 24 18:05:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 8663631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5DA68C0553 for ; Thu, 24 Mar 2016 18:07:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 667FF2037C for ; Thu, 24 Mar 2016 18:07:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55CC720364 for ; Thu, 24 Mar 2016 18:07:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aj9dq-000149-RG; Thu, 24 Mar 2016 18:05:54 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aj9dZ-0000sY-Uy for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2016 18:05:39 +0000 Received: by mail-pa0-x22f.google.com with SMTP id fl4so28233068pad.0 for ; Thu, 24 Mar 2016 11:05:20 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=dHNxmCwWLCI2O1zUgc86E6X6wPNuqMgILvX1FhMwTDA=; b=WYTZREpQQ9I0eGU8xzK6tP6Bq5GZKHlwyzjm2vof/TQDrHvO8XWbIw1IwDVR1gswPI a8VlhrqN6fZiDHHr6Ibs3HWRk5ep8glIaA2gR10iSeeXC99N6GuaPj0+BMTjALfOlXFz YcOJJ/SaTdp4QiDatZ+VQWiUV0cEu+H5K9dsgLtvu4zSn1+ze1FO4ZduAP3BIa6uFoO7 xcdqFQHL2kHmPwPk9F7CFssfmGgSK4KB2zvWywHbJTQKjJMBDngdsFazQVW82e3t/gCM mSzWySfLOOCWWl6DWJYLTLq3+slZxtADG1JVgAH2EttUVmt4EWFUbnpNHI4U2tTkyS33 ZfvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dHNxmCwWLCI2O1zUgc86E6X6wPNuqMgILvX1FhMwTDA=; b=UEJvK8A8+Ny+x4rskPHclmnXKY1TB0qffmiG7m9DfrzuKMoe0BptUJpt04J227P8j8 GuRQVbj6INA66XVAw4K8DcQn6XRRK5rywVMhq7RZNFzhsYomJdpJzYkSt6nwru1RylIZ 6kRN0t7tdWp4ZLhFCXKpzWQY6TzTPXXXtAuJve+oMGvI4JTbAtp7B5bQ9fZPrJEyujwd +YSw1t8TjslYGkOZ7udkDrDWGiVLoIwA4oh+N6sFAuAIuHqQH96clMZdFta+hUu4QNRS yrGE8jz6bRi3fvQHuUwvQMDr499sWuj2uKsH1l1wkEnrUFkUphkZU9QodxUOIS4H+S4t mWwA== X-Gm-Message-State: AD7BkJLxIt7Q2ANFq7le187O/DK+4PEiJ4h0/NKvAWWD7a59nuMW25lUILW3hzvguxTHCc03 X-Received: by 10.66.97.8 with SMTP id dw8mr14881788pab.28.1458842720230; Thu, 24 Mar 2016 11:05:20 -0700 (PDT) Received: from localhost (c-76-104-183-97.hsd1.wa.comcast.net. [76.104.183.97]) by smtp.gmail.com with ESMTPSA id o7sm11573470pfa.37.2016.03.24.11.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 11:05:19 -0700 (PDT) From: Kevin Hilman To: linux-meson@googlegroups.com, afaerber@suse.com, carlo@endlessm.com Subject: [PATCH v2 3/4] ARM64: dts: amlogic: add Hardkernel ODROID-C2 Date: Thu, 24 Mar 2016 11:05:14 -0700 Message-Id: <1458842715-27066-4-git-send-email-khilman@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1458842715-27066-1-git-send-email-khilman@baylibre.com> References: <1458842715-27066-1-git-send-email-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160324_110538_091993_DAD3E09E X-CRM114-Status: GOOD ( 18.60 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add minimal DT files for the Hardkernel ODROID-C2 board based on the Amlogic S905/GXBB SoC. Used the other gxbb boards from Andreas Färber as a starting point. Cc: Andreas Färber Cc: Carlo Caione Signed-off-by: Kevin Hilman Reviewed-by: Andreas Färber --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 69 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index eb672f38f89e..a595752459e8 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -1,3 +1,4 @@ +dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-odroidc2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-pro.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-meta.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-telos.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts new file mode 100644 index 000000000000..7f2c6747a71e --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2016 Andreas Färber + * Copyright (c) 2016 BayLibre, Inc. + * Author: Kevin Hilman + * + * 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 library 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 library 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. + */ + +/dts-v1/; + +#include "meson-gxbb.dtsi" + +/ { + compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb"; + model = "Hardkernel ODROID-C2"; + + aliases { + serial0 = &uart_AO; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; +}; + +&uart_AO { + status = "okay"; +};