From patchwork Tue Mar 25 04:36:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3885211 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5B5DBBF540 for ; Tue, 25 Mar 2014 04:36:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 674B2201F2 for ; Tue, 25 Mar 2014 04:36:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DEA12013A for ; Tue, 25 Mar 2014 04:36:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750958AbaCYEgg (ORCPT ); Tue, 25 Mar 2014 00:36:36 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:34088 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbaCYEgg (ORCPT ); Tue, 25 Mar 2014 00:36:36 -0400 Received: by mail-pd0-f181.google.com with SMTP id p10so6228736pdj.40 for ; Mon, 24 Mar 2014 21:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=F0LQndEXupFwPTVezmXcfXZTw0NDK/d63jfYlZXv8k0=; b=aVgcEhYgibXKKFoTh1l5eTulOxSix+23com7l6Ar3CmHxxRD1UYRwXyrU8ib1PjUeH hy37RUz04BB6rHpjAHIPhdN2HEHZcs2APX5Nx7NM1OBk4pIzUtK5OL/SAHcIkht7cNWi fHeV9vjDr4f8H+TzVdaYWJT+aPMtZU6Pf0e31sYLvwF2xwr7SYnEG1ZncT+xuvp9sAZN GxqTrd3U5n9mSs/kGoTx73DeUTzKPeSFWnh9cqmGXYZLduoRi/Smpk8cATQn/m0vwM+E S/kODxOyO3ezRDTxZRliM3WS5oCtOJd4yxzVpzrLJzS/VjB4lE+WxROLjCzqwqO9uhda nxUQ== X-Received: by 10.66.216.129 with SMTP id oq1mr75877241pac.75.1395722195610; Mon, 24 Mar 2014 21:36:35 -0700 (PDT) Received: from morimoto-dell.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id vb7sm38740237pbc.13.2014.03.24.21.36.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 21:36:34 -0700 (PDT) Date: Mon, 24 Mar 2014 21:36:34 -0700 (PDT) Message-ID: <877g7idhdb.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 1/7] ARM: shmobile: r8a7790: add MSTP10 support on DTSI User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <878urydhee.wl%kuninori.morimoto.gx@gmail.com> References: <87ior2dhp9.wl%kuninori.morimoto.gx@gmail.com> <878urydhee.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") 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.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Kuninori Morimoto --- arch/arm/boot/dts/r8a7790.dtsi | 29 +++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7790-clock.h | 24 ++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index da69afc..5e7f23d 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -768,6 +768,35 @@ clock-output-names = "rcan1", "rcan0", "qspi_mod", "i2c3", "i2c2", "i2c1", "i2c0"; }; + mstp10_clks: mstp10_clks@e6150998 { + compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; + reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>; + clocks = <&p_clk>, /* parent of SCU */ + <&p_clk>, + <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, + <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, + <&mstp10_clks R8A7790_CLK_SCU>, <&mstp10_clks R8A7790_CLK_SCU>, + <&mstp10_clks R8A7790_CLK_SCU>, <&mstp10_clks R8A7790_CLK_SCU>, + <&mstp10_clks R8A7790_CLK_SCU>, <&mstp10_clks R8A7790_CLK_SCU>, + <&mstp10_clks R8A7790_CLK_SCU>, <&mstp10_clks R8A7790_CLK_SCU>, + <&mstp10_clks R8A7790_CLK_SCU>, <&mstp10_clks R8A7790_CLK_SCU>; + + #clock-cells = <1>; + clock-indices = < + R8A7790_CLK_SCU + R8A7790_CLK_SSI + R8A7790_CLK_SSI9 R8A7790_CLK_SSI8 R8A7790_CLK_SSI7 R8A7790_CLK_SSI6 R8A7790_CLK_SSI5 + R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0 + R8A7790_CLK_SRC9 R8A7790_CLK_SRC8 R8A7790_CLK_SRC7 R8A7790_CLK_SRC6 R8A7790_CLK_SRC5 + R8A7790_CLK_SRC4 R8A7790_CLK_SRC3 R8A7790_CLK_SRC2 R8A7790_CLK_SRC1 R8A7790_CLK_SRC0 + >; + clock-output-names = + "scu", "ssi", + "ssi9", "ssi8", "ssi7", "ssi6", "ssi5", + "ssi4", "ssi3", "ssi2", "ssi1", "ssi0", + "src9", "src8", "src7", "src6", "src5", + "src4", "src3", "src2", "src1", "src0"; + }; }; qspi: spi@e6b10000 { diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index 6548a5f..f73ccb9 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -104,4 +104,28 @@ #define R8A7790_CLK_I2C1 30 #define R8A7790_CLK_I2C0 31 +/* MSTP10 */ +#define R8A7790_CLK_SSI 5 +#define R8A7790_CLK_SSI9 6 +#define R8A7790_CLK_SSI8 7 +#define R8A7790_CLK_SSI7 8 +#define R8A7790_CLK_SSI6 9 +#define R8A7790_CLK_SSI5 10 +#define R8A7790_CLK_SSI4 11 +#define R8A7790_CLK_SSI3 12 +#define R8A7790_CLK_SSI2 13 +#define R8A7790_CLK_SSI1 14 +#define R8A7790_CLK_SSI0 15 +#define R8A7790_CLK_SCU 17 +#define R8A7790_CLK_SRC9 22 +#define R8A7790_CLK_SRC8 23 +#define R8A7790_CLK_SRC7 24 +#define R8A7790_CLK_SRC6 25 +#define R8A7790_CLK_SRC5 26 +#define R8A7790_CLK_SRC4 27 +#define R8A7790_CLK_SRC3 28 +#define R8A7790_CLK_SRC2 29 +#define R8A7790_CLK_SRC1 30 +#define R8A7790_CLK_SRC0 31 + #endif /* __DT_BINDINGS_CLOCK_R8A7790_H__ */