From patchwork Thu Aug 20 09:26:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7042921 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 63B78C05AC for ; Thu, 20 Aug 2015 09:26:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BC70205B6 for ; Thu, 20 Aug 2015 09:26:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A69B205AA for ; Thu, 20 Aug 2015 09:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751022AbbHTJ0x (ORCPT ); Thu, 20 Aug 2015 05:26:53 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:64897 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751010AbbHTJ0w (ORCPT ); Thu, 20 Aug 2015 05:26:52 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 20 Aug 2015 18:26:51 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 25BA551146; Thu, 20 Aug 2015 18:26:51 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 1B23C1806F; Thu, 20 Aug 2015 18:26:51 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 14EAD1800A; Thu, 20 Aug 2015 18:26:51 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id UAA13139; Thu, 20 Aug 2015 18:26:50 +0900 X-IronPort-AV: E=Sophos;i="5.15,714,1432566000"; d="scan'";a="193911084" Received: from mail-sg2apc01lp0245.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.245]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 20 Aug 2015 18:26:50 +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 HK2PR06MB0594.apcprd06.prod.outlook.com (10.161.187.145) with Microsoft SMTP Server (TLS) id 15.1.231.21; Thu, 20 Aug 2015 09:26:47 +0000 Message-ID: <87bne2b9fv.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 08/17 v6][RFC] arm64: renesas: r8a7795: Add SCIF2 support 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:26:47 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0044.jpnprd01.prod.outlook.com (25.165.48.154) To HK2PR06MB0594.apcprd06.prod.outlook.com (25.161.187.145) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 2:D5kIUEXjYbcGB0hCYJ3/9kmTjG4fmSujc6rNI/ya9hk8sgw/qQhrbEmzmqjMQkzJBBWgQOjlWpVUCBPDmNAieo9h/cBtdqD9v7xLtmhF247Wr0CulGWMUS5leodo8pwb+nGk3JDzDc6pzN2o+yumcIL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KkPWps1E/NqhnBATwbORrl0qpcED+gZQ1TynyTMGi1TeW00Jfxr2I7R6hpsnWYd5Bi1dZXNpQ0ou+9qTqN1YY7Pue5m6bsQilRZMBiijQq98Z7403TfwPK3iEystUwR5KS2xISKhkTn0YCnmmgZr8GluEwnkjuaSlZFQ3iBAlehAV7CxurQBRkx9KiTauAtG1qS9l40LXC8J6Cobunq0BtPnerf76s+VXcAUtSJSUCV6Hktmw+2BEoD6TMTrRDMS68YL7HiwqbnJLcZQWI7MQCBUzOYK8Iaz6M1VC1+G7VLOIp1 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:HK2PR06MB0594; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0594; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(50986999)(83506001)(62966003)(106356001)(54356999)(105586002)(101416001)(36756003)(68736005)(5001960100002)(23726002)(229853001)(189998001)(77156002)(92566002)(40100003)(122386002)(47776003)(87976001)(46102003)(19580405001)(2950100001)(42186005)(76176999)(110136002)(46406003)(4001540100001)(97736004)(19580395003)(5001860100001)(33646002)(5007970100001)(64706001)(4001350100001)(86362001)(81156007)(69596002)(66066001)(53416004)(50466002)(5001830100001)(77096005)(107886002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0594; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0594; 23:sJkyfsCbV47V4+jCcXpQUdpTO3qi5T9cDjp9GJHap?= =?us-ascii?Q?xPZ1JD5gKaVxEja8kDJSv2wUqobq30LL9MRxGQ/Qa7D2A1Ed7y1dyi4OWnkH?= =?us-ascii?Q?b9hn/jjPU3csFDP4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vvg?= =?us-ascii?Q?PwEQeiHdxVSuRQfNMveHqjmHnUORg9HNHHWQ6vhWvj/skMHlQt7tD/xkEsr5?= =?us-ascii?Q?MIJqHe2h66VS7euOVyLgIiLKJKd2agp1VazVMKHQ/1AGm+XemLIlscRDRfgh?= =?us-ascii?Q?phTrDx5QSdW6lTgDlGafOoeCgnHSohS9pjFUNEGqJI1Q0ZOHCpy5aN3OdMJd?= =?us-ascii?Q?hFruKRnHQ5EZ1NyxG1DFS1y0lINEFO+1lruyYgQdmwO2aKzvdvsFAWjajaEZ?= =?us-ascii?Q?iY1Km5H9PK0T+SNJomcxqJP+/GkODYwNPt4zuxU?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 5:pnV6/c6Yclf0jnfehEC7xWLuC4QlHlvJUJYzZeDKJPU3sT+H1K8gf7T+QUCcHl4ppAS1YA0XmB3nnhxnYCDm4CNuEccCfU8MousvT0CrIAXKhYGDOv4ZfUOMi3ZkSCRXZbWFmP78tw71qPvihfj9jg==; 24:Ei+aTj/yBLwmg3c+ekCaBaPySCYf0SbJ0VvQII64j4WcjedMwreJcw9tgVj92MIuUpu0HudHKf9smZ/pTaXRHLmTu2UpDOQpGetDq6TQBWU=; 20:G9ewH8ZDUI5YU1c8RYpoX9CWYCZR0x28fCzWVrB9B77sDfXpL6xrQMZgBTCs7T8+gktLIO2+2GBhyoeCh3rGa5gx8SXzQRrqOP0q1Fw0DaWfFoSTQoXc1iWtpk3g61bYLPuWH5A9qLFswqwbBw5A2ixkPYNhZdwwgHdn9UPHlBg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2015 09:26:47.9534 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0594 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 This patch enables SCIF2 Gaku Inami created original patch, and Kuninori updated DTSI Signed-off-by: Gaku Inami Signed-off-by: Kuninori Morimoto --- v5 -> v6 - cpg has #clock-cells arch/arm64/boot/dts/renesas/r8a7795.dtsi | 21 +++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 1 + 2 files changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index f013814..7bf9f56 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -49,10 +49,23 @@ }; cpg_clocks: cpg_clocks@e6150000 { + #address-cells = <2>; + #size-cells = <2>; + #clock-cells = <1>; + ranges; + compatible = "renesas,r8a7795-cpg-clocks", "renesas,rcar-gen3-cpg-clocks"; reg = <0 0xe6150000 0 0x1000>; clocks = <&extal_clk>; + + mstp3_clks: mstp3_clks@e615013c { + compatible = "renesas,r8a7795-mstp-clocks", + "renesas,cpg-mstp-clocks"; + reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>; + clocks = <&s3d4_clks>; + renesas,clock-indices = ; + }; }; }; @@ -85,5 +98,13 @@ ; }; + + scif2: serial@e6e88000 { + compatible = "renesas,scif-r8a7795", "renesas,scif"; + reg = <0 0xe6e88000 0 64>; + interrupts = ; + clocks = <&mstp3_clks R8A7795_CLK_SCIF2>; + clock-names = "sci_ick"; + }; }; }; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index 334fa13..27b3a29 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -24,6 +24,7 @@ /* MSTP2 */ /* MSTP3 */ +#define R8A7795_CLK_SCIF2 10 /* MSTP5 */