From patchwork Mon Sep 29 18:23:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4998481 Return-Path: X-Original-To: patchwork-linux-sh@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 428E4BEEA6 for ; Mon, 29 Sep 2014 18:23:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7121A201FA for ; Mon, 29 Sep 2014 18:23:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C8B1201C7 for ; Mon, 29 Sep 2014 18:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbaI2SXQ (ORCPT ); Mon, 29 Sep 2014 14:23:16 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:55014 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753247AbaI2SXP (ORCPT ); Mon, 29 Sep 2014 14:23:15 -0400 Received: by mail-la0-f47.google.com with SMTP id mc6so18924550lab.34 for ; Mon, 29 Sep 2014 11:23:13 -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=9/QSeM4cTZMzg9/QZ4+FXMtSO+j+EltHA4YPfVpNiIc=; b=F4cnkxN77MO3VylzhG2H1r9jyb+4lmF0s3Wb//66k8T4QjbecZ/ceFg+VwmxzNPZZ4 GQVWLHLj6Ihn/IQg9q3XajsOq64j206mdD2rRm4y6PVnLlObBjX4/Txtj/xBs/WqwfXf iIXP6U67XdbjpHLh1wAKTqxZiY9MWON/FNCFl/hdFFb7d2JMZrjXpZ6gcponXSXIO/mc FUu6t7KEAILsViyh698f1tp5BenOx0ppxCKmV5VH1whHBYTooJBHKO2AJQIaTqL/WLiv IDPAMZ36eco1ZfBlQQkjzuIeLV10bmPqbxqfU3aqLrSaTNaWA+cxPLZqSXEzdV6sY7Ma yptg== X-Gm-Message-State: ALoCoQkOjsk0bSBj3KUB1D9Z8lvfjVeT+LbT1fkNekT84U09+gHYfORkoeFglBoPaYI9X6EcbqJH X-Received: by 10.113.3.130 with SMTP id bw2mr24999796lbd.39.1412014993774; Mon, 29 Sep 2014 11:23:13 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp22-148.pppoe.mtu-net.ru. [81.195.22.148]) by mx.google.com with ESMTPSA id a9sm5143060laa.3.2014.09.29.11.23.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Sep 2014 11:23:13 -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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v4] ARM: shmobile: r8a7791: link PCI USB devices to USB PHY Date: Mon, 29 Sep 2014 22:23:11 +0400 Message-ID: <5270578.Srkf5AOOOJ@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 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.7 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. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20140924-v3.17-rc6' tag of Simon Horman's 'renesas.git' repo plus R8A7791/Koelsch/Henninger 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#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 @@ -1125,6 +1125,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@ee0d0000 { @@ -1145,6 +1159,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 {