From patchwork Thu Aug 20 09:26:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7042911 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 0E97A9F344 for ; Thu, 20 Aug 2015 09:26:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E6FE7205B6 for ; Thu, 20 Aug 2015 09:26:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6C91205AA for ; Thu, 20 Aug 2015 09:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751210AbbHTJ0Z (ORCPT ); Thu, 20 Aug 2015 05:26:25 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:27729 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751016AbbHTJ0Y (ORCPT ); Thu, 20 Aug 2015 05:26:24 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 20 Aug 2015 18:26:22 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id A080E52080; Thu, 20 Aug 2015 18:26:22 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 93B748002E; Thu, 20 Aug 2015 18:26:22 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 8B8D08002D; Thu, 20 Aug 2015 18:26:22 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id UAR02182; Thu, 20 Aug 2015 18:26:22 +0900 X-IronPort-AV: E=Sophos;i="5.15,714,1432566000"; d="scan'";a="193911002" Received: from mail-sg2apc01lp0242.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.242]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 20 Aug 2015 18:26:21 +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:19 +0000 Message-ID: <87d1yib9gk.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 07/17 v6][RFC] arm64: renesas: r8a7795: Add initial 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: <87oai2b9rj.wl%kuninori.morimoto.gx@renesas.com> References: <87oai2b9rj.wl%kuninori.morimoto.gx@renesas.com> Date: Thu, 20 Aug 2015 09:26:19 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0024.apcprd02.prod.outlook.com (25.164.90.162) To HK2PR06MB0594.apcprd06.prod.outlook.com (25.161.187.145) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 2:bkKxpTCOJiOA+SqS4LOI7TUZ9JGVmMxR1M2wRychNSMvYHuBAUD8JWu7ES7Q+fnexmkWYBw2mgiP51ueA/NUH+tZswYEVjDEUicDL82RuWOCfVaV35BZbJFX/tMSblMX30Q6+/zQg8Eg1Z+DnkjWT8j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bYWa9xmM1DX4kUlMHo+k1Q8ciT1hWtr9d8HKywDVp7g6UWIU6rF0bJmEhFIWr+c0icUZs3xdlwhefSLh1AreZQWDSYdK65tz57EMT72nuSZLX8O4VkqSLrc/Q8WgSdLtYKYIx+VNDpOgayD6VE4/o3M6jRB/eapcG7jm7LS0ooKPtZL1KE6afckX463Iu+hE890bOnVkJQUph4hE7vBt6AViGx98clfmehluvZNvlmhwYhH4gW3TGSN2NViEqbN5QdDvoQ1A7/cV/xqL7SOkW5MVOTDtJbiX99GiBfMzf9naNE9tKP 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)(2004002)(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:p+gNam7f1VjYlqrwaQMVeJobISNPLG5CxRc8/v1Ch?= =?us-ascii?Q?PPHLiG6Z1/BRU9XG4d4YqBgFsb6iuydcdMSQjvoQP90TQAnpAZlcW0UoM4Rh?= =?us-ascii?Q?i5CEBKa9hmret3l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ascii?Q?4ILUGsIku6Hh6SAm4ByEjv5uU/ZadQy1i9fsnzvGDYv8/1+ImEFuC688j6yM?= =?us-ascii?Q?gY9uDHwXz7KmEnemU2bFtlHqKl8+BunpM3uZts/VTcsQ/yPqT5SZsvaWlm1d?= =?us-ascii?Q?ip9wJVG3terzrQCtaIuBOEIhsfRaPhz8umv71Cl/nV/rwmTe4jmB8eRz+mPb?= =?us-ascii?Q?ZxW2Hv+tgv8D5zwyVjFVdg/XNixBdwmkS8PkLC5NTgs+Qd1Ho3g12czF2qZP?= =?us-ascii?Q?O8I48cfYmC07wlqo0J+yxKl6OqYdtKRBAYIXFbH?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 5:d9gwJirE06Ql8FIORc3nAPitCr7wftK1ovZAkmdap4lysZDKgymZfBfkqkogrzzQ2ZdbKfRdEcB95eq9YEy4bV7DvdaVZgOg65Sz5RggW+VJ9Jd7IFJ5g7vlNZHswHVyTEfOedN16qzJfoH6aNK2sQ==; 24:jkhT9zhh3QL1abc9YvXhnCyeU6Plx0p5D2aJFuc71DkZhIZCiim+lf2yHmZv65A8LeT9QJf5jJakw1iom+8g4+YpC+7ucFuBg2GAvK/nJ/g=; 20:qxVpDNXI/LcjAUTZLfct9orF7m0ZHkHuFnWPPUhQVUF6YQmg0z+uJkXTbhF5Hl0rRf6CuGwro7Ce2Cbmf/jZROUCzEzPcHx5Htg4DTzsdhYTjGE1IcQ6Z0iUPBGI47OiMpVdvTxNuzAcecEelb5ch67kkaik8GBzpgCjTb7OTBE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2015 09:26:19.0312 (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 Gaku Inami created original patch, and Kuninori updated DTSI Signed-off-by: Gaku Inami Signed-off-by: Kuninori Morimoto --- v5 -> v6 - cgp goes to under root - remved clock-output-name - p_clk -> s3d4_clks arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/renesas/Makefile | 5 ++ arch/arm64/boot/dts/renesas/r8a7795.dtsi | 89 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 38 +++++++++++++ 4 files changed, 133 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/Makefile b/arch/arm64/boot/dts/Makefile index d9f8833..54e4011 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -9,6 +9,7 @@ dts-dirs += hisilicon dts-dirs += marvell dts-dirs += mediatek dts-dirs += qcom +dts-dirs += renesas dts-dirs += rockchip dts-dirs += sprd dts-dirs += xilinx diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile new file mode 100644 index 0000000..6aeefd9 --- /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..f013814 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#include +#include + +/ { + compatible = "renesas,r8a7795"; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + /* 1core only at this point */ + a57_0: cpu@0 { + compatible = "arm,cortex-a57", "arm,armv8"; + reg = <0x0>; + device_type = "cpu"; + }; + }; + + extal_clk: extal_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + + cpg { + #address-cells = <2>; + #size-cells = <2>; + #clock-cells = <1>; + ranges; + + s3d4_clks: s3d4 { + compatible = "fixed-factor-clock"; + clocks = <&cpg_clocks R8A7795_CLK_PLL1>; + #clock-cells = <0>; + clock-div = <24>; + clock-mult = <1>; + }; + + cpg_clocks: cpg_clocks@e6150000 { + compatible = "renesas,r8a7795-cpg-clocks", + "renesas,rcar-gen3-cpg-clocks"; + reg = <0 0xe6150000 0 0x1000>; + clocks = <&extal_clk>; + }; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gic: interrupt-controller@0xf1010000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0xf1010000 0 0x1000>, + <0x0 0xf1020000 0 0x2000>; + interrupts = ; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + }; +}; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h new file mode 100644 index 0000000..334fa13 --- /dev/null +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2015 Renesas Electronics Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ +#ifndef __DT_BINDINGS_CLOCK_R8A7795_H__ +#define __DT_BINDINGS_CLOCK_R8A7795_H__ + +/* CPG */ +#define R8A7795_CLK_MAIN 0 +#define R8A7795_CLK_PLL0 1 +#define R8A7795_CLK_PLL1 2 +#define R8A7795_CLK_PLL2 3 +#define R8A7795_CLK_PLL3 4 +#define R8A7795_CLK_PLL4 5 + +/* MSTP0 */ + +/* MSTP1 */ + +/* MSTP2 */ + +/* MSTP3 */ + +/* MSTP5 */ + +/* MSTP7 */ + +/* MSTP8 */ + +/* MSTP9 */ + +/* MSTP10 */ + +#endif /* __DT_BINDINGS_CLOCK_R8A7795_H__ */