From patchwork Tue Jul 22 22:25:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4606371 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 519269F2B8 for ; Tue, 22 Jul 2014 22:27:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84A91201B4 for ; Tue, 22 Jul 2014 22:27:29 +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 BF00420179 for ; Tue, 22 Jul 2014 22:27:28 +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 1X9iVP-00084E-1u; Tue, 22 Jul 2014 22:25:55 +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 1X9iVK-0007pI-Ta for linux-arm-kernel@lists.infradead.org; Tue, 22 Jul 2014 22:25:51 +0000 Received: by mail-lb0-f173.google.com with SMTP id p9so262543lbv.4 for ; Tue, 22 Jul 2014 15:25:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=pS0L36I1maL9owvSbRTTH5M4mY0Qxmgu7+WLG69MUIU=; b=Hv39Eni5ZDWL5GuK0ri2iFgq+IRrOjdIpopcPvfWKoiKVpsULj2XVmXb0oTKsKEp5/ wF/MRxftGoz6wtIZGVKSD8nrhQvGX8clwt9CInwuSkJe2EfEMCHjeeTjsrSsrjUbx/8e ypo0BbwVGEE2ZaHemDPv3RnRxNClKyd2WKYYqox6/nWpyqeCq2tdfLIjl6VjbZVnSXBs sDaKc14Io4JaAqu7FWCtKeQlRqprxee/C5ODoLWSjTHU87F97PEjuw4IaXBJlYGdJJsG vqVDzuUl/Zyduv98iwydqbe5y1PzJajfFyBGnx/WpEgUSY1xROAa8jBJohHdlAicqVaH 3LVg== X-Gm-Message-State: ALoCoQnOmqP9pqNmRGSvVR/ox/S/Ikwk92lu3autZ6cE1N8OQZG+BxJlVO3bKHvis7VtC9FXQHCg X-Received: by 10.112.13.137 with SMTP id h9mr36509219lbc.33.1406067927851; Tue, 22 Jul 2014 15:25:27 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-157.pppoe.mtu-net.ru. [81.195.27.157]) by mx.google.com with ESMTPSA id wc7sm2391508lbb.39.2014.07.22.15.25.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 15:25:26 -0700 (PDT) To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: [PATCH v3] ARM: shmobile: r8a7791: link PCI USB devices to USB PHY From: Sergei Shtylyov Organization: Cogent Embedded Date: Wed, 23 Jul 2014 02:25:25 +0400 MIME-Version: 1.0 Message-Id: <201407230225.26798.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140722_152551_169083_FB3D6DD2 X-CRM114-Status: GOOD ( 10.18 ) 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 Describe the PCI USB devices that are behind the PCI bridges, adding necessary links to the USB PHY device. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-v3.16-rc5-20140722' tag of Simon Horman's 'renesas.git' repo plus R8A7791/Koelsch/Henninger USB PHY support patches posted before. The patch requires the USB PHY driver, and USB HCD generic PHY support (also already posted) in order to work. Changes in version 3: - adjusted "phys" properties in the PCI OHCI/EHCI device nodes; - resolved rejects. Changes in version 2: - renamed the PCI OHCI/EHCI device nodes to comply with the PCI binding; - changed the PHY specifier in the PCI#1 node to reflect that channel #1 support was dropped; - resolved rejects. arch/arm/boot/dts/r8a7791.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -1030,6 +1030,20 @@ interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>; + + usb@0,1 { + reg = <0x800 0 0 0 0>; + device_type = "pci"; + phys = <&usb0 0>; + phy-names = "usb"; + }; + + usb@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usb0 0>; + phy-names = "usb"; + }; }; pci1: pci@ee0d0000 { @@ -1050,6 +1064,20 @@ interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>; + + usb@0,1 { + reg = <0x800 0 0 0 0>; + device_type = "pci"; + phys = <&usb2 0>; + phy-names = "usb"; + }; + + usb@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usb2 0>; + phy-names = "usb"; + }; }; pciec: pcie@fe000000 {