From patchwork Fri Sep 26 21:08:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4987611 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AA3D69F1D4 for ; Fri, 26 Sep 2014 21:08:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC69820221 for ; Fri, 26 Sep 2014 21:08:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1A5320204 for ; Fri, 26 Sep 2014 21:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756142AbaIZVIR (ORCPT ); Fri, 26 Sep 2014 17:08:17 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:38253 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755764AbaIZVIQ (ORCPT ); Fri, 26 Sep 2014 17:08:16 -0400 Received: by mail-lb0-f178.google.com with SMTP id z12so12485888lbi.23 for ; Fri, 26 Sep 2014 14:08:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=183ipZLrECxdr/UHGqi/qrgI7+341HN1g2B8O2eLUAA=; b=GPhdd9/rGi8UZBW/nbWZO0Y1n3g8WE40stljYufhz9hKowGM1fhw0PFVW9xTvXSDkI 4OPTsfQ8At0zXITompkFfc474P9CF9RkBPVGjqKqxCbhxl4i5Ap24UA7uMvmmE8+VGqB itfzZxdJtFu3RIDzYS2giyPKfFfea2OKGNSKT5NL1nhl5HN2jQ7YxH/X25mdIfIgN/ya /HGuqunLC7+G3cn6Px1ZHhMZW2SJ7JBu5wV2qKzdxdoAY1Xopk6uNB1XjW7oBGOquc98 DqX+nTiqse/oyT/f4WPnWBxiwrIgERmNM0v5Op0n/yh1CFxxyuKyUhNXPJPVHNl0aRoT s1/A== X-Gm-Message-State: ALoCoQmTfQKbDpRG/RWOnUsSjI+YCGXh3leOlqIIxL6rUeCB5ymrb/pfEeNgv3h60gTkQg2vwHug X-Received: by 10.152.27.66 with SMTP id r2mr22912812lag.84.1411765695351; Fri, 26 Sep 2014 14:08:15 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp30-229.pppoe.mtu-net.ru. [81.195.30.229]) by mx.google.com with ESMTPSA id j3sm2259303lah.0.2014.09.26.14.08.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Sep 2014 14:08:14 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v4 1/3] ARM: shmobile: r8a7791: add USB PHY DT support Date: Sat, 27 Sep 2014 01:08:12 +0400 Message-ID: <2840152.T6qjI3ulQ6@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.13.3 (Linux/3.16.3-200.fc20.x86_64; KDE/4.13.3; x86_64; ; ) In-Reply-To: <3383603.zZsCVpCDbD@wasted.cogentembedded.com> References: <3383603.zZsCVpCDbD@wasted.cogentembedded.com> MIME-Version: 1.0 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.6 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 Define the R8A7791 generic part of the USB PHY device node. It is up to the board file to enable the device. Signed-off-by: Sergei Shtylyov --- Changes in version 4: - refreshed the patch. Changes in version 3: - changed subnodes of the USB PHY node to be per-channel; - changed "renesas,phy-select" property to "reg" in the subnodes, and thus added "#address-cells" and "#size-cells" properties to the parent node; - moved "#phy-cells" property from the parent node to the subnodes, changing its value to <1>; - refreshed the patch. Changes in version 2: - added subnodes to the USB PHY node; - refreshed the patch. arch/arm/boot/dts/r8a7791.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 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 @@ -637,6 +637,25 @@ status = "disabled"; }; + usbphy: usb-phy@e6590100 { + compatible = "renesas,usb-phy-r8a7791"; + reg = <0 0xe6590100 0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&mstp7_clks R8A7791_CLK_HSUSB>; + clock-names = "usbhs"; + status = "disabled"; + + usb0: usb-channel@0 { + reg = <0>; + #phy-cells = <1>; + }; + usb2: usb-channel@2 { + reg = <2>; + #phy-cells = <1>; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>;