From patchwork Fri Oct 24 10:41:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5145711 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 993829F349 for ; Fri, 24 Oct 2014 10:42:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C73C120220 for ; Fri, 24 Oct 2014 10:42:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0198C200D9 for ; Fri, 24 Oct 2014 10:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756090AbaJXKmM (ORCPT ); Fri, 24 Oct 2014 06:42:12 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:44532 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756503AbaJXKmJ (ORCPT ); Fri, 24 Oct 2014 06:42:09 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 24 Oct 2014 19:42:08 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 58C75431EC; Fri, 24 Oct 2014 19:42:08 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 450A0480A7; Fri, 24 Oct 2014 19:42:08 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 3F95C480A4; Fri, 24 Oct 2014 19:42:08 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id VAJ10972; Fri, 24 Oct 2014 19:42:08 +0900 X-IronPort-AV: E=Sophos;i="5.04,779,1406559600"; d="scan'208";a="173118930" Received: from mail-hk1lp0117.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.117]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Oct 2014 19:42:06 +0900 Received: from localhost (211.11.155.147) by SINPR06MB331.apcprd06.prod.outlook.com (10.141.110.17) with Microsoft SMTP Server (TLS) id 15.0.1054.13; Fri, 24 Oct 2014 10:42:05 +0000 From: Yoshihiro Shimoda To: , , , , , , , CC: , , , Yoshihiro Shimoda Subject: [PATCH v2 2/2] ARM: shmobile: lager: enable USB3.0 Date: Fri, 24 Oct 2014 19:41:47 +0900 Message-ID: <1414147307-4584-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1414147307-4584-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1414147307-4584-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: SG2PR03CA0030.apcprd03.prod.outlook.com (25.160.233.40) To SINPR06MB331.apcprd06.prod.outlook.com (10.141.110.17) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:SINPR06MB331; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0374433C81 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(6069001)(189002)(199003)(76482002)(120916001)(93916002)(122386002)(46102003)(229853001)(95666004)(97736003)(20776003)(47776003)(76506005)(106356001)(80022003)(42186005)(78352002)(31966008)(99396003)(66066001)(21056001)(64706001)(36756003)(77156001)(19580405001)(87976001)(40100003)(575784001)(42382002)(19580395003)(107046002)(104166001)(87286001)(50466002)(4396001)(50226001)(92726001)(92566001)(48376002)(76176999)(85306004)(62966002)(88136002)(33646002)(50986999)(77096002)(102836001)(101416001)(85852003)(89996001)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:SINPR06MB331; H:localhost; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-OriginatorOrg: renesas.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=-8.3 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 Since the PHY of USB3.0 and EHCI/OHCI ch2 are the same, the USB3.0 driver cannot use the phy driver when the EHCI/OHCI ch2 already used it: phy phy-e6590100.usb-phy.3: phy init failed --> -16 xhci-hcd: probe of ee000000.usb failed with error -16 If so, we have to unbind the EHCI/OHCI ch2, and then we have to bind the USB3.0 driver as the following: echo 0000:02:02.0 > /sys/bus/pci/drivers/ehci-pci/unbind echo 0000:02:01.0 > /sys/bus/pci/drivers/ohci-pci/unbind echo ee000000.usb > /sys/bus/platform/drivers/xhci-hcd/bind Note that there will be pinctrl-related error messages if both internal PCI and USB3.0 are enabled but they should be just ignored: sh-pfc e6060000.pfc: pin GP_5_22 already requested by ee0d0000.pci; cannot claim for ee000000.usb sh-pfc e6060000.pfc: pin-182 (ee000000.usb) status -22 ata1: SATA link down (SStatus 0 SControl 300) sh-pfc e6060000.pfc: could not request pin 182 (GP_5_22) from group usb2 on device sh-pfc Signed-off-by: Yoshihiro Shimoda --- arch/arm/boot/dts/r8a7790-lager.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 2115de2..b48173b 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -419,6 +419,12 @@ pinctrl-names = "default"; }; +&xhci { + status = "okay"; + pinctrl-0 = <&usb2_pins>; + pinctrl-names = "default"; +}; + &pci2 { status = "okay"; pinctrl-0 = <&usb2_pins>;