From patchwork Tue Jul 28 22:14:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6888641 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@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 98489C05AC for ; Tue, 28 Jul 2015 22:15:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE0F72074E for ; Tue, 28 Jul 2015 22:15:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D102E20749 for ; Tue, 28 Jul 2015 22:15:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751229AbbG1WPF (ORCPT ); Tue, 28 Jul 2015 18:15:05 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:33238 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbbG1WPE (ORCPT ); Tue, 28 Jul 2015 18:15:04 -0400 Received: by lbbyj8 with SMTP id yj8so84052069lbb.0 for ; Tue, 28 Jul 2015 15:15:02 -0700 (PDT) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=DvaGY8Vf14eh0f30qSAMLmrWObZqpL4azf3xguZ5z0Y=; b=AMaItgKgVTns1cBl0al181FHrwizbw6uTuzr8Kd7s7h/kwvX/b94PJBCpzVCB96LHS Xu9VF9FDDyjtNiX4cfdC5VfCy8W1hnRkzZG2nKWq8yVqiiSoYg1fgq6DZ0PWctxbIEbJ 9ceXr0s2OhU1KiqaWQl7xtNflbftwpl19RIBrV5HSuwy0IAE/RSI4Fu9P6b26wxlzYLa skeN61x5zuruMj/xhwtb9QKipf+ilkCY2KtkyYxLO8k9vGGv8YyQaEZeqUw5QWu5nd8L /v+rWjkmoYFA4Rch+QmKdK6WPmhnU7LMRLigLoBymkMVXjaZ5sxwPwVtzdjvvzYK5Jc7 kyng== X-Gm-Message-State: ALoCoQnmmZ6ejUHAbQ9hvCRFfiFAHnP1VKkjYpxtsWyX6f3ZWo0BNeJ0LamZWXSBGeCQ/vvgCN0R X-Received: by 10.112.151.178 with SMTP id ur18mr35780796lbb.59.1438121702535; Tue, 28 Jul 2015 15:15:02 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-250-119.pppoe.mtu-net.ru. [83.237.250.119]) by smtp.gmail.com with ESMTPSA id c5sm4915030lbd.49.2015.07.28.15.15.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 15:15:00 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3] ARM: shmobile: silk: initial device tree Date: Wed, 29 Jul 2015 01:14:59 +0300 Message-ID: <2360526.88foRQAOiM@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.0.8-200.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <201404250239.39150.sergei.shtylyov@cogentembedded.com> References: <201404250239.39150.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 the initial device tree for the R8A7794 SoC based SILK low cost board. SCIF2 serial port support is included, so that the serial console can work. Based on the original patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20150728-v4.2-rc4' tag of Simon Horman's 'renesas.git' repo. It requires R8A7794 PFC DT patch posted yesterday in order to compile. Changes in version 3: - refreshed the patch; - reformatted the changelog. Changes in version 2: - removed "console=" parameter from the kernel command line; - added PFC node with SCIF2 pins subnode and referred it from the SCIF2 node; - rebased the patch - mentioned the origin of patch in the changelog. arch/arm/boot/dts/Makefile | 1 arch/arm/boot/dts/r8a7794-silk.dts | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/Makefile =================================================================== --- renesas.orig/arch/arm/boot/dts/Makefile +++ renesas/arch/arm/boot/dts/Makefile @@ -515,6 +515,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ r8a7791-koelsch.dtb \ r8a7793-gose.dtb \ r8a7794-alt.dtb \ + r8a7794-silk.dtb \ sh73a0-kzm9g.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts =================================================================== --- /dev/null +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts @@ -0,0 +1,51 @@ +/* + * Device Tree Source for the SILK board + * + * Copyright (C) 2014 Renesas Electronics Corporation + * Copyright (C) 2014-2015 Renesas Solutions Corp. + * Copyright (C) 2014-2015 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 "r8a7794.dtsi" + +/ { + model = "SILK"; + compatible = "renesas,silk", "renesas,r8a7794"; + + aliases { + serial0 = &scif2; + }; + + chosen { + bootargs = "ignore_loglevel"; + stdout-path = &scif2; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x40000000>; + }; +}; + +&extal_clk { + clock-frequency = <20000000>; +}; + +&pfc { + scif2_pins: serial2 { + renesas,groups = "scif2_data"; + renesas,function = "scif2"; + }; +}; + +&scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + + status = "okay"; +};