From patchwork Fri Apr 4 23:49:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3941491 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 68EF4BFF02 for ; Fri, 4 Apr 2014 23:49:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C81F20373 for ; Fri, 4 Apr 2014 23:49:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 970F52035E for ; Fri, 4 Apr 2014 23:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbaDDXto (ORCPT ); Fri, 4 Apr 2014 19:49:44 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:53570 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752374AbaDDXtn (ORCPT ); Fri, 4 Apr 2014 19:49:43 -0400 Received: by mail-la0-f45.google.com with SMTP id hr17so3045395lab.32 for ; Fri, 04 Apr 2014 16:49:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=xRkP/Gh6yoJrE/Sk7EZMXufmPM9FD0odRHhkUNjxRfw=; b=H9sMM7VDQHqqUKebeQtj5qmy3BsYfhue3rEE7RArtFAPqcU0czKEme5ZfwAIA1BpFu UBE9GxGzs6DWQXutXwP2FjGR/VdWsZ3C79lZvROZ0Rfy3Up5qiRdhq+MvdTJTCAy7Xfr sJafI8DBrfPiazNLPBvYisFYBSxQrY5xr8zZU8enUnvxqIHYUMJdRp36kC4S9sZK7rHM rIJ8P4t6gfkBZHrcgWbvnHjW+RvfEMoH6ys+8sz65ZWaBWBIWF2zbXQlNy+gxfpxAwyu /j0yBkl1xzE8CsP918PGaNe/7n7ueZyL9+BNU7cVs9xeCPVjhzumcZhF5ULcbbdPIgPd 0i/A== X-Gm-Message-State: ALoCoQkHv04/cG8i+hQsVMg5MaZGxV9jJaUIL+WCrYQTbv+z/EAXKoxjZh3GEEliMtiYP7pGOcf/ X-Received: by 10.152.234.229 with SMTP id uh5mr15161lac.64.1396655382244; Fri, 04 Apr 2014 16:49:42 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp85-140-141-182.pppoe.mtu-net.ru. [85.140.141.182]) by mx.google.com with ESMTPSA id qf1sm6607149lbc.8.2014.04.04.16.49.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 04 Apr 2014 16:49:41 -0700 (PDT) To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: [PATCH] ARM: shmobile: r8a7791: add EHCI clock DT support Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Sat, 5 Apr 2014 03:49:55 +0400 MIME-Version: 1.0 Message-Id: <201404050349.56764.sergei.shtylyov@cogentembedded.com> 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.2 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Add the USB EHCI clock to the R8A7791 device tree. Signed-off-by: Sergei Shtylyov Acked-by: Laurent Pinchart --- The patch is against 'renesas-devel-3.14-20140403' tag of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7791.dtsi | 25 +++++++++++++++---------- include/dt-bindings/clock/r8a7791-clock.h | 1 + 2 files changed, 16 insertions(+), 10 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -774,20 +774,25 @@ mstp7_clks: mstp7_clks@e615014c { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; - clocks = <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>, - <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, - <&zx_clk>, <&zx_clk>, <&zx_clk>; + clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, + <&p_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>, + <&p_clk>, <&p_clk>, <&p_clk>, <&zx_clk>, + <&zx_clk>, <&zx_clk>; #clock-cells = <1>; renesas,clock-indices = < - R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5 - R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0 - R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1 - R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0 - R8A7791_CLK_LVDS0 + R8A7791_CLK_EHCI R8A7791_CLK_HSUSB + R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5 + R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 + R8A7791_CLK_HSCIF0 R8A7791_CLK_SCIF3 + R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1 + R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 + R8A7791_CLK_DU0 R8A7791_CLK_LVDS0 >; clock-output-names = - "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0", - "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0"; + "ehci", "hsusb", "hscif2", "scif5", + "scif4", "hscif1", "hscif0", "scif3", + "scif2", "scif1", "scif0", "du1", + "du0", "lvds0"; }; mstp8_clks: mstp8_clks@e6150990 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; Index: renesas/include/dt-bindings/clock/r8a7791-clock.h =================================================================== --- renesas.orig/include/dt-bindings/clock/r8a7791-clock.h +++ renesas/include/dt-bindings/clock/r8a7791-clock.h @@ -63,6 +63,7 @@ #define R8A7791_CLK_PWM 23 /* MSTP7 */ +#define R8A7791_CLK_EHCI 3 #define R8A7791_CLK_HSUSB 4 #define R8A7791_CLK_HSCIF2 13 #define R8A7791_CLK_SCIF5 14