From patchwork Thu Sep 10 07:15: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: 7151331 X-Patchwork-Delegate: horms@verge.net.au 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 3EE109F39B for ; Thu, 10 Sep 2015 07:15:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F83220906 for ; Thu, 10 Sep 2015 07:15:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 276D820903 for ; Thu, 10 Sep 2015 07:15:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752126AbbIJHPY (ORCPT ); Thu, 10 Sep 2015 03:15:24 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:6617 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752055AbbIJHPX (ORCPT ); Thu, 10 Sep 2015 03:15:23 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 10 Sep 2015 16:15:22 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id DD0CD4CFB8; Thu, 10 Sep 2015 16:15:22 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id D98EC2806E; Thu, 10 Sep 2015 16:15:22 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id D50F22806D; Thu, 10 Sep 2015 16:15:22 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id SAL25962; Thu, 10 Sep 2015 16:15:22 +0900 X-IronPort-AV: E=Sophos;i="5.17,502,1437404400"; d="scan'";a="195342232" Received: from mail-pu1apc01lp0024.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.24]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Sep 2015 16:15: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 HK2PR06MB0596.apcprd06.prod.outlook.com (10.161.187.147) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 07:15:19 +0000 Message-ID: <87mvwun3zh.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 03/14][RFC] arm64: renesas: r8a7795: add MSTP10 support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Wolfram Sang , Simon CC: Magnus , Linux-SH In-Reply-To: <87si6mn452.wl%kuninori.morimoto.gx@renesas.com> References: <87si6mn452.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 10 Sep 2015 07:15:19 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0021.jpnprd01.prod.outlook.com (25.161.24.31) To HK2PR06MB0596.apcprd06.prod.outlook.com (25.161.187.147) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0596; 2:wEVvBAJlNtsW/pLKDvhshxjVQIKPAfaCyR4qEF4NqK0GneWFhH/7Enz/w4tCdSWFDyg3dnfeq4VSFtqbGlLJlyHC5n1U1SYQ6wKDnvCVsr3x8DtIMD7g8FNIP8Y4mZ/XJZ9cdHElcdX6ABtYFdwCmeSKaEb88q/FCKSnRX0TxW4=; 3:mSggMJdwQ5C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WeUEh6VNCYan0cENSywvL37HNtkWLtkKwPn/JgBq9mSlS8tko30OgLLv20OhuW/wLHxX5uGk0xHZ5rU65GucsL2ZhIWIxI1BrMdqM+gMLG/P8DoVEhICP4T7r0D3zwuXPMLWqzCYsY2PJYhCbjW5q8mbXChllsic9AXxgKb8YLEdcUuMh+5wXYUiojeNFS2ctJT+HEgg0yhcT4juSIub+Wxc8Q88AY2nliEWTMkbYyTdLSb8h225QjUotKTEAXcuikLV3dXSnllpBuVjY32xFFF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:HK2PR06MB0596; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0596; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(54356999)(122386002)(50986999)(40100003)(4001350100001)(106356001)(105586002)(4001540100001)(5001860100001)(2950100001)(53416004)(5001830100001)(189998001)(47776003)(5001960100002)(36756003)(66066001)(101416001)(69596002)(97736004)(5001770100001)(42186005)(86362001)(83506001)(5007970100001)(64706001)(23726002)(46406003)(76176999)(87976001)(46102003)(33646002)(50466002)(19580405001)(92566002)(5004730100002)(229853001)(77096005)(77156002)(68736005)(62966003)(81156007)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0596; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0596; 23:B9dltek4qT0cpZs6Eo9oLiWBrpP1BIPgg4u4MdMhu?= =?us-ascii?Q?3ShsojcSzPqY8wmZGVSeIFqrtGy0esBADlCyvByST+uqimjbrMsPltp2hx8l?= =?us-ascii?Q?uOJ0FI7CmARE+iXJK+Y8z49fv8LGXBPwmEDyQmj8JfQo9AQviJhGHRGl9v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2Ngc2yeoQ12Q2sknha3YbfZr86R/Va4nCG?= =?us-ascii?Q?qMiSD/BsPQGg0Ac22iXSJpSmB7e4RephjORSMFQteQSkFGIp1EAeSpOu4VT8?= =?us-ascii?Q?c+r7QqPgf3mytEqhvT1/KrznEPPrMvpQI2YE3HyHoQcqAZVNdNz9PwDBKpDo?= =?us-ascii?Q?eQBHemazaG8xzk08gbiwZp8yITf2pHcXwZDMeSBwTNAjaEgjYrdQ98Otco8X?= =?us-ascii?Q?Q7IRrCiQn9wZiXeY1E=3D?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0596; 5:jPwHA3DaMLu1RzwDqJFTu+Ih2sQ0nmy+GJ+paVhaWXU/eP+tUWLsmtPd7jTYzEnSeNRZwOmyOYDEbQ0M+1gbmjU6tmoECn/Fm45SnDx30uYdODfxUAWWzS9zn8uHxbWzKohSrY25hCVH4ThPrenn3Q==; 24:0pKcfMGAl/RPCKF1Lw1OjIPd+zRIJB1f2ZPg9alYnbDSwmxdd+I68AtqR/2pAha5RG+ZWDKCgiFyWVPjTBEIBahrnYGa2Q+fkmzGmhI5u+g=; 20:C8nrsdQ4Khf53QT5Hfmh8rdvD5eC70kmuevdk4aK6NHAO/jM/lGOcsL1ITYsuaxQp0uOFhiAJ2hSo+xs7jG3ieWL4cLIrKDSsigJNrwggU9+mcPMuXdctgM0BVhVrC1QvKzGLLzQLXfiMFKrets1UEbUKsImZ5e9DZ+ckC4WRv8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 07:15:19.7116 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0596 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 It is including SSI/SRC/CTU/MIX/DVC Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 39 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 26 +++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 969116d..f27b8d2 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -429,6 +429,45 @@ R8A7795_CLK_I2C0 >; }; + + mstp10_clks: mstp10_clks@e6150998 { + compatible = "renesas,r8a7795-mstp-clocks", "renesas,cpg-mstp-clocks"; + reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>; + #clock-cells = <1>; + clocks = <&s3d4_clk>, + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&s3d4_clk>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>; + clock-indices = < + R8A7795_CLK_SSI_ALL + R8A7795_CLK_SSI9 R8A7795_CLK_SSI8 R8A7795_CLK_SSI7 R8A7795_CLK_SSI6 R8A7795_CLK_SSI5 + R8A7795_CLK_SSI4 R8A7795_CLK_SSI3 R8A7795_CLK_SSI2 R8A7795_CLK_SSI1 R8A7795_CLK_SSI0 + R8A7795_CLK_SCU_ALL + R8A7795_CLK_SCU_DVC1 R8A7795_CLK_SCU_DVC0 + R8A7795_CLK_SCU_CTU1_MIX1 R8A7795_CLK_SCU_CTU0_MIX0 + R8A7795_CLK_SCU_SRC9 R8A7795_CLK_SCU_SRC8 R8A7795_CLK_SCU_SRC7 R8A7795_CLK_SCU_SRC6 R8A7795_CLK_SCU_SRC5 + R8A7795_CLK_SCU_SRC4 R8A7795_CLK_SCU_SRC3 R8A7795_CLK_SCU_SRC2 R8A7795_CLK_SCU_SRC1 R8A7795_CLK_SCU_SRC0 + >; + clock-output-names = + "ssi-all", + "ssi9", "ssi8", "ssi7", "ssi6", "ssi5", + "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", + "scu-all", + "scu-dvc1", "scu-dvc0", + "scu-ctu1-mix1", "scu-ctu0-mix0", + "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5", + "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0"; + }; }; }; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index b7c2c95..6c523bb 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -55,5 +55,31 @@ #define R8A7795_CLK_I2C0 31 /* MSTP10 */ +#define R8A7795_CLK_SSI_ALL 5 +#define R8A7795_CLK_SSI9 6 +#define R8A7795_CLK_SSI8 7 +#define R8A7795_CLK_SSI7 8 +#define R8A7795_CLK_SSI6 9 +#define R8A7795_CLK_SSI5 10 +#define R8A7795_CLK_SSI4 11 +#define R8A7795_CLK_SSI3 12 +#define R8A7795_CLK_SSI2 13 +#define R8A7795_CLK_SSI1 14 +#define R8A7795_CLK_SSI0 15 +#define R8A7795_CLK_SCU_ALL 17 +#define R8A7795_CLK_SCU_DVC1 18 +#define R8A7795_CLK_SCU_DVC0 19 +#define R8A7795_CLK_SCU_CTU1_MIX1 20 +#define R8A7795_CLK_SCU_CTU0_MIX0 21 +#define R8A7795_CLK_SCU_SRC9 22 +#define R8A7795_CLK_SCU_SRC8 23 +#define R8A7795_CLK_SCU_SRC7 24 +#define R8A7795_CLK_SCU_SRC6 25 +#define R8A7795_CLK_SCU_SRC5 26 +#define R8A7795_CLK_SCU_SRC4 27 +#define R8A7795_CLK_SCU_SRC3 28 +#define R8A7795_CLK_SCU_SRC2 29 +#define R8A7795_CLK_SCU_SRC1 30 +#define R8A7795_CLK_SCU_SRC0 31 #endif /* __DT_BINDINGS_CLOCK_R8A7795_H__ */