From patchwork Tue Jul 22 21:25:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4605681 Return-Path: X-Original-To: patchwork-linux-arm@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 3E3F3C0514 for ; Tue, 22 Jul 2014 21:27:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7474220179 for ; Tue, 22 Jul 2014 21:27:37 +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 A7B142018B for ; Tue, 22 Jul 2014 21:27:36 +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 1X9hZN-0004jx-AM; Tue, 22 Jul 2014 21:25:57 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9hZK-0004aq-2Z for linux-arm-kernel@lists.infradead.org; Tue, 22 Jul 2014 21:25:54 +0000 Received: by mail-lb0-f178.google.com with SMTP id c11so208339lbj.37 for ; Tue, 22 Jul 2014 14:25:31 -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=RD4U7/p8yCec6wE9dbGJaCAJzpNhUNo88g42AcC/8+k=; b=Gwvc8l9mekOcqjfmeXJZ0R3iFVsW8OFTCR0uSvZ9aQLiZzBj0vn1K5A8vx0dWoJHa8 /gL7V+GeDh7xfmANP8+BANMFqHjc/RudhTSrNyFX94QISoi7PEE9NpqK7Aa4wNJH0KBv njM8BhLnxz/QZnIl0r88RuJeY/kd1Ds83zdHpSrnOLtkdwk5c9pZrUsKHL6dZtYQQ8GQ w3W7zJUHoal2zDSU0mwf7cnghuR1bqtmKRsEv1qGoJA1KV3h9/aXhlBNTJpC8bAFYYMV DnA6VZgp98aDeKBlOsAB/ge2zMXKgxdJtx9bx5y5Kk3nfk3NeOppSo4d+0Ad17Zd6dre B8Cw== X-Gm-Message-State: ALoCoQnBgFbOAr/kOTP8m7MgOupFdduoqeuVnFYJ2MNivF1eaPF27Pf07QcSgEPExXfCToKYKMa5 X-Received: by 10.152.185.104 with SMTP id fb8mr38840003lac.64.1406064331161; Tue, 22 Jul 2014 14:25:31 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-157.pppoe.mtu-net.ru. [81.195.27.157]) by mx.google.com with ESMTPSA id rd7sm2201986lbb.33.2014.07.22.14.25.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 14:25:30 -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 v3 1/3] ARM: shmobile: r8a7791: add USB PHY DT support Date: Wed, 23 Jul 2014 01:25:29 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201407230122.49264.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201407230122.49264.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201407230125.30257.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140722_142554_296824_9D305D3D X-CRM114-Status: GOOD ( 10.64 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, linux-usb@vger.kernel.org, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-1.9 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 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(+) Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -550,6 +550,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>;