From patchwork Thu Aug 20 09:27:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7042941 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1B50F9F344 for ; Thu, 20 Aug 2015 09:27:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8D8C205B6 for ; Thu, 20 Aug 2015 09:27:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B562A205AA for ; Thu, 20 Aug 2015 09:27:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751032AbbHTJ1o (ORCPT ); Thu, 20 Aug 2015 05:27:44 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:11906 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750986AbbHTJ1n (ORCPT ); Thu, 20 Aug 2015 05:27:43 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 20 Aug 2015 18:27:42 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 4683A5218E; Thu, 20 Aug 2015 18:27:42 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 2405D8002D; Thu, 20 Aug 2015 18:27:42 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 21C908002F; Thu, 20 Aug 2015 18:27:42 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id UAT03020; Thu, 20 Aug 2015 18:27:42 +0900 X-IronPort-AV: E=Sophos;i="5.15,714,1432566000"; d="scan'";a="193911236" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 20 Aug 2015 18:27:41 +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 SIXPR06MB0608.apcprd06.prod.outlook.com (10.160.237.15) with Microsoft SMTP Server (TLS) id 15.1.243.23; Thu, 20 Aug 2015 09:27:38 +0000 Message-ID: <878u96b9ei.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 10/17 v6][RFC] arm64: renesas: add SalvatorX 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: <87oai2b9rj.wl%kuninori.morimoto.gx@renesas.com> References: <87oai2b9rj.wl%kuninori.morimoto.gx@renesas.com> Date: Thu, 20 Aug 2015 09:27:38 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0039.jpnprd01.prod.outlook.com (25.165.48.149) To SIXPR06MB0608.apcprd06.prod.outlook.com (25.160.237.15) X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0608; 2:HBYUH18693NK4p5uGh62HGgr30CYRAy3Tvik0jRpjk0PP0pJufm8JcHMLDmf4F4eXEsqm4VgOr9sR5oo6/dmSFKhBBnqGqhr+VnB8J6h1Wv2t2Y2gTlgNTJ16e/Ot1HroIZ6epnSNOAeFSPAcNCgSY34fkh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9FrvQyPZvmwK+jTPOKwe+baKiapcAP4+EGzufEM0A5s7SQiQmRZtBvEfHPIonaGoTVzZXeMNX2IxOp0mtnGXQuXtqLFwnxxbe/7tCQys3WX/HKoqLoJIB9S+/UGpIqxU8Q0nzLBwM+f13Gf0dg76nN7NZApnGOnfeBYnfEpDndDpUf666cRGGFN3ki/fWc3eoFSWTJ5FjxHWzEm+fRvWyUFndiPnYaRIiwLeA1hxZZGXDwr4CywXDd8IflJQ0UGPxRZwJkEHTfe37ox1/MRoawFkYvvojRBlxAbhodE6HGPXTqxVY0G+EIwEHQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(3002001); SRVR:SIXPR06MB0608; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0608; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(77156002)(62966003)(77096005)(5007970100001)(64706001)(47776003)(66066001)(122386002)(40100003)(87976001)(83506001)(2950100001)(23726002)(92566002)(86362001)(68736005)(69596002)(36756003)(46406003)(50466002)(81156007)(4001540100001)(5001920100001)(46102003)(5001830100001)(5001860100001)(97736004)(4001350100001)(189998001)(5001960100002)(107886002)(110136002)(54356999)(53416004)(42186005)(101416001)(19580395003)(19580405001)(229853001)(33646002)(105586002)(76176999)(50986999)(106356001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0608; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SIXPR06MB0608; 23:mcAGPyzQYZn6JRVHB62TVFqVjreHDft+EgMwYewzF?= =?us-ascii?Q?R7CgGIRoprtoUgKhi+cjadZOn4Kznq6HDscRmwBRPNkcdw4wTQ2whoBBqNMc?= =?us-ascii?Q?H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sGl?= =?us-ascii?Q?+yl0GU8Lmis14Dt2cUf5WMQf59n78NRl9MbFKsUm1ZEDZdCIqLrXpgtUMr+l?= =?us-ascii?Q?bRySXRcZJeGhrlCkT4xn/7uW3iTp4ESt0Cb03RN2TnwR2wfPAH6iHVo2d7uh?= =?us-ascii?Q?NpjfPx04nnoUNqowao1XZycoX1ZNMdGBxVoufOe6YAhEkMAK5TtTX9yKxeAh?= =?us-ascii?Q?0gRsIUEibzoxZhp9RYnos125KfjtY5y7DdvlXRhSN8Lbak5drYfTeboQ8mQI?= =?us-ascii?Q?BD5ifcIJPwE3WRuS71JrQwKcstq7ADN52/iO5dfnx9DbqgDJXVGoEWkuYqL7?= =?us-ascii?B?QT09?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0608; 5:ONhvooUAkdZ+S8OsBd2+m4oi8QZi9OpClxmtkoVa2sGKGrHVbC/wDjdhQq0QwJnwk+Sdq5xUr2QeKijsMcEHkUwyDfI/D3QVekJQsDOYj8nroAWMEMcxP5aJjWcQixe7NiBIeJOxxxYJ2xSUl7gX0w==; 24:MNTavEfsWNLBvOjUfldjx+q42v+w6SGSChgVSxLLUFqW4gLHu0+9qUBPpAbzFHctLROwAEzNHaVPdpAAlvKIQv5qd1/lr7rurvLRBnZ/Zms=; 20:7XF680nen4uo+GhjCSvgzmqSXVdjwuNwc4k4tch0jKK2oHgZNNfpHUGfqcNB6/BQut5mp1HXxXDvlLn4wRCoCvsAgN5B/ezSBp2O/VAE4m1Ru3lTk/2Qua5B5YIMP79FqUbeWgpw+pCGcMzfxerfL4pDymz37jvG10j70RvVp4s= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2015 09:27:38.4116 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0608 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 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 -> v6 - add Documentation - SCIF uses PFC 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..2d5773d --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -0,0 +1,46 @@ +/* + * Device Tree Source for the SalvatorX 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 SalvatorX 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"; +};