From patchwork Tue Sep 12 20:37:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9950127 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 95F57603F3 for ; Tue, 12 Sep 2017 21:06:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86F8F28F50 for ; Tue, 12 Sep 2017 21:06:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76AD3290CC; Tue, 12 Sep 2017 21:06:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 075B4290D9 for ; Tue, 12 Sep 2017 21:06:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751498AbdILVFt (ORCPT ); Tue, 12 Sep 2017 17:05:49 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:34819 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751470AbdILVFs (ORCPT ); Tue, 12 Sep 2017 17:05:48 -0400 Received: by mail-lf0-f42.google.com with SMTP id d17so29521798lfe.2 for ; Tue, 12 Sep 2017 14:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=ZuJQQt9HoAs4eET/meApXaIH/J5BmDme0YUERn6AaTg=; b=aaOMBnhcxKyhgFpB+Up6GzhtANx3jJBt25xJP7UeMALm5jTZJyF2o65BKCqe9d7Y/0 zCDBfZq5u5cEDfcIIp51DAG9hXU+5ih9bXN8YESmslqQHfXKqqVDxJaWQl8ZUgUMLik1 1ie5qTcChu7sPz3NfPuGR8QgEl1SXtP4Izx1h4A5lfB72QDvQJ1ENOLAWdYfkyOK+VBs ze4bQsEIAaxdshokf0WMyR3PUQbChbq+YyeAfkU9IT9vqCF8Sj3i3G8k5eXHAM3WVP4W KtJ0rJglfjDSqRIuXfWDx5+52/Ds+RXXYDSrlZs1B6+sxHgQzB4YypZmvPUmTcJwqrNv XOQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=ZuJQQt9HoAs4eET/meApXaIH/J5BmDme0YUERn6AaTg=; b=oKowBDrU5j2fcvXI0WxG4qLZh0uXsUk8v/cKZOfEQIq5cFrF8da0ee1mmUjQsIclJt T19PER0XSPrKciU/QhSMorzF5gUHsIiA65Yoid45tyzE/z1J9xw4o4SS269Y7mo6hThz 4rSFtK4xmjQpi8LVDFuqqnFpvTzkpneW+gQUNHPoXi3bzNEKN3v3Csue4fMHFaGMZiHI 5fq+QaTJJJNCHvmtSDirEZUd2qSlDo8zNgy3RGuOB/zBXKFXmMSihgNt8/YvspWlIUsp kdpruv4rici6+AggWeb7RdPbGkOVjg6yTmPPd+lpe1Wc1TNgWbf/DTJRjKTK68ce25B+ y9lw== X-Gm-Message-State: AHPjjUhYhJNWM6adCkfr8bbaBi9pD3zw1+hUo+5QxZLBBqp1Oun8lP6E nvz7g74Fd7FhJnyY X-Google-Smtp-Source: AOwi7QCq+no7rc+5AO26NkeBKMOieS3z8rld+KdOgnhC8ik7GOvjyfPy+A7ENLK+GzkYNCK3zjD47A== X-Received: by 10.46.33.202 with SMTP id h71mr5842851lji.56.1505250347382; Tue, 12 Sep 2017 14:05:47 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.236]) by smtp.gmail.com with ESMTPSA id y17sm2633875lje.31.2017.09.12.14.05.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 14:05:46 -0700 (PDT) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Wed, 13 Sep 2017 00:05:43 +0300 Message-Id: <20170912210543.810219167@cogentembedded.com> User-Agent: quilt/0.64 Date: Tue, 12 Sep 2017 23:37:26 +0300 To: Rob Herring , Simon Horman , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Mark Rutland , Magnus Damm , linux-arm-kernel@lists.infradead.org, Vladimir Barinov , Sergei Shtylyov Subject: [PATCH 10/11] arm64: dts: renesas: initial Eagle board device tree MIME-Version: 1.0 Content-Disposition: inline; filename=arm64-dts-renesas-initial-Eagle-board-device-tree.patch Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work. Based on the original (and large) patch by Vladimir Barinov . Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- arch/arm64/boot/dts/renesas/Makefile | 1 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 45 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/Makefile =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/Makefile +++ renesas/arch/arm64/boot/dts/renesas/Makefile @@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-sa dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-salvator-x.dtb r8a7795-es1-h3ulcb.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb +dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb always := $(dtb-y) Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts =================================================================== --- /dev/null +++ renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -0,0 +1,45 @@ +/* + * Device Tree Source for the Eagle board + * + * Copyright (C) 2016-2017 Renesas Electronics Corp. + * Copyright (C) 2017 Cogent Embedded, Inc. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +#include "r8a77970.dtsi" + +/ { + model = "Renesas Eagle board based on r8a77970"; + compatible = "renesas,eagle", "renesas,r8a77970"; + + aliases { + serial0 = &scif0; + }; + + chosen { + bootargs = "ignore_loglevel"; + stdout-path = "serial0:115200n8"; + }; + + memory@48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x38000000>; + }; +}; + +&extal_clk { + clock-frequency = <16666666>; +}; + +&extalr_clk { + clock-frequency = <32768>; +}; + +&scif0 { + status = "okay"; +};