Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933750AbcKPIWg (ORCPT ); Wed, 16 Nov 2016 03:22:36 -0500 Received: from mail-db5eur01on0040.outbound.protection.outlook.com ([104.47.2.40]:43904 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751888AbcKPIWd (ORCPT ); Wed, 16 Nov 2016 03:22:33 -0500 From: Sriram Dash To: Rob Herring CC: "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "kishon@ti.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "stern@rowland.harvard.edu" , "pku.leo@gmail.com" , "mathias.nyman@intel.com" , "gregkh@linuxfoundation.org" , Suresh Gupta , "felipe.balbi@linux.intel.com" Subject: RE: [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support Thread-Topic: [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support Thread-Index: AQHSPjfE77w014jljUa3IrzIc0jM06DavnQAgABdmSA= Date: Wed, 16 Nov 2016 05:48:47 +0000 Message-ID: References: <1479101215-26954-1-git-send-email-sriram.dash@nxp.com> <1479101215-26954-2-git-send-email-sriram.dash@nxp.com> <20161116000740.iq6ffcjanrrvrdnq@rob-hp-laptop> In-Reply-To: <20161116000740.iq6ffcjanrrvrdnq@rob-hp-laptop> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sriram.dash@nxp.com; x-originating-ip: [192.88.169.1] x-microsoft-exchange-diagnostics: 1;HE1PR04MB1354;7:DS+aR4utoZEeNibI8sOTxHwV8Xsca1RtJjHrANMIn074cuaK/AjRzUkMVjEfT7WED796AXZ6ZB5GAc7L7EVEGpfhpJj1aIdBuywW98eg1ZvLkjyzW/wJc+KWmJxuLHNEtWEkOoMtiVG9UNVuCs0l2wsmFBW3xREinOdlJmorNOJjOgdVdd8AGVpPipZKvWz7ZbL7wEu5Ez3eLto+3RB4MKe/SkIi53CJVVaZAIBWhYic7CbkQ0RqE7rPLgTQA0AnsJGr0q9jiDA9UPv5+45FIZpP1dns+4Z5/B+lrCkTDNAEMURAylW9PWRNgPZJCJ8fDCBsj8AqSKpDboSMTyesA5nUSi5WByQVsc7C6IXZUEs= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(7916002)(24454002)(52314003)(199003)(189002)(6506003)(74316002)(68736007)(92566002)(3280700002)(2900100001)(6116002)(8676002)(76576001)(6916009)(8936002)(110136003)(229853002)(7696004)(87936001)(189998001)(2950100002)(7846002)(50986999)(77096005)(76176999)(3660700001)(102836003)(86362001)(5660300001)(66066001)(3846002)(81156014)(81166006)(122556002)(7416002)(54356999)(97736004)(101416001)(9686002)(105586002)(106356001)(7736002)(2906002)(305945005)(33656002)(106116001)(4326007);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1354;H:DB5PR0401MB1925.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 130a6ece-fbdc-4acc-5530-08d40de43c40 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:HE1PR04MB1354; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6045074)(6060326)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6046074)(6061324);SRVR:HE1PR04MB1354;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1354; x-forefront-prvs: 01283822F8 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2016 05:48:47.7523 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1354 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 quoted-printable to 8bit by mail.home.local id uAG8MgXw001193 Content-Length: 3022 Lines: 79 >From: Rob Herring [mailto:robh@kernel.org] >On Mon, Nov 14, 2016 at 10:56:54AM +0530, Sriram Dash wrote: >> Adds qoriq usb 3.0 phy driver support for LS1043A platform. >> Describes the qoriq usb 2.0 phy driver binding, currently used for >> LS1043A platform. >> >> Signed-off-by: Sriram Dash >> --- >> .../devicetree/bindings/phy/phy-qoriq-usb3.txt | 36 ++++ >> drivers/phy/Kconfig | 8 + >> drivers/phy/Makefile | 1 + >> drivers/phy/phy-qoriq-usb3.c | 202 +++++++++++++++++++++ >> 4 files changed, 247 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >> create mode 100644 drivers/phy/phy-qoriq-usb3.c >> >> diff --git a/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >> b/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >> new file mode 100644 >> index 0000000..d934c80 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >> @@ -0,0 +1,36 @@ >> +Driver for Freescale USB 3.0 PHY >> + >> +Required properties: >> + >> +- compatible : fsl,qoriq-usb3-phy >> +- reg : register mappings for Parameter Configuration Register >> + and Phy base offset. >> +- reg-names : "param_ctrl" and "phy_base" >> +- phy_type : For multi port host USB controllers, should be one of >> + "ulpi", or "serial". For dual role USB controllers, >> + should be one of "ulpi", "utmi", "utmi_wide", or "serial". Hi Rob, > >Do any of these really apply to a USB3 PHY? > The concerned USB3 phy used is UTMI. I agree to your point somewhat that all the types are not required now. Anyway, shall I make it an optional property, with the mention of only UTMI and ULPI? >Rob > >> + >> +Example: >> + usbphy0: usb3-phy@084F0000 { > >usb-phy@... > Ok. Will change in the next rev for Documentation and dts (patch 2/2) >> + compatible = "fsl,qoriq-usb3-phy"; >> + reg = <0x0 0x01570070 0x0 0xC>, <0x0 0x084F0000 0x0 0x5000>; >> + reg-names = "param_ctrl", "phy_base"; >> + #phy-cells = <0>; >> + phy_type = "utmi"; >> + }; >> + >> + usbphy1: usb3-phy@08500000 { >> + compatible = "fsl,qoriq-usb3-phy"; >> + reg = <0x0 0x0157007C 0x0 0xC>, <0x0 0x08500000 0x0 0x5000>; >> + reg-names = "param_ctrl", "phy_base"; >> + #phy-cells = <0>; >> + phy_type = "utmi"; >> + }; >> + >> + usbphy2: usb3-phy@08510000 { >> + compatible = "fsl,qoriq-usb3-phy"; >> + reg = <0x0 0x01570088 0x0 0xC>, <0x0 0x08510000 0x0 0x5000>; >> + reg-names = "param_ctrl", "phy_base"; >> + #phy-cells = <0>; >> + phy_type = "utmi"; >> + };