From patchwork Mon Sep 29 18:21:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4998491 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 850599F2BA for ; Mon, 29 Sep 2014 18:24:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1E5C201BC for ; Mon, 29 Sep 2014 18:24:41 +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 D66FB2015E for ; Mon, 29 Sep 2014 18:24:40 +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 1XYfad-0004Dq-Vo; Mon, 29 Sep 2014 18:22:27 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYfab-00046M-0Z for linux-arm-kernel@lists.infradead.org; Mon, 29 Sep 2014 18:22:25 +0000 Received: by mail-la0-f42.google.com with SMTP id mk6so2355597lab.29 for ; Mon, 29 Sep 2014 11:22:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding:content-type; bh=5794Ovm4/hRkVnChoxBM/CAaqQkJkQCDHJdp8HNvGkM=; b=Zf4KsABldPYWGFzUoAAtYw06d8UKYeFB5z6J2mW2SFTvpNQMCS1DLTb9KGx4UsYQTa zTLezIAKhg1YAcYq6ewdS614YWh69tYGRL5x4gEnQ9oTQQ8z77sNbTsFNDm6xenrzLcP Xb27LRdgV2QMmBesrZI4L/YUlBkIPnWBwhCpfei6HtOOKZJjGJx5NN4pLYvbwzRE4jWO w3njDn3+ncDT4nAU6I/MD/PmS1rrGFddgCfDznrcrl48BpjJIZJ4O146ZE1dS2eoDBrB 7Lj3l9Cxd4ZfcCyZrbKQ81grZnvVZaVb89FMQ7Q1KvvOW30t1vX/Q4T0dizeGQldgeLw /g1A== X-Gm-Message-State: ALoCoQnNxFV6j/7CZlXuyOXVB6SvSWTVxW2gvNXThhdv4lJHRF7BXTOxWidJ5ZfBPvRyDKvP3j0/ X-Received: by 10.112.78.98 with SMTP id a2mr37685666lbx.48.1412014921989; Mon, 29 Sep 2014 11:22:01 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp22-148.pppoe.mtu-net.ru. [81.195.22.148]) by mx.google.com with ESMTPSA id ll12sm5125722lac.45.2014.09.29.11.22.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Sep 2014 11:22:01 -0700 (PDT) From: Sergei Shtylyov 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 v4] ARM: shmobile: r8a7790: link PCI USB devices to USB PHY Date: Mon, 29 Sep 2014 22:21:59 +0400 Message-ID: <6141061.UF13qqqgfz@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.13.3 (Linux/3.16.3-200.fc20.x86_64; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140929_112225_245827_2827319D X-CRM114-Status: GOOD ( 12.37 ) 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=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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-20140924-v3.17-rc6' 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 (merged by Kishon and Greg recently) in order to work. Changes in version 4: - refreshed the patch. 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(+) Index: renesas/arch/arm/boot/dts/r8a7790.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi @@ -1107,6 +1107,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 { @@ -1147,6 +1161,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 {