From patchwork Fri May 23 22:28:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4236031 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 DA69CBF90B for ; Fri, 23 May 2014 22:28:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10E9C203B5 for ; Fri, 23 May 2014 22:28:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38750203B6 for ; Fri, 23 May 2014 22:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154AbaEWW2E (ORCPT ); Fri, 23 May 2014 18:28:04 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:44503 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbaEWW2E (ORCPT ); Fri, 23 May 2014 18:28:04 -0400 Received: by mail-la0-f47.google.com with SMTP id pn19so4611665lab.20 for ; Fri, 23 May 2014 15:28:02 -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=GfcAwbC6AtVmPiXt45FdXOxi0efPJkYKUyL+0CddHoI=; b=OxGZvB73+QlCMGteac5DubkU4mStp/Dp97Cc0ALNcLbWT36sVX2Cs8p96Jt/9dHENE rprzu2MrpQtIDocNKADFbhDESNKMR6Oqen/1XNO3ig9xT17Fcdfg5Bbl/8+0Vq3NivJy ukZyXMvsn2APbr6tONbhlg+lSK4AB0IOsm8DRbxPkzJ0vEuWG2d8FXxOKuCvHdmlJlNx 7arMBZ6snPpGSK9QQ2SWMr2ZtX0DQU685vs+SBiQAn4SwYI0pZ85XPm148sfVGAQ0z8T j2nu1UOmJmcroiBcWEGq1z5b65GgI9uphpHKbdMnwsLUBB6nSUcJW5n34U0jCy7b9kg1 1XeQ== X-Gm-Message-State: ALoCoQlJQ/cGjApr407IvsriIaFIO6KtmaT3i2EYNTx74bNllDj9Y4cLnZSqc5ySq6adem/8WWIH X-Received: by 10.112.46.97 with SMTP id u1mr4109201lbm.50.1400884081997; Fri, 23 May 2014 15:28:01 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp20-242.pppoe.mtu-net.ru. [81.195.20.242]) by mx.google.com with ESMTPSA id lc3sm3608847lab.7.2014.05.23.15.28.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 15:28:01 -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/2] ARM: shmobile: r8a7790: add USB PHY DT support Date: Sat, 24 May 2014 02:28:09 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org References: <201405240226.27820.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201405240226.27820.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201405240228.10824.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=-7.5 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 R8A7790 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/r8a7790.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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/r8a7790.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi @@ -462,6 +462,32 @@ status = "disabled"; }; + usbphy: usb-phy@e6590100 { + compatible = "renesas,usb-phy-r8a7790"; + reg = <0 0xe6590100 0 0x100>; + #phy-cells = <2>; + clocks = <&mstp7_clks R8A7790_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>;