From patchwork Sun Apr 17 12:46:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 8862771 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 77A43BF29F for ; Sun, 17 Apr 2016 12:46:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB9BB201B4 for ; Sun, 17 Apr 2016 12:46:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 208C9201C0 for ; Sun, 17 Apr 2016 12:46:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751780AbcDQMqy (ORCPT ); Sun, 17 Apr 2016 08:46:54 -0400 Received: from sauhun.de ([89.238.76.85]:55960 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbcDQMqy (ORCPT ); Sun, 17 Apr 2016 08:46:54 -0400 Received: from p4fe25326.dip0.t-ipconnect.de ([79.226.83.38]:46194 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1arm6G-0000Cg-NN; Sun, 17 Apr 2016 14:46:52 +0200 From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Geert Uytterhoeven Subject: [RFC 2/2] ARM: shmobile: r8a7740: add "sd" clock and use it Date: Sun, 17 Apr 2016 14:46:41 +0200 Message-Id: <1460897201-7184-3-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1460897201-7184-1-git-send-email-wsa@the-dreams.de> References: <1460897201-7184-1-git-send-email-wsa@the-dreams.de> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 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: Wolfram Sang Create the "sd" clock and connect the SDHI MSTP clocks to it. Those shouldn't be connect to HP directly, because they shouldn't be allowed to change the rate of the HP clock. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/r8a7740.dtsi | 8 ++++---- include/dt-bindings/clock/r8a7740-clock.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index 39b2f88ad151e4..fefe99860edf69 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -474,7 +474,7 @@ "usb24s", "i", "zg", "b", "m1", "hp", "hpp", "usbp", "s", "zb", "m3", - "cp"; + "cp", "sd"; }; /* Variable factor clocks (DIV6) */ @@ -623,8 +623,8 @@ <&cpg_clocks R8A7740_CLK_HP>, <&sub_clk>, <&cpg_clocks R8A7740_CLK_HP>, - <&cpg_clocks R8A7740_CLK_HP>, - <&cpg_clocks R8A7740_CLK_HP>, + <&cpg_clocks R8A7740_CLK_SD>, + <&cpg_clocks R8A7740_CLK_SD>, <&cpg_clocks R8A7740_CLK_HP>, <&cpg_clocks R8A7740_CLK_HP>, <&cpg_clocks R8A7740_CLK_HP>; @@ -642,7 +642,7 @@ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0xe6150140 4>, <0xe615004c 4>; clocks = <&cpg_clocks R8A7740_CLK_HP>, - <&cpg_clocks R8A7740_CLK_HP>, + <&cpg_clocks R8A7740_CLK_SD>, <&cpg_clocks R8A7740_CLK_HP>, <&cpg_clocks R8A7740_CLK_HP>; #clock-cells = <1>; diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-bindings/clock/r8a7740-clock.h index 476135da0f2388..ca34e5314c4378 100644 --- a/include/dt-bindings/clock/r8a7740-clock.h +++ b/include/dt-bindings/clock/r8a7740-clock.h @@ -28,6 +28,7 @@ #define R8A7740_CLK_ZB 14 #define R8A7740_CLK_M3 15 #define R8A7740_CLK_CP 16 +#define R8A7740_CLK_SD 17 /* MSTP1 */ #define R8A7740_CLK_CEU21 28