Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754425AbbGAPKR (ORCPT ); Wed, 1 Jul 2015 11:10:17 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:63949 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754303AbbGAPKF convert rfc822-to-8bit (ORCPT ); Wed, 1 Jul 2015 11:10:05 -0400 X-IronPort-AV: E=Sophos;i="5.15,386,1432566000"; d="scan'208";a="189517290" From: Phil Edworthy To: Sergei Shtylyov , "Kishon Vijay Abraham I" , Yoshihiro Shimoda , Simon Horman , Laurent Pinchart CC: "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-sh@vger.kernel.org" Subject: RE: [PATCH 3/3] arm: koelsch: make USB0 perform Host/Function switching Thread-Topic: [PATCH 3/3] arm: koelsch: make USB0 perform Host/Function switching Thread-Index: AQHQrPoTGfbgBGcrrUOzHSe6kYqhK524y/SAgAABmoCADfVNwA== Date: Wed, 1 Jul 2015 15:10:00 +0000 Message-ID: References: <1434984151-27274-1-git-send-email-phil.edworthy@renesas.com> <1434984151-27274-4-git-send-email-phil.edworthy@renesas.com> <55884943.9080607@cogentembedded.com> <55884A9B.9030505@cogentembedded.com> In-Reply-To: <55884A9B.9030505@cogentembedded.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: cogentembedded.com; dkim=none (message not signed) header.d=none; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;SIXPR06MB0923;5:Np8dP/T1lcxuQxqlNXFBovNGG9w6szHIKmQvxJLm4C45CbHdCfW6MLP6wv0npFa9B2IKvczAXNumhKWlmbPMPdIPK18nwpIkl1bBaeoZOG6a1xJkNCCnlyAJiR0sBh0n4X4sXylZcKxBzBZ4Ybp4/A==;24:5h5pds6npDRZ4lI+5USOWlZDKoHMFL0/hb+iYI9FoL68LLJug8VjrEsGdaBF/9YN683b/qwTcuR8/jZ0HCAy7f2aFD0JADUmlAicqIrQMNY=;20:oj77D+pSDH2u690f1bNbJ5b52LAazPYkdBbYyfcr9hrWdKRsV6LT/5ns8lUnqHpiJmzf2uJXVZ70tyj0NHKgYwrhWfzHhU8fBVvzBlxb9c8GGGwPFYPnVlOojMhJTI3tgl0jNmwwopsOdDYRC5+4yJSo/8ergVqrOkPdwMPMIKI= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0923; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:SIXPR06MB0923;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0923; x-forefront-prvs: 0624A2429E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(479174004)(377454003)(24454002)(51704005)(46102003)(122556002)(2656002)(19580395003)(76176999)(54356999)(92566002)(106116001)(5003600100002)(62966003)(102836002)(86362001)(77096005)(77156002)(2900100001)(19580405001)(2950100001)(87936001)(40100003)(93886004)(76576001)(5002640100001)(189998001)(33656002)(74316001)(5001920100001)(50986999)(5001770100001)(66066001)(5001960100002);DIR:OUT;SFP:1102;SCL:1;SRVR:SIXPR06MB0923;H:SIXPR06MB0639.apcprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2015 15:10:00.3759 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0923 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1746 Lines: 52 Hi Sergei, On 22 June 2015 18:49, Sergei wrote: > Hello. > > On 06/22/2015 08:43 PM, Sergei Shtylyov wrote: > > >> Both USB Host (pci0) and Function (USBHS) drivers are enabled. > >> The USB PHY driver determines which IP block should be connected > >> based on vbus and id signals read via gpios. > > >> Signed-off-by: Phil Edworthy > >> --- > >> arch/arm/boot/dts/r8a7791-koelsch.dts | 7 ++++--- > >> 1 file changed, 4 insertions(+), 3 deletions(-) > > >> diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts > >> b/arch/arm/boot/dts/r8a7791-koelsch.dts > >> index cffe33f..8f394be 100644 > >> --- a/arch/arm/boot/dts/r8a7791-koelsch.dts > >> +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts > > [...] > >> @@ -627,13 +626,15 @@ > >> > >> &hsusb { > >> status = "okay"; > >> - pinctrl-0 = <&usb0_pins>; > >> pinctrl-names = "default"; > >> - renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; > >> }; > >> > >> &usbphy { > >> status = "okay"; > >> + renesas,pwr = <&gpio2 4 GPIO_ACTIVE_HIGH>; > >> + renesas,id = <&gpio5 31 GPIO_ACTIVE_HIGH>; > >> + renesas,vbus = <&gpio7 24 GPIO_ACTIVE_HIGH>; > >> + renesas,vbus-pwr = <&gpio7 23 GPIO_ACTIVE_HIGH>; > > > The prop names should end with "-gpio" or even "-gpios", according to the > > GPIO bindings. > > Oh, and you didn't document the props in the previous patch. > Thanks for your comments, since I've not seen any other comments I'll fix these and repost. Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/