From patchwork Tue Jul 22 22:24:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4606911 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 3D2309F2B8 for ; Tue, 22 Jul 2014 22:46:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 730412018E for ; Tue, 22 Jul 2014 22:46:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 701432018A for ; Tue, 22 Jul 2014 22:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932838AbaGVWYa (ORCPT ); Tue, 22 Jul 2014 18:24:30 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:46872 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932833AbaGVWY0 (ORCPT ); Tue, 22 Jul 2014 18:24:26 -0400 Received: by mail-lb0-f174.google.com with SMTP id c11so258418lbj.19 for ; Tue, 22 Jul 2014 15:24:25 -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=JaZ12jJdmyhJhSb64gNAVAN/vfSSYdU7TTbREl/Ixcg=; b=kvAmJtbBJcOVDtXSNgtzKEgrqHLvvzyxjoE9quHT7IujOeX0DIFwh89Nsx+UFTGpuF gR9pfiAXOnQ4gzCjvxEEjRrtqjy1oQiUpApPfsxsUH9W4cUt8lPurXkSyTnBLvV5GTDw Q3CzUs1fRN2HKEPYvj+bYGjFNEsOc/Hf9a42YaUldp6J9mQn9GAmGwGO4XEceqwZ9Wm1 0UEWfPO9rOqjJegr9IvG/10KkxmQ0lwFk6ax1MLB5xKMllfSsvc+THlrekdx+TE8uTpJ Cdt8gl6As26karxbK0le/DKSJIB3/jOqhaUKBSJnkzJvLxkt0SJGC1qiHJMzDjSB99/m 5DNg== X-Gm-Message-State: ALoCoQkOnWOwmuOwF6Ki63gjedDtAds+JKtisZfpvN6cPGpPmca9PTk0tJD33YHgO2KI2Zzfd6XI X-Received: by 10.152.8.109 with SMTP id q13mr38410069laa.31.1406067864971; Tue, 22 Jul 2014 15:24:24 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-157.pppoe.mtu-net.ru. [81.195.27.157]) by mx.google.com with ESMTPSA id xl2sm2381888lbb.47.2014.07.22.15.24.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 15:24:24 -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: r8a7790: link PCI USB devices to USB PHY Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Wed, 23 Jul 2014 02:24:23 +0400 MIME-Version: 1.0 Message-Id: <201407230224.24152.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=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. Based on the original work by Ben Dooks . Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-v3.16-rc5-20140722' tag of Simon Horman's 'renesas.git' repo plus R8A7790/Lager 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#2 node to reflect that channel #1 support was dropped; - resolved rejects, refreshed the patch. 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 @@ -999,6 +999,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@ee0b0000 { @@ -1039,6 +1053,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 {