Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030315AbdLSLnY (ORCPT ); Tue, 19 Dec 2017 06:43:24 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:61097 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751542AbdLSLnS (ORCPT ); Tue, 19 Dec 2017 06:43:18 -0500 X-IronPort-AV: E=Sophos;i="5.45,426,1508770800"; d="scan'208";a="265619291" From: Yoshihiro Shimoda To: Rob Herring CC: "kishon@ti.com" , "mark.rutland@arm.com" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" Subject: RE: [PATCH v2 6/6] phy: renesas: rcar-gen3-usb2: add gpio handling Thread-Topic: [PATCH v2 6/6] phy: renesas: rcar-gen3-usb2: add gpio handling Thread-Index: AQHTdWiC/r/AfQ51M0GtSm8kKhmEaqNGRgEAgAJMQiCAAT40gIAAviPQ Date: Tue, 19 Dec 2017 11:43:15 +0000 Message-ID: References: <1513316726-14387-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> <1513316726-14387-7-git-send-email-yoshihiro.shimoda.uh@renesas.com> <20171216180510.qh5uiu5kwz5mx7zi@rob-hp-laptop> In-Reply-To: Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; x-originating-ip: [211.11.155.139] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;TY1PR06MB0991;20:hFnIKrE5T/t2+VtXDO+ArWgzZ9sD2NYXRybPn3QnxkOp77t6/3F+YMHbN2A070HsPEGJGBmDiaKTTKsVcyev64B3/SG96tI1FhaidDvm8fKTxgCxN4HmXFhZB0g7cpetXUlAseQCE5/I7ZLein5g2Ioss6ZUrIxoZhd/87viWks= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 695a4ad4-259c-4677-24aa-08d546d5b0e5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307);SRVR:TY1PR06MB0991; x-ms-traffictypediagnostic: TY1PR06MB0991: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3231023)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(201708071742011);SRVR:TY1PR06MB0991;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:TY1PR06MB0991; x-forefront-prvs: 052670E5A4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(396003)(346002)(376002)(24454002)(189003)(199004)(53936002)(6506007)(478600001)(6246003)(53546011)(25786009)(4326008)(3846002)(102836003)(6116002)(966005)(230783001)(2900100001)(105586002)(2950100002)(6916009)(5660300001)(106356001)(316002)(54906003)(305945005)(3280700002)(3660700001)(86362001)(74316002)(77096006)(97736004)(33656002)(68736007)(7696005)(93886005)(2906002)(8936002)(229853002)(345774005)(99286004)(14454004)(66066001)(76176011)(59450400001)(81166006)(7736002)(6306002)(8676002)(6436002)(55016002)(9686003)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:TY1PR06MB0991;H:TY1PR06MB0992.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 695a4ad4-259c-4677-24aa-08d546d5b0e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2017 11:43:15.0703 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR06MB0991 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vBJBhSMG011963 Content-Length: 2710 Lines: 66 Hi Rob, > From: Rob Herring, Sent: Tuesday, December 19, 2017 9:10 AM > > On Sun, Dec 17, 2017 at 11:16 PM, Yoshihiro Shimoda > wrote: > > Hi Rob, > > > > Thank you for your comments! > > > >> From: Rob Herring, Sent: Sunday, December 17, 2017 3:05 AM > >> > >> On Fri, Dec 15, 2017 at 02:45:26PM +0900, Yoshihiro Shimoda wrote: > >> > Some R-Car SoCs (e.g. R-Car D3) doesn't have dedicated pins of VBUS > >> > and ID. So, they may be connected to gpio pins. To handle the gpio > >> > pins, this patch adds the handling of VBUS and ID pins instead of > >> > dedicated pins. > >> > > >> > Signed-off-by: Yoshihiro Shimoda > >> > --- > >> > .../devicetree/bindings/phy/rcar-gen3-phy-usb2.txt | 2 + > >> > drivers/phy/renesas/phy-rcar-gen3-usb2.c | 77 ++++++++++++++++++++-- > >> > 2 files changed, 72 insertions(+), 7 deletions(-) > >> > > >> > diff --git a/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt > >> b/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt > >> > index 99b651b..999a6ef 100644 > >> > --- a/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt > >> > +++ b/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt > >> > @@ -27,6 +27,8 @@ channel as USB OTG: > >> > - interrupts: interrupt specifier for the PHY. > >> > - vbus-supply: Phandle to a regulator that provides power to the VBUS. This > >> > regulator will be managed during the PHY power on/off sequence. > >> > +- vbus-gpios: use gpio to control vbus instead of dedicated pin. > >> > >> How does this relate to vbus-supply? A gpio-regulator doesn't work here? > > > > Thank you for the pointed out. You're correct. A gpio-regulator can work intead of "vbus-gpios". > > So, I will drop this. > > > >> > +- id-gpios: use gpio to detect id instead of dedicated pin. > >> > >> These aren't part of the phy, but really belong in a connector node. > > > > I'm afraid but I don't understand "a connector node" mean. > > Is it an extcon device for instance? > > If so, I'll try to use extcon-usb-gpio.c instead of own gpio handling on the driver. > > No, extcon binding has a lot of Linuxisms in it. I mean something like > hdmi-connector binding. Thank you for the reply! I understood it. The hdmi-connector binding has "hdp-gpios". And, this is similar with "id-gpios" of usb. > There's been some attempts[1] for USB connectors, but nothing finalized. > > Rob > > [1] https://www.spinics.net/lists/linux-usb/msg161104.html This means I should finalize the USB connectors binding at first? I checked the email archive, but it seems hard to finalize though... Best regards, Yoshihiro Shimoda