From patchwork Mon Aug 24 02:30:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7059851 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 7A05FC05AC for ; Mon, 24 Aug 2015 02:30:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5782C206A5 for ; Mon, 24 Aug 2015 02:30:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D757206B8 for ; Mon, 24 Aug 2015 02:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753573AbbHXCaQ (ORCPT ); Sun, 23 Aug 2015 22:30:16 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:65056 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753416AbbHXCaP (ORCPT ); Sun, 23 Aug 2015 22:30:15 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 24 Aug 2015 11:30:13 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id D4D3641F09; Mon, 24 Aug 2015 11:30:13 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id C934B2806E; Mon, 24 Aug 2015 11:30:13 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id C36582806D; Mon, 24 Aug 2015 11:30:13 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id MBG19278; Mon, 24 Aug 2015 11:30:13 +0900 X-IronPort-AV: E=Sophos;i="5.15,735,1432566000"; d="scan'";a="192933065" Received: from mail-hk1lp0125.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.125]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Aug 2015 11:30:12 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SIXPR06MB0607.apcprd06.prod.outlook.com (10.160.237.149) with Microsoft SMTP Server (TLS) id 15.1.243.23; Mon, 24 Aug 2015 02:30:10 +0000 Message-ID: <877fol7774.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 15/25 v7][RFC] arm64: renesas: add Salvator-X board support on DTS User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Simon CC: Magnus , , YOSHIYUKI ITO , Hisao Munakata , Yusuke Goda , Yoshihiro Shimoda , TOSHIAKI KOMATSU , Gaku Inami In-Reply-To: <87si7977g4.wl%kuninori.morimoto.gx@renesas.com> References: <87si7977g4.wl%kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Aug 2015 02:30:10 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0002.apcprd02.prod.outlook.com (25.164.90.140) To SIXPR06MB0607.apcprd06.prod.outlook.com (25.160.237.149) X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0607; 2:bJgWrIuIIn9emGnVf4I0H3vGfV7qSBdhoJuEM1qkjzsinBwXjxGFw8YP3hY8wY/B9JuX0PxM/XVmBWIiU907o1FYXTRwDVF4JTTCSjK/sFVHxZdF+1xNCNitOeCOa4yHQyy4ck8Zith6AEb5r41efK7HSEzyAIcyVZjqejjztK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u7zoeh3Urzid8apigpCDG9kX3UsiZBHDNx0rlCvMxquD1x8T8mTBLfc62+Xu7vxP28DUU6jZ8FxpZfwVWizUfh/etaDYsov853Y0iKXcyWV7stG0mwjopU7fT+rcllHKMJ+mw7qkR6STynemqAQTW9kwQFV9bwL0wcuoUFjsgKu05GoXCxv2Zl5AIJAhsEfvsazvqyOI0Rp/T7T1wnvLmhqfcO7Cqbu5IyLwHlabDniyIkC8qJGQ61qcuH9+5TlhWqwUq04oZWZPIePYSIWV7g9FiLwXuujiooY6kn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:SIXPR06MB0607; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0607; X-Forefront-PRVS: 06780E24F8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(40100003)(97736004)(53416004)(50466002)(69596002)(33646002)(83506001)(36756003)(5004730100002)(68736005)(87976001)(42186005)(5001830100001)(77096005)(101416001)(23726002)(5001960100002)(106356001)(47776003)(66066001)(64706001)(86362001)(122386002)(92566002)(105586002)(46102003)(2950100001)(229853001)(107886002)(5001920100001)(5007970100001)(54356999)(76176999)(5001860100001)(4001540100001)(46406003)(81156007)(4001350100001)(189998001)(110136002)(19580395003)(50986999)(19580405001)(62966003)(77156002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0607; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SIXPR06MB0607; 23:Mh27tPWwT+FM5N7mX5YxG68eUg2KdxvKTfxgrwTdv?= =?us-ascii?Q?naRtciIOf+Sinh8FSPydiWRQ3cG61PAujo7T2IUkpwbLJKZDRIJRsBzHME8H?= =?us-ascii?Q?x6zFjwwCZhsa/NyfljPGu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OMjGU?= =?us-ascii?Q?CUQivw+89Udi7DXKAlscLuNnZnlaIQYYFU3ob0srP0NspzReEP76hjMPY4ns?= =?us-ascii?Q?2ETGeYi/YzteOHDR9Z0QihnzIO2QjgyFlVjoqbSOVFiuc2rKMo2I4tmj4pCR?= =?us-ascii?Q?5jMtiZPebxwmCJJ5I1Jv0M3BYSo+E+c2tVEEQAme/5OXxMZKqj/cA4tqyEv3?= =?us-ascii?Q?qAyHVAEUj2kQCWKcqVxUVlB6AVr9EWeKGhsgJanS52Wpog8VMxJgvbLtRe9w?= =?us-ascii?Q?tYfNLCHhZk7UzNOskiGab5cKJ4t1fu7Hhg08nfG9XDvLI0bVyLWWGdZkQUka?= =?us-ascii?Q?IJyphHw/TssUzAoQIrkZz04xRVJZyOm9RIIoZTCgdsx?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0607; 5:AI5Grb+PQgabOiFNTstwf4obDghMzfggdJyuMCdm5XKFbkpUd1SnfjK6TVrCxfwLfuxDtsE7Ig6vrrMrdH9tfx5cj03o8tfsC7g+tHBIvsBATi5SpzWKaw+gHT7o8XuKpTg3MmPBbkpP6oNZ6jQ7mw==; 24:12nF5Tx+q/v3CVEknDDX2ZbKEIyorfrHM+9UtdLNv7zMTViOBX/mYMpJItIkL9fraqAeBnAKydrk8ItcAMwpF0WS2lz4zgyrfTz0wwtj3lI=; 20:s/VII73hu0Q1Inc/uHcgVzBKwWkTiSEJXJHOJ4gVLwmMBbbqqJqc7b5G6Kq4wwjctyioTllU0sbsGWPBuULdleFMKI5rEmR0YetHy4ItXVHuXc9HcKbGFgT/HaXtWAraChRpAZqip3Eg1RnBY56otltbP76rUFC3YKcPkRhXEfw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2015 02:30:10.1379 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0607 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.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 From: Gaku Inami Signed-off-by: Gaku Inami Signed-off-by: Takeshi Kihara Signed-off-by: Kuninori Morimoto --- v5 -> v7 - add Documentation - SCIF uses PFC - SalvatorX -> Salvator-X - salvatorx -> salvator-x Documentation/devicetree/bindings/arm/shmobile.txt | 2 + arch/arm64/boot/dts/renesas/Makefile | 2 +- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 46 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt index 10e65d8..dbcc007 100644 --- a/Documentation/devicetree/bindings/arm/shmobile.txt +++ b/Documentation/devicetree/bindings/arm/shmobile.txt @@ -57,5 +57,7 @@ Boards: compatible = "renesas,lager", "renesas,r8a7790" - Marzen compatible = "renesas,marzen", "renesas,r8a7779" + - Salvator-X + compatible = "renesas,salvator-x", "renesas,r8a7795"; - Silk compatible = "renesas,silk", "renesas,r8a7794"; diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index 6aeefd9..dbacc64 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -1,4 +1,4 @@ -dtb-$(CONFIG_ARCH_RCAR_GEN3) += +dtb-$(CONFIG_ARCH_RCAR_GEN3) += r8a7795-salvator-x.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts new file mode 100644 index 0000000..cdfc4c9 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -0,0 +1,46 @@ +/* + * Device Tree Source for the Salvator-X board + * + * Copyright (C) 2015 Renesas Electronics Corp. + * + * 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 "r8a7795.dtsi" + +/ { + model = "Renesas Salvator-X board based on r8a7795"; + compatible = "renesas,salvator-x", "renesas,r8a7795"; + + aliases { + serial0 = &scif2; + }; + + chosen { + bootargs = "ignore_loglevel"; + stdout-path = &scif2; + }; + + memory@48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x38000000>; + }; +}; + +&pfc { + scif2_pins: scif2 { + renesas,groups = "scif2_data"; + renesas,function = "scif2"; + }; +}; + +&scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + + status = "okay"; +};