From patchwork Wed Apr 9 19:18: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: 3957171 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 B06179F391 for ; Wed, 9 Apr 2014 19:18:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E6824206BA for ; Wed, 9 Apr 2014 19:18:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60A29206B7 for ; Wed, 9 Apr 2014 19:18:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934020AbaDITS0 (ORCPT ); Wed, 9 Apr 2014 15:18:26 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:55568 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933721AbaDITSZ (ORCPT ); Wed, 9 Apr 2014 15:18:25 -0400 Received: by mail-lb0-f172.google.com with SMTP id c11so1540901lbj.3 for ; Wed, 09 Apr 2014 12:18:23 -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=vcXag9vUrjmon8sb/hvIa42iD7CI1r5SpJexzzJCWmA=; b=hPFfpMCVo5+BLP3icoj+n/FrPmDGFHGimuUZlOfRa20eYGJAmxASQBwiK2TrRCTYjl p5hAxLszpJ6QbDPHxHj26Cq/bp3hLDpgjrn2gQ9p6Nvsu0Fa2+SX9bKtprxzPY1mKa9Q d+eKLAUdfSu03quoHE9+/j3N4FvrSn48y07Suq944EGgfH3Q3wdxr3SmriolF76EYaQF SJW5kLIgjufgePxK/FNQze4ig3JAUPx33gnrS52dyLMNKaUAVmqHPLP1cGOITwMN6KBN liFjdn3DRfHb8VFW/5m9DDfvpvrk0UEkaiNy/0cnVstloYX1ZwOnx6Dy+YPiI6yX7DAp SvzQ== X-Gm-Message-State: ALoCoQkY1+Lj0bI/mQ0yKcBLsOI2XNXUuywGUIX7IAo5mb5WUUT6/IxrObkQyANNWNWqcZ3S20GW X-Received: by 10.112.27.133 with SMTP id t5mr8255438lbg.21.1397071103694; Wed, 09 Apr 2014 12:18:23 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp85-140-143-17.pppoe.mtu-net.ru. [85.140.143.17]) by mx.google.com with ESMTPSA id q6sm1843679lal.3.2014.04.09.12.18.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 09 Apr 2014 12:18:23 -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] ARM: shmobile: r8a7790: link PCI USb devices to USB PHY Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Wed, 9 Apr 2014 23:18:25 +0400 MIME-Version: 1.0 Message-Id: <201404092318.26231.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.2 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. Based on the original work by Ben Dooks . Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-v3.14-20140408' tag of Simon Horman's 'renesas.git' repo plus R8A7790/Lager PCI and USB PHY support patches posted yesterday and day before. The patch requires the internal PCI and USB PHY drivers (also already posted) in order to work... arch/arm/boot/dts/r8a7790.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/r8a7790.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi @@ -841,6 +841,20 @@ bus-range = <0 0>; #address-cells = <3>; #size-cells = <2>; + + pci@0,1 { + reg = <0x800 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 0 0>; + phy-names = "usb"; + }; + + pci@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 0 0>; + phy-names = "usb"; + }; }; pci1: pci@ee0b0000 { @@ -867,5 +881,19 @@ bus-range = <2 2>; #address-cells = <3>; #size-cells = <2>; + + pci@0,1 { + reg = <0x800 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 2 0>; + phy-names = "usb"; + }; + + pci@0,2 { + reg = <0x1000 0 0 0 0>; + device_type = "pci"; + phys = <&usbphy 2 0>; + phy-names = "usb"; + }; }; };