From patchwork Wed Feb 11 22:27:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5814741 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 6F9EDBF440 for ; Wed, 11 Feb 2015 22:27:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A24620035 for ; Wed, 11 Feb 2015 22:27:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA331201FA for ; Wed, 11 Feb 2015 22:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753763AbbBKW1M (ORCPT ); Wed, 11 Feb 2015 17:27:12 -0500 Received: from mail-la0-f47.google.com ([209.85.215.47]:43929 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753990AbbBKW1L (ORCPT ); Wed, 11 Feb 2015 17:27:11 -0500 Received: by labms9 with SMTP id ms9so636029lab.10 for ; Wed, 11 Feb 2015 14:27:09 -0800 (PST) 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=aItG1KqCtrS0Zuq9+9F69V98zxlaXWqWXjoCvCF9//4=; b=d3sHuigGXnkxOlTmjbljzocV0odv8cC9IrG0VU6UeyItWnqmZFbeiqQxzGi1ULbN8Y 30t6NmSmxu22UplOK7a9MbkHjgzxOrXCa83VkV2I5EP7NtOuzx/53nWe4Q629JIuMU6H lz2aOMWGk87BNc9Crz8Csuy9ZFB3oxfQV4Zbd/6/gUowsJk6Ft0xzXktVIGRvvjw3xy1 WYyNiQ+E5iAQtUypFB6Lz58JZHSqC9/FpNZTcILcc2Lbn54l5XVh0oL2uG69+j1RWH8q NwzQNPiGeR330jAeLYldIFYvqilhfygQLsD5ycl9SchQs9knU3Y/I7ITW0h1z0GuXD0k iZHg== X-Gm-Message-State: ALoCoQkjLSid/OsA7v6g4M2jKR53jXV4rRZLkQyEJWOMD3RE4zzUR3YAmlvJLpruFNl9ScNiBFGC X-Received: by 10.152.43.67 with SMTP id u3mr661812lal.23.1423693629295; Wed, 11 Feb 2015 14:27:09 -0800 (PST) Received: from wasted.cogentembedded.com (ppp21-93.pppoe.mtu-net.ru. [81.195.21.93]) by mx.google.com with ESMTPSA id s7sm406513las.17.2015.02.11.14.27.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 14:27:08 -0800 (PST) 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 v2] ARM: shmobile: silk: initial device tree Date: Thu, 12 Feb 2015 01:27:06 +0300 Message-ID: <2981242.5l1vvMcV1t@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.18.5-101.fc20.x86_64; KDE/4.14.3; 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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-20150211-v3.19' tag of Simon Horman's 'renesas.git' repo. It requires just posted R8A7794 PFC DT patch in order to compile, and R8A7794 PFC driver patch in order for the pins to be configured. 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 @@ -421,6 +421,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += eme r8a7791-henninger.dtb \ r8a7791-koelsch.dtb \ r8a7794-alt.dtb \ + r8a7794-silk.dtb \ sh73a0-kzm9g.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_arria5_socdk.dtb \ socfpga_arria10_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"; +};