From patchwork Mon Jun 15 04:54:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 6606051 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 69B149F1C1 for ; Mon, 15 Jun 2015 04:54:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6439320569 for ; Mon, 15 Jun 2015 04:54:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E7AF2056C for ; Mon, 15 Jun 2015 04:54:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751238AbbFOEyg (ORCPT ); Mon, 15 Jun 2015 00:54:36 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:9202 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751109AbbFOEyf (ORCPT ); Mon, 15 Jun 2015 00:54:35 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 15 Jun 2015 13:54:34 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 7F85446DB1; Mon, 15 Jun 2015 13:54:34 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 648712806E; Mon, 15 Jun 2015 13:54:34 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 5D2ED2806D; Mon, 15 Jun 2015 13:54:34 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id PAQ24588; Mon, 15 Jun 2015 13:54:34 +0900 X-IronPort-AV: E=Sophos;i="5.13,616,1427727600"; d="scan'";a="188296556" Received: from mail-hk1lp0119.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.119]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 15 Jun 2015 13:54:33 +0900 Authentication-Results: verge.net.au; dkim=none (message not signed) header.d=none; Received: from morimoto-PC.renesas.com (211.11.155.132) by HKNPR06MB307.apcprd06.prod.outlook.com (10.141.37.27) with Microsoft SMTP Server (TLS) id 15.1.190.14; Mon, 15 Jun 2015 04:54:32 +0000 Message-ID: <87y4jlvait.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 5/6][RFC] arm64: renesas: Add r8a7795 SoC 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: <87616pwp7a.wl%kuninori.morimoto.gx@renesas.com> References: <87616pwp7a.wl%kuninori.morimoto.gx@renesas.com> Date: Mon, 15 Jun 2015 04:54:32 +0000 X-Originating-IP: [211.11.155.132] X-ClientProxiedBy: OS2PR01CA0022.jpnprd01.prod.outlook.com (25.161.74.160) To HKNPR06MB307.apcprd06.prod.outlook.com (10.141.37.27) X-Microsoft-Exchange-Diagnostics: 1; HKNPR06MB307; 2:NbKim8tUrhH+nKZUCk4QtomvREWIlXsz+/YKy3Qc7Yk/FI28uIZmnpKaNhwniiYN; 2:TzpMfYQt2dhPX+j8ZFXZvi9vaqAY3tr4cUkyDyi+/7aYOTVPBT+0HHyxZtqqEbf+4LrJBqfVuiaNeiWAAxAypf0Ixbjc9RDUT29LHdBwr00H11Wj+XHV1kLzpwAmTPUoepnQ9uVdITLKiVLW7TsILw==; 6:9mdfNQDmRz/sRH8lmOnA/ckXPfyXqpFww35NtpegqQh0p8uiXUqGHAsNtsDxmlucvGZg5jrvowrNPTSNWqSGkho7aiPOCKUQHhZ2m3dtcFQYAVGlLcoy7sNavVd4cBP32llC+3mAxFxA9guBDWp7DmBG6tAjQoDnBKgL3AoTdna6uHHV9iCupZ+LLUd+UMmXa89For70N/Tq8f256E7FhVIHBLjRW9+OQHaNPlWUfbiAYxZRivYy09XR7Z+RWdaR9H99GWCuB+Tf5kou8Ast+yq1gDj/2AGBVYwZbrTZV0FNTCwSIpo4qqJ7lg0LmvPDgSFz1+ugnPna3MqLwdhPvhi+LYZm0fkxBZ0lyttVGzr+iMp/9xy7nFpqrFPkg1Jt0HCWDDya8s8leIXZIKV/FyiZ6rSUvEI+4gYpCYNeQqo1zXLL/DkyBK18rx4TTLXfjv+lZ+/ZKzT5EqWXSdUXkq8mxIAKMVYWlAyfZJJrzkwTy9Wq4sXzYnYNMXYRJ2tR X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKNPR06MB307; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:HKNPR06MB307; BCL:0; PCL:0; RULEID:; SRVR:HKNPR06MB307; X-Microsoft-Exchange-Diagnostics: 1; HKNPR06MB307; 3:GoQ8pmMZsiFF9dU5BSN00xvxBAH9YdvGQzLoBR25PYSFHSSMkbXte0243l9qj6yr16pBwTjRBW0DKHtL5jyQm8c19qGGBDVW5pC72KRyM+GgGVB7IN01LIAypFtWPzoofTyeVkietDqAkoAfy+v00dVBNs2pjmYKdQ+RFEmDBIS3rc2mx3b0QM+D1N3pL/VnMTInlGkjxjQpyWnZ4osTO3xgZ86B6GGLbQCVDLQ48o+fwgTkwNc5ho3hhzmCP3mw4Qat8sU/u1SPUN4xZkWyBoOyTTh65PeRGLiSmK5xcDm0bpPi/GJbEpJHF8FYmJOK X-Forefront-PRVS: 0608DEDB67 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189998001)(92566002)(36756003)(23726002)(83506001)(66066001)(46102003)(33646002)(107886002)(229853001)(4001350100001)(110136002)(5001960100002)(40100003)(122386002)(76176999)(77156002)(62966003)(54356999)(50986999)(87976001)(53416004)(19580405001)(19580395003)(50466002)(2950100001)(86362001)(47776003)(42186005)(77096005)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HKNPR06MB307; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; HKNPR06MB307; 9:EecPkZIwl3k/fJ5p4gqkT9RWChMq4xr06/bbRGQKYTwetGV0RiNoJ4SItTeqr3QTRvtzaq1MFLa3vkj1cMcvbV/Tsmj87tvZOhpM9JNgJhHo2cD7x9dYqUuBSD/uN9Id7PtN9/KAIdcjkaw6H9FsdKrg1gc8OsUg7u7P70d3w68eYEEl1rU0p1J+3R7QekLjDN9r0UJweux+Kvv8HLKhN/jcpd7Mo1NuD9sQHZVazbKA9I7U3AWs5q/oedOpBftPYVCnD139Kwva/b4YOkYQeCuPLiM/swLwlDySJNS2Chjpolnd/+403Plfe9rRRW5RC6aLWvKKr9/HKZ13r2um7e8Gyt2wxgqCDT3tlLKAGwTjZncdNS/SQkSFnEWn0JftnTARE3+IlRvJm6wtEPsWpxo3HnmE69Nziip3pi+Bf/rLS7FilG6b1vbeTvplet7qBZqM2wjhVble4l1WLtFBZ+1zM+AmNd/52n9MzzCnoOL0k3VwXkOUpjXncnIh1u1dZkDo71cgpDou8Xp7F8EGCGas8r96A49xTbfmAMRGQ5R7e3+AfpmaV7pf6cyM0Z2TfeKpx07uBig39zUwxsxGtih9pyRcWHdSh+LJew0zFsoKuUBjJjfXS/iEBrqBehvMQOoqm5Mra2Qy94KiZiUTFWAaQe9e1SG5ONQfUJHVOhXSlWBlwAKwEDu5dfofKs4BzXCo5fRlyC8k8lct0MDu+/9bblb2rjzw9mRZld2lJM/afwXf/NLbqJPTdNRnEgqsoCQEY6bRLb3N1zPYo4QrwH27yCGBs0nBhWK+74PYhgfg797syaQCS+VhGrOY394YnWeEdXlXJyfSGxSeO4/dMmdEac7Vh1Pd2/6GivYs51Re/+enslbx2TMRquilH8j0 X-Microsoft-Exchange-Diagnostics: 1; HKNPR06MB307; 3:eTvKRV97FP3AX977JLq4d1t8INRh1UZjHEFx38Nmcn1vbSG8w289AwJ+tujkDq+yFG/wMvCHUYpIj9GtIDwl+/tC8bboGwAirQBFYVJQZJIbkiIWdMZYzLd69ssM8qNfTcmBXbeKqHiLnaAdz9Hcww==; 10:OU9mJT3YJDoI+6zI0argcKrdlf7zq2qS0dwy8bMjXWyw0t4qpvrua2jCQzYCV4W1i0SM9biHXWBWo0nctcePY1hKUT1G9tGmuTB9bNsFNVw=; 6:6ugby1ohCOI/W61+rQTdgJadjMAV/zVYT7BlHskdQHCfMYlgmSrjcv0wAK7TyJfudUSkZVWaSAb8ag8HsfImKg2aVMwVeZuq+ROZmBXLsVdEIbBF4XZU1P3ncONLGvgtp58lsFWUU4VxlqeMAQskkw== X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2015 04:54:32.2160 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKNPR06MB307 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.4 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: Kuninori Morimoto --- arch/arm64/boot/dts/renesas/Makefile | 5 ++ arch/arm64/boot/dts/renesas/r8a7795.dtsi | 90 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 31 +++++++++++ 3 files changed, 126 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/Makefile create mode 100644 arch/arm64/boot/dts/renesas/r8a7795.dtsi create mode 100644 include/dt-bindings/clock/r8a7795-clock.h diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile new file mode 100644 index 0000000..970627c --- /dev/null +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -0,0 +1,5 @@ +dtb-$(CONFIG_ARCH_RCAR_GEN3) += + +always := $(dtb-y) +subdir-y := $(dts-dirs) +clean-files := *.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi new file mode 100644 index 0000000..13c7d8d --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -0,0 +1,90 @@ +/* + * Device Tree Source for the r8a7795 SoC + * + * 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 +#include + +/ { + compatible = "renesas,r8a7795"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + /* 1core only at this point */ + a53_0: cpu@100 { + compatible = "arm,cortex-a53","arm,armv8"; + reg = <0x100>; + device_type = "cpu"; + }; + }; + + gic: interrupt-controller@0xf1010000 { + compatible = "arm,gic-400", "arm,cortex-a15-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0xf1010000 0 0x1000>, + <0x0 0xf1020000 0 0x2000>; + interrupts = ; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + clocks { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + extal_clk: extal_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "extal"; + }; + cpg_clocks: cpg_clocks@e6150000 { + compatible = "renesas,r8a7795-cpg-clocks", + "renesas,rcar-gen3-cpg-clocks"; + reg = <0 0xe6150000 0 0x1000>; + clocks = <&extal_clk>; + #clock-cells = <1>; + clock-output-names = "main", "pll0", "pll1","pll2", + "pll3", "pll4"; + }; + p_clk: p_clk { + compatible = "fixed-factor-clock"; + clocks = <&cpg_clocks RCAR_GEN3_CLK_PLL1>; + #clock-cells = <0>; + clock-div = <24>; + clock-mult = <1>; + clock-output-names = "p"; + }; + mstp3_clks: mstp3_clks@e615013c { + compatible = "renesas,r8a7795-mstp-clocks", + "renesas,cpg-mstp-clocks"; + reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>, + <0 0xe6150900 0 4>; + clocks = <&p_clk>; + #clock-cells = <1>; + renesas,clock-indices = ; + clock-output-names = "irda"; + }; + }; +}; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h new file mode 100644 index 0000000..fc1c4da --- /dev/null +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -0,0 +1,31 @@ +#ifndef __DT_BINDINGS_CLOCK_RCAR_GEN3_H__ +#define __DT_BINDINGS_CLOCK_RCAR_GEN3_H__ + +/* CPG */ +#define RCAR_GEN3_CLK_MAIN 0 +#define RCAR_GEN3_CLK_PLL0 1 +#define RCAR_GEN3_CLK_PLL1 2 +#define RCAR_GEN3_CLK_PLL2 3 +#define RCAR_GEN3_CLK_PLL3 4 +#define RCAR_GEN3_CLK_PLL4 5 + +/* MSTP0 */ + +/* MSTP1 */ + +/* MSTP2 */ + +/* MSTP3 */ +#define RCAR_GEN3_CLK_IRDA 10 + +/* MSTP5 */ + +/* MSTP7 */ + +/* MSTP8 */ + +/* MSTP9 */ + +/* MSTP10 */ + +#endif /* __DT_BINDINGS_CLOCK_RCAR_GEN3_H__ */