From patchwork Fri Aug 7 03:17:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 6964791 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 A23FDC05AC for ; Fri, 7 Aug 2015 03:17:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84B00206B2 for ; Fri, 7 Aug 2015 03:17:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95033206D5 for ; Fri, 7 Aug 2015 03:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753093AbbHGDRk (ORCPT ); Thu, 6 Aug 2015 23:17:40 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:38223 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752657AbbHGDRj (ORCPT ); Thu, 6 Aug 2015 23:17:39 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 07 Aug 2015 12:17:38 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 60CFC47D73; Fri, 7 Aug 2015 12:17:38 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 3BDEA8002E; Fri, 7 Aug 2015 12:17:38 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 2D4C38002D; Fri, 7 Aug 2015 12:17:38 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id NAM19884; Fri, 7 Aug 2015 12:17:38 +0900 X-IronPort-AV: E=Sophos;i="5.15,626,1432566000"; d="scan'";a="193170414" Received: from mail-sg2apc01lp0246.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.246]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 07 Aug 2015 12:17:37 +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.225.19; Fri, 7 Aug 2015 03:17:34 +0000 Message-ID: <87wpx7dc3e.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 08/16 v5][RFC] arm64: renesas: Add SCIF2 support on r8a7795 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 , Geert Uytterhoeven CC: YOSHIYUKI ITO , Magnus , Linux-SH , Gaku Inami , shimoda , munakata , komatsu , goda Date: Fri, 7 Aug 2015 03:17:34 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0033.apcprd02.prod.outlook.com (25.164.90.171) To HK2PR06MB0594.apcprd06.prod.outlook.com (25.161.187.145) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 2:c/ETacLDDnulH7kvQcDTD8DxeFZqPYryRgcMVEICss21mkvkaKS6UnSnLMAEsFJXK80auLhMrvSEMy3zmeRLcrosg63rUYuT0WEfh5TLiFxglwjlGnXdp+lY323FnZHKqmvDanr0ca41bVi6mdjaCIwBZWwb1sWhBHai2gQcBEU=; 3:FvGNlMERRRPcDn289SC1OPKA9Rbv7lKJYuJytQDeLeHwor+5sF2yUQ7XETIrvseqZ+xanKY0RPkEh3ByjKMCB77Uxi3gbFl1+374YZ1Q+8n6k55Ozl5Tea1rR8JmSjQboMspH+MANws2p634Phb1kg==; 25:cvoR5+vUq1XC4z1a9pCJxOXlnZQLah+lrMqr0lze80GpLqDN4SamZKFQ1MZPwvgTpOAFVL/4kbUvc+CpajdHR+j20XhErhWovzlllYgEqj7bNLedhkBbsJw57okse7htUFi0VyreHCh+oU50yKfrCCw8FA8U66QgX3P5ZPYehw+0XsQHbHZbwzX0Nj031pf3E6cMLcuZmgbsXES/NizBpU7bOHZ9HSYYDwXvSf4HpexIM35m1UqA2KMohfBY8YGFLPwNdsMv1+1xe9zWe2qYmA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB0594; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 20:AbpcSGtpLqhileEHad9Fclc+NuTSJDt9RWY+jgEJj+T/xrLO9GNBcn3Ch1OM+MjS5SpLFxE8SiKJjGsVn8ILlpAfTHYtgffgoHkMRhtdTSyNujDuGmIBpKU/BvySSh1OqG/xZuOTglNsjf/VbhatizJIi43VNRV+kC/sfYVFve2R8z0exYI2OvBLcQ0WGVBbalPBPwiLnJOe5laP02G55XpBUKBS+/m4YEZR0uEPT72ax1jDoogewQeQa36rRX3bxo9z+7zJDwiw+g3Yjjok/6YDpOvTzqayAesocFlIxK6kFniGlO7usUtUZmtpS0R+UW2n5aD/LSDQvVZ5ORjEnC0o+wQbc2cBK7k1++wtbChkDQHDGG3le6kpEp4TiPVTmo7LE7awrFJbcErl7fPdyTj+GVJ5GWDCgdCqJ29qgMWFKibPVY+Uxc4AYqL8xZP83srIRWjlywi+hHzP/5XYNbg4LboOXXzbHpRVKYel9ejS6FccANMuiJA+AoeIDroZ; 4:VKYeymiVXg2mAavG41H0sjcg0W9B1EQnaZJL3oH1mr4MIbVkaQ/+C4bAkJoAe0wXxi7o4BMF/WyfcFjvEvVxrnEHqbar7b8UIFNJNFY8v9vv1+M5XW3qvHtws0cW0jXfo/5wE/qqKBnJLKkA18M1CHhROyv7jJf7irxinQLUCRo1ik05SGKup38qe+xXEbH6KVEN/c+EVbpBPYlbDb9Z7pKY2C4qLjyoFGvoMzkBbl8L+5/H1X6L+Vt0dtucBWV48c5C+iEjykS5Tkom1NeknfIDNlfuiZVmKLOduqdhsUs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:HK2PR06MB0594; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0594; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(53416004)(50466002)(36756003)(54356999)(50986999)(19580405001)(19580395003)(5001960100002)(4001350100001)(62966003)(106356001)(92566002)(77156002)(46406003)(77096005)(46102003)(68736005)(87976001)(229853001)(86362001)(33646002)(69596002)(83506001)(5001770100001)(122386002)(5001830100001)(81156007)(97736004)(101416001)(5001920100001)(23726002)(189998001)(4001540100001)(66066001)(40100003)(5001860100001)(105586002)(42186005)(107886002)(47776003)(64706001)(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:/QUwzg9NjLJPCfs7nsXC7MkGSOnrGmqtqY4a9+DAL?= =?us-ascii?Q?UruB+TzikpnG8oBgV0xuYv+qIbFRaeDeIeOHsQvl5UsOQuZmqots7sDnUOmw?= =?us-ascii?Q?Y4BwV6orwt4newFemfF/EwcaRnwFU2L6oRX9y2ylBTYWJTj7H1YaOq6rCo5k?= =?us-ascii?Q?/HpRxyzaTyz89SfjbhXTbf3HGLqS+ehq7O3fv7/p+ZuJE2/spyqQe5nn1Jmk?= =?us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gCe4syVDWuK+q9HYSGha5xQtIRcPs?= =?us-ascii?Q?YWNhAXRyatHs64/uxsL8+iAu4rKetTHvGteebc9zRT3IizfJpKnBN3kJvCXn?= =?us-ascii?Q?jCISKVPLFug4DFpOnx5LgrQ3tuzwx38fyXd?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 5:pMvK94AqwuLXv0GdwAi19UIXsHVvkUdWhxaGke6v0Ymn84BUYSG3tR3fX2iSRJWEL3oB4a1OEvfqqOpy/6yzRzFdgdBjEF3Wk8E8CpCOdQauUdhMBIGoZjLzGV97jmyERo2mWBbuFn/ar/dQvVU1BQ==; 24:OOHyb5Xt+Cd5reXYGHF1fvswI0QoL6lXZlO8ufJsYCPjBlEf2vwRl5myGJ3nTBdYCIBR/RpltvSZisucWJo0eTYYTgyzaeFk0I5OUNTQzY8=; 20:2AIn/6Qz8Yc7mGK5S4Am+eirlXC0Ajb7Ke5rTbrg3rJL6pwytxO/9j4A75BNGBS4r2l5lOG+99CxXXKPpzndYyta9fi3oThNrd9bmaYkk3eLXyRNh7n8LtBlYZm8MpB44E5RfC6pYjm3B+LkX7PqU3zT0A2ae0MkKujUrGoTy+g= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 03:17:34.6247 (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.0 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: Kuninori Morimoto This patch enables SCIF2 Gaku Inami created original patch, and Kuninori updated DTSI Signed-off-by: Gaku Inami Signed-off-by: Kuninori Morimoto --- v4 -> v5 - no change arch/arm64/boot/dts/renesas/r8a7795.dtsi | 22 ++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 1 + 2 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index efcd3c2..0de2771 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -80,6 +80,10 @@ }; cpg_clocks: cpg_clocks@e6150000 { + #address-cells = <2>; + #size-cells = <2>; + ranges; + compatible = "renesas,r8a7795-cpg-clocks", "renesas,rcar-gen3-cpg-clocks"; reg = <0 0xe6150000 0 0x1000>; @@ -87,7 +91,25 @@ #clock-cells = <1>; clock-output-names = "main", "pll0", "pll1","pll2", "pll3", "pll4"; + + mstp3_clks: mstp3_clks@e615013c { + compatible = "renesas,r8a7795-mstp-clocks", + "renesas,cpg-mstp-clocks"; + reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>; + clocks = <&p_clk>; + #clock-cells = <1>; + renesas,clock-indices = ; + clock-output-names = "scif2"; + }; }; }; + + 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 */