From patchwork Fri May 23 22:36:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4236091 Return-Path: X-Original-To: patchwork-linux-arm@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 7C4FA9F1F4 for ; Fri, 23 May 2014 22:39:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2A91203B5 for ; Fri, 23 May 2014 22:39:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D885D203AF for ; Fri, 23 May 2014 22:39:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wny57-0000mw-IT; Fri, 23 May 2014 22:36:53 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wny55-0000jS-Iz for linux-arm-kernel@lists.infradead.org; Fri, 23 May 2014 22:36:52 +0000 Received: by mail-lb0-f173.google.com with SMTP id 10so3126154lbg.4 for ; Fri, 23 May 2014 15:36:28 -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:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=bSZ1ZHRqrEL4oiJXNk+6wh+dGr5OjLeP6NX8LKGRpPk=; b=lSVeh6eQFaJ6NzyDo/k03rPe/+1GP2vfcVnL2sZoHTIbMgZrN77eDrVP5q3dQU7cme EPjHzt3YuorEMFTJGz4liaNSP7IA4npf9D2dlRUS/q3rCDqiATMKh8Jw0h5RVWPdzMeB t0wlkzBoI0OYe6jqnWTaXor4q1xvEgCiAji8hXrFKN1YMhvTHCymbK14v1+Wb1hsM/pp zGQETuoy34giF/DVgGJv2aQL43ULugh5+ZSFG0HqdJsxih/Ou63fFEd6Z5NubwOBxTKN WLN6/Nb81yjwDaG6f0Uc/rI8znWZ7TF9jtHDoqS/9f6AS/XmN8Rx6yzb891vrwXUewOs kqMw== X-Gm-Message-State: ALoCoQkqhouKZn+nLMopLw1/4DGwNZ4EcTLOw9+NvVNEMRtUGu6Jwaky3x1Wugs89itoh5LmC7Za X-Received: by 10.152.6.228 with SMTP id e4mr3839703laa.57.1400884588865; Fri, 23 May 2014 15:36:28 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp20-242.pppoe.mtu-net.ru. [81.195.20.242]) by mx.google.com with ESMTPSA id oc3sm4162203lbb.18.2014.05.23.15.36.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 15:36:28 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded 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 Subject: [PATCH v2 1/3] ARM: shmobile: r8a7791: add USB PHY DT support Date: Sat, 24 May 2014 02:36:36 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201405240234.47303.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201405240234.47303.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201405240236.37742.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140523_153651_810843_0A06723C X-CRM114-Status: GOOD ( 10.55 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,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 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 2: - added subnodes to the USB PHY node; - refreshed the patch. arch/arm/boot/dts/r8a7791.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -507,6 +507,32 @@ status = "disabled"; }; + usbphy: usb-phy@e6590100 { + compatible = "renesas,usb-phy-r8a7791"; + reg = <0 0xe6590100 0 0x100>; + #phy-cells = <2>; + clocks = <&mstp7_clks R8A7791_CLK_HSUSB>; + clock-names = "usbhs"; + status = "disabled"; + + usb-phy@0,0 { + renesas,phy-select = <0 0>; + renesas,ugctrl2-masks = <0x00000030 0x00000010>; + }; + usb-phy@0,1 { + renesas,phy-select = <0 1>; + renesas,ugctrl2-masks = <0x00000030 0x00000030>; + }; + usb-phy@1,0 { + renesas,phy-select = <1 0>; + renesas,ugctrl2-masks = <0x80000000 0x00000000>; + }; + usb-phy@1,1 { + renesas,phy-select = <1 1>; + renesas,ugctrl2-masks = <0x80000000 0x80000000>; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>;