From patchwork Fri Oct 24 10:44:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5145741 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 AA52FC11AC for ; Fri, 24 Oct 2014 10:44:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2C2B20220 for ; Fri, 24 Oct 2014 10:44:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7F06200D9 for ; Fri, 24 Oct 2014 10:44:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756219AbaJXKox (ORCPT ); Fri, 24 Oct 2014 06:44:53 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:41344 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755887AbaJXKow (ORCPT ); Fri, 24 Oct 2014 06:44:52 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 24 Oct 2014 19:44:51 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 39E2C4AD6F; Fri, 24 Oct 2014 19:44:51 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 1D0098002E; Fri, 24 Oct 2014 19:44:51 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 149E48002D; Fri, 24 Oct 2014 19:44:51 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id VAA05483; Fri, 24 Oct 2014 19:44:51 +0900 X-IronPort-AV: E=Sophos;i="5.04,779,1406559600"; d="scan'208";a="172030105" Received: from mail-sg1lp0092.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.92]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Oct 2014 19:44:49 +0900 Received: from localhost (211.11.155.147) by HKXPR06MB328.apcprd06.prod.outlook.com (10.141.133.18) with Microsoft SMTP Server (TLS) id 15.0.1054.13; Fri, 24 Oct 2014 10:44:48 +0000 From: Yoshihiro Shimoda To: , , , , , , , , CC: , , , Yoshihiro Shimoda Subject: [PATCH v5 2/2] ARM: shmobile: lager: enable HS-USB Date: Fri, 24 Oct 2014 19:44:34 +0900 Message-ID: <1414147474-2348-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1414147474-2348-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1414147474-2348-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKXPR02CA0054.apcprd02.prod.outlook.com (25.161.48.39) To HKXPR06MB328.apcprd06.prod.outlook.com (10.141.133.18) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB328; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0374433C81 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(199003)(189002)(46102003)(76482002)(77156001)(78352002)(33646002)(80022003)(92566001)(85852003)(40100003)(76506005)(77096002)(48376002)(122386002)(62966002)(42186005)(50466002)(87976001)(87286001)(97736003)(2201001)(92726001)(85306004)(93916002)(21056001)(76176999)(104166001)(50986999)(102836001)(19580405001)(19580395003)(101416001)(31966008)(4396001)(50226001)(88136002)(89996001)(47776003)(20776003)(95666004)(120916001)(36756003)(107046002)(99396003)(229853001)(106356001)(42382002)(66066001)(64706001)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB328; H:localhost; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX: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 Enable HS-USB device for the Lager board, defining the GPIO that the driver should check when probing. Since this board doesn't have the OTG ID pin, we assume that GP5_18 (USB0_PWEN) is an ID pin because it is 1 when the SW5 is in position 2-3 (meaning USB function) and 0 in other positions. Note that there will be pinctrl-related error messages if both internal PCI and HS-USB drivers are enabled but they should be just ignored. Signed-off-by: Yoshihiro Shimoda [Sergei: added pin node and prop, moved device node, fixed summary, supplemented changelog] Signed-off-by: Sergei Shtylyov --- arch/arm/boot/dts/r8a7790-lager.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index b48173b..e5ade61 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -221,6 +221,11 @@ renesas,function = "iic3"; }; + hsusb_pins: hsusb { + renesas,groups = "usb0_ovc_vbus"; + renesas,function = "usb0"; + }; + usb0_pins: usb0 { renesas,groups = "usb0"; renesas,function = "usb0"; @@ -431,6 +436,13 @@ pinctrl-names = "default"; }; +&hsusb { + status = "okay"; + pinctrl-0 = <&hsusb_pins>; + pinctrl-names = "default"; + renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>; +}; + &usbphy { status = "okay"; };