From patchwork Tue Jul 22 21:15:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4605611 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 D7E7BC0514 for ; Tue, 22 Jul 2014 21:15:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1641D20179 for ; Tue, 22 Jul 2014 21:15:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B517200E3 for ; Tue, 22 Jul 2014 21:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756713AbaGVVPz (ORCPT ); Tue, 22 Jul 2014 17:15:55 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:44652 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755563AbaGVVPy (ORCPT ); Tue, 22 Jul 2014 17:15:54 -0400 Received: by mail-lb0-f174.google.com with SMTP id c11so204213lbj.33 for ; Tue, 22 Jul 2014 14:15:53 -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=seXMkQoBTJoW8RWF9ZAnxKIAK6vjrwULvDKZgRk0HQw=; b=C31zMnzLyhDVkz79EMTvHCS1n48aMFAfcv5QeqPn83Mu578rXaGmWMWPLlkeMJjZX3 lKNBlixZ3hiVwfkBqcZ8FIqgR0HHCRDwBuxZlx6wxSITZzebXvJru/gl/w01d0IFs1o/ GNeY8NFkA6kju6+dmWHZflhi7O4XcIRYcMCL2umoo/V9V76QN8ENpA7EUdvGf4g+nDrj Bs4HyDEc0MJMHFiQwvX5Poq4AoYZgCHUIeOQ0TO4H3Wsk0ejrKqm9TsG7OrcCApIgCh4 XYqHV9O4EWr/LjvQnvGYEPsdl7w6KNLUZUrQtkUjEbwjTOsFrrdjALPGRJrXVvPRdMwx vffw== X-Gm-Message-State: ALoCoQk9YvCUhhyfObBCZmao1BPSnqxjY4P138eOyTx9Cuf95vLixo5ttWB6uXtE/RSbXU8T6v/C X-Received: by 10.112.34.78 with SMTP id x14mr15294212lbi.38.1406063753229; Tue, 22 Jul 2014 14:15:53 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-157.pppoe.mtu-net.ru. [81.195.27.157]) by mx.google.com with ESMTPSA id qx6sm2177302lbb.23.2014.07.22.14.15.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 14:15:52 -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/2] ARM: shmobile: r8a7790: add USB PHY DT support Date: Wed, 23 Jul 2014 01:15:51 +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, linux-usb@vger.kernel.org References: <201407230113.46444.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201407230113.46444.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201407230115.52372.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.9 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 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/r8a7790.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/r8a7790.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi @@ -505,6 +505,25 @@ status = "disabled"; }; + usbphy: usb-phy@e6590100 { + compatible = "renesas,usb-phy-r8a7790"; + reg = <0 0xe6590100 0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&mstp7_clks R8A7790_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>;