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: 4245611 Return-Path: X-Original-To: patchwork-linux-sh@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 1D7DA9F32B for ; Mon, 26 May 2014 22:18:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 41186201BB for ; Mon, 26 May 2014 22:18:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50BAC201BA for ; Mon, 26 May 2014 22:18:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbaEZWSb (ORCPT ); Mon, 26 May 2014 18:18:31 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:57206 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167AbaEZWSa (ORCPT ); Mon, 26 May 2014 18:18:30 -0400 Received: by mail-la0-f47.google.com with SMTP id pn19so5939886lab.6 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=NQAtdtPTz1x46NeeofySU5L5+nSZ3tlVYrCV8K8U+QYmF0MT4HhGDqIKEd0Ca7x9y0 2lUEltCMycdxhlqayuc9cAeH8K64bHnX7GooTH7pnevLLKglkPwDZR1EFqEkiGCWXbs4 CAgWGC5uD7NaRw+NUAlbRXkAOgwG9DcUqTocZShYJNtZrunR65dC+oe6TxGIyAQCXTms AObXCnGmUo2bWbHEzkJRJfGh84x6A9wkbPXV2/T54chxleioAjlgoBAQJbO0FQz6LM2K k3V/wwLrJqww1mTM7hzmS9td0+oO/XGBwuzS60Jz+5oAurklIhO7K0Gngq0KZX9MeL5+ 06DQ== X-Gm-Message-State: ALoCoQmE8Z2Nz2qGWhCFqNmU+jv3PMpoSTNt0rDBf3OXUl47Rr7EarSLStlyY1BnoXzxqR8wwZFP 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 Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org 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> 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 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(+) -- 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/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"; + }; }; };