From patchwork Mon May 26 22:18:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4245671 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 98171BF90B for ; Mon, 26 May 2014 22:21:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD4D0201BA for ; Mon, 26 May 2014 22:21:09 +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 EA16C20125 for ; Mon, 26 May 2014 22:21:08 +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 1Wp3EV-0006s4-A4; Mon, 26 May 2014 22:19:03 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wp3EK-0006LH-3D for linux-arm-kernel@lists.infradead.org; Mon, 26 May 2014 22:18:52 +0000 Received: by mail-la0-f41.google.com with SMTP id e16so6019492lan.14 for ; Mon, 26 May 2014 15:18: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:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=muW3yG4aQzrTnAE1pT4kXoqzsaGIbNaYq3EEtW8o16M=; b=HjU9DnrsLe59TAcc+1wX7Z2Y33rsuy6VuB2f6KhZHIu3PC+x0KlqWfe4w6MqFQcDCx 8OgJS5Y31WIUGFN1LeNkgXcSTvcXdzyUFF/fHd6pvAun3dg4KAebmw/FbRKaBSTm7gkN 6xR3aSnrPUROHLa5tkhd45Zj4cuO/0KTA1U+n9nRuYFat25XyJ3/OlerS1yb6PuyKm4n sIRw+hDn3QhETdYxhQl3xrxYMuOJRPVMNd4nsxkWA2XNZPVFTsHyoxN9gYiy9OAXXayX 1Fj+sP7FKnpnzGARAE+42yBV0rrOrL7g94/fQX4Nystyc29uGT/LZy5bPyscpw2BpnPR 2vBA== X-Gm-Message-State: ALoCoQlE8tRGDN+D8db82RcHrf75C9RjdhTZYQeANPNhBDsI+vAHQMeZeRb1EF1LSeIy/ZatNlsV X-Received: by 10.152.6.3 with SMTP id w3mr19918552law.34.1401142708448; Mon, 26 May 2014 15:18:28 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp18-86.pppoe.mtu-net.ru. [81.195.18.86]) by mx.google.com with ESMTPSA id o1sm13250149lbw.27.2014.05.26.15.18.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 May 2014 15:18:27 -0700 (PDT) To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2] ARM: shmobile: r8a7791: link PCI USB devices to USB PHY From: Sergei Shtylyov Organization: Cogent Embedded Date: Tue, 27 May 2014 02:18:28 +0400 MIME-Version: 1.0 Message-Id: <201405270218.30040.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140526_151852_340738_99FBBCE5 X-CRM114-Status: GOOD ( 10.92 ) X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, magnus.damm@gmail.com, robh+dt@kernel.org, galak@codeaurora.org, 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 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.15-rc7-20140526' tag of Simon Horman's 'renesas.git' repo plus R8A7791/Koelsch/Henninger PCI and USB PHY support patches posted before. The patch requires the internal PCI DT support, USB PHY driver, and USB HCD generic PHY support (also already posted) in order to work. 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 @@ -923,6 +923,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 = <&usbphy 0 0>; + phy-names = "usb"; + }; + + usb@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 0 0>; + phy-names = "usb"; + }; }; pci1: pci@ee0d0000 { @@ -941,5 +955,19 @@ 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 = <&usbphy 1 0>; + phy-names = "usb"; + }; + + usb@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 1 0>; + phy-names = "usb"; + }; }; };