Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbbFEGXz (ORCPT ); Fri, 5 Jun 2015 02:23:55 -0400 Received: from mail-bn1bon0142.outbound.protection.outlook.com ([157.56.111.142]:47027 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751240AbbFEGXt (ORCPT ); Fri, 5 Jun 2015 02:23:49 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; codeaurora.org; dkim=none (message not signed) header.d=none; Date: Fri, 5 Jun 2015 14:22:15 +0800 From: Peter Chen To: Rob Herring CC: Greg Kroah-Hartman , Kishon Vijay Abraham I , , , , Arnd Bergmann , "Ivan T. Ivanov" , Daniel Tang , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: Re: [PATCH v3 4/6] dt-bindings: Consolidate ChipIdea USB ci13xxx bindings Message-ID: <20150605062213.GF15169@shlinux2> References: <1432917526-9688-1-git-send-email-robh@kernel.org> <1432917526-9688-5-git-send-email-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1432917526-9688-5-git-send-email-robh@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11OLC003;1:hlx1eW4Or3a3kDwe2WbECuh4FOpsK/QFiBjgQTI10+JCJ+wJNKR6u0RsiBzoSs8LGTmKqiwHEPbn6DS2AaSfjMCoIgxDeWbi4WSTUl1LcUljzxFqCXNlTIhotP6InLvPGeQ/+/Z0vQiouVYz/2jOhPLC0LXy8ZaE/9Kp9IeFIMPSLfdgL9c797WafjJeqWGAJmrbojcCvU2xTYCLovgH0jsRofTKbUi6jFtpphIeqDeqe3MKMbhfjK1+syElfSnVyuRR4Z5vpVMidbduxf6O9g+KzBDxtIPbs5ciYMJ0hX03y0KdILiX3EuH3LcfM4arlrbJz2M4gZM2HIlHj8VBrQ== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(51704005)(24454002)(199003)(189002)(83506001)(110136002)(5001960100002)(33656002)(2950100001)(85426001)(50466002)(106466001)(104016003)(87936001)(77156002)(62966003)(189998001)(23726002)(86362001)(6806004)(97756001)(19580405001)(19580395003)(33716001)(77096005)(76176999)(54356999)(50986999)(105606002)(47776003)(92566002)(4001350100001)(46406003)(46102003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB609;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB609;2:l4PTffjRWhZzasBFA9XfbTeTrFkQMlhejpBPu4nSvuFls0By2wqXluQ2Gc9NVrYh;2:32Wio0kX3Y7nOLi5HCYZcQ5JLH9X/5KgukDutVOR14gNdsvelcvdVwQLFF4bq7MFbMQuSNTtPHlUHXlAq3r12SV76vIPWCQ1cpmYn2lLq4AsGy1HaUyAEPLsvHPgqyLCHMI/lvLdixczumOyp2BZ2KaG+TmTjV77lC4joyVndc6nm8PvLqbIHoHcm7uw2tvXRCPle/MYhdAH5yx5a0TWD9PjlFXx3vpi4PMwoECH9ug=;6:9EER7mZm6qlG1cUv8MXWuPWfC/KXDgHLgaHSEXuwvWpdK5CxJCm6JoUu+WN62+ClNzUEAbB2qqUT2FlB1BfC0Q9BSUoGKvC/TE0GkctSp9ARZDMHQMgx5aMy978EVN3n7Zu/p1c2mzze01b1a8NRzOOAQf0sX5lSYxOmtrtpFGOoS0leGzzxv1fSwIK6Cm5/RPSrCziPK4kbx86QkQooUvEVQOdnb44rdqDV4sSjH4T8/QI3GbmXqS9vb4rucAJVUOneZAhxG9Ir2NTYCk8yC8VhQIZHSp6blS5QK+bjowUEqlHkx1cRpCQwGQ0f6abu/bVuUIoLnc/Qb4HCl6oVAQ==;3:EHKk9pNe17b6zRCvyHLrlCkmKZSVFngWYYLo7xjWrVMY7CQoMsK/J1SGgBDVI3+ftpi29zCkD0p+u4jAmECBbDM7uE/03e99C2rAKTJPrIW/joxUoDVaHw/ZTWPzs16TfFAEe3RFRkgWGCXWpLTb7GyVd150im32zEkjnHjtZ5cIWylY3hlYk3TuP1cWAqk8dExpKgfNKt3k7sSH0vgwj2GX/CIHLOOwTTZSER3GtCJUWsEKQO0xBUbnYuXJn2a08n52Kc3A0HPnQvDl06BnYOjjRgMQo4WzvhE2ozDiOppwb75+RqvBEMEI2fEAZ4Xk X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB609; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:BY2PR03MB609;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB609; X-Forefront-PRVS: 05986C03E0 X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB609;9:PDXYpzHSqeKoBqV2gYLZFAfTNZlMTZrKXjI3s6xuvgYcAfFGIw2ilO6ZHt9oVXguD7RUeH/e0fRhidHYwWpBkQTj/vsntZJ2YQiHmc2qMNy7k79vFaKeIxoQlxnmhD7uENXCupiWNUVfTEL4Z7p51uhTPpiJcoIURn3I8c645Oy8coZcYd2trtApl8IKEYtSu1ZnXZpVmTVI3x596ZqAQ+Ndhxe8kzOc2ZyBHPRmxBGkJ4quGieEEUpCN26X/wxu06LhYRrPCKO8kOc9UhiVYYc80FEhyKgMpSkXfDZ+w+TJRH7H+gXqU5J+koCZSYM2jAee8Y8rMwAS36/XYQYqkozzI+Yx1mCcSqEMBkl+OBP9m9dugPqUUFxwom5vxQWvPPTm/Oxyt62X078kPcuLyIUqMg3QbO+Tae3xocE0c9gYCrRw6CuaWY27cquqnBDxIhWOagcLZm8P6banbD72kqcAdWLRDxuwcZqv6kIZeEEJbD55Zy+7KAaZBoyy/k26WP9RZI3nEPbEpZWcULFQ+vEAUhhbGZsJ8euyofyuWWyaxhHedQC6qZ3+trwify9PaRR+SywvMxSrohSoMWOUSfGdqv3OxuezNL6Xe9Y7FhFwm/GGDg76B4D1CqupwoXmrJ+UlaalcPBrsjJTFnAohcA7vnulNH8LIp0Hvp0ReyqiXr/r/P0q05GtiIaQaKgZy+/fMAFzw1Kb5yy5bxDNwKIc/F1pFqh376vGQesheoy9dzfwW/ww/gDh51HiwRYv2XN5Ss4jY8adH7gvameGMFb5+TIb/+PD4BKWRvQfkXfXsEWtoWVEhC3LBlynjGi2to7BvOrRw1r88ivOvzLkF0vO0S36g8Tmx12fvWs93SWreQussNikW/f3rdfHDNqDoorgkx4wVT81dMPNXMu7KJzYAq9cKdkyl45nL17pn4W5GEgrNbfSTN3E3heEAJTX X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB609;3:XlKBxMrO9Y0yRv14AOGssW5FVt3Jjonq/krebOV2B3s4zPB2LfpJBgj0xmoEJ6TJa21d/E24LC5RtPhDZZrV2vRBrCnH/hy3lzrOC14nlDzfcxw+qAmhtW/XXyOM7kR+bQD+NVLNZHxflGy8Sjj77g==;10:rVxO8EuI1HfAne5PxnGYP3yQ62RNWhlABjkLSihjW/8Vgwp5xbYFA7Q9+tzN5SZVpR6DE7XmktiWvft19QbuV4DGZUbnpkFBqZj6QuVwkgo=;6:ZfFyZ1jYvZRMf13/j2ornCjyCGRPkcBDBk5pheZvs+WRRujfbVMbmrBZlJfCS/tO X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2015 06:23:46.3492 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB609 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6531 Lines: 167 On Fri, May 29, 2015 at 11:38:44AM -0500, Rob Herring wrote: > Combine the ChipIdea USB binding into a single document to reduce > duplication and fragmentation. This marks use of the old PHY bindings as > deprecated. Future compatible bindings should use generic PHY binding. > > Signed-off-by: Rob Herring > Cc: Ivan T. Ivanov > Cc: Peter Chen > Cc: Daniel Tang > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: devicetree@vger.kernel.org > --- > .../devicetree/bindings/usb/ci-hdrc-imx.txt | 35 ---------------------- > .../devicetree/bindings/usb/ci-hdrc-qcom.txt | 17 ----------- > .../devicetree/bindings/usb/ci-hdrc-usb2.txt | 22 +++++++++++++- > .../devicetree/bindings/usb/ci-hdrc-zevio.txt | 17 ----------- > 4 files changed, 21 insertions(+), 70 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-imx.txt > delete mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-qcom.txt > delete mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-zevio.txt > > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-imx.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-imx.txt > deleted file mode 100644 > index 38a5480..0000000 > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-imx.txt > +++ /dev/null > @@ -1,35 +0,0 @@ > -* Freescale i.MX ci13xxx usb controllers > - > -Required properties: > -- compatible: Should be "fsl,imx27-usb" > -- reg: Should contain registers location and length > -- interrupts: Should contain controller interrupt > -- fsl,usbphy: phandle of usb phy that connects to the port > - > -Recommended properies: > -- phy_type: the type of the phy connected to the core. Should be one > - of "utmi", "utmi_wide", "ulpi", "serial" or "hsic". Without this > - property the PORTSC register won't be touched > -- dr_mode: One of "host", "peripheral" or "otg". Defaults to "otg" > - > -Optional properties: > -- fsl,usbmisc: phandler of non-core register device, with one argument > - that indicate usb controller index > -- vbus-supply: regulator for vbus > -- disable-over-current: disable over current detect > -- external-vbus-divider: enables off-chip resistor divider for Vbus > -- maximum-speed: limit the maximum connection speed to "full-speed". > -- tpl-support: TPL (Targeted Peripheral List) feature for targeted hosts > - > -Examples: > -usb@02184000 { /* USB OTG */ > - compatible = "fsl,imx6q-usb", "fsl,imx27-usb"; > - reg = <0x02184000 0x200>; > - interrupts = <0 43 0x04>; > - fsl,usbphy = <&usbphy1>; > - fsl,usbmisc = <&usbmisc 0>; > - disable-over-current; > - external-vbus-divider; > - maximum-speed = "full-speed"; > - tpl-support; > -}; > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-qcom.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-qcom.txt > deleted file mode 100644 > index f2899b5..0000000 > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-qcom.txt > +++ /dev/null > @@ -1,17 +0,0 @@ > -Qualcomm CI13xxx (Chipidea) USB controllers > - > -Required properties: > -- compatible: should contain "qcom,ci-hdrc" > -- reg: offset and length of the register set in the memory map > -- interrupts: interrupt-specifier for the controller interrupt. > -- usb-phy: phandle for the PHY device > -- dr_mode: Should be "peripheral" > - > -Examples: > - gadget@f9a55000 { > - compatible = "qcom,ci-hdrc"; > - reg = <0xf9a55000 0x400>; > - dr_mode = "peripheral"; > - interrupts = <0 134 0>; > - usb-phy = <&usbphy0>; > - }; > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt > index 27f8b1e..553e2fa 100644 > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt > +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt > @@ -1,15 +1,35 @@ > * USB2 ChipIdea USB controller for ci13xxx > > Required properties: > -- compatible: should be "chipidea,usb2" > +- compatible: should be one of: > + "fsl,imx27-usb" > + "lsi,zevio-usb" > + "qcom,ci-hdrc" > + "chipidea,usb2" > - reg: base address and length of the registers > - interrupts: interrupt for the USB controller > > +Recommended properies: > +- phy_type: the type of the phy connected to the core. Should be one > + of "utmi", "utmi_wide", "ulpi", "serial" or "hsic". Without this > + property the PORTSC register won't be touched. > +- dr_mode: One of "host", "peripheral" or "otg". Defaults to "otg" > + > +Deprecated properties: > +- usb-phy: phandle for the PHY device. Use "phys" instead. > +- fsl,usbphy: phandle of usb phy that connects to the port. Use "phys" instead. > + > Optional properties: > - clocks: reference to the USB clock > - phys: reference to the USB PHY > - phy-names: should be "usb-phy" > - vbus-supply: reference to the VBUS regulator > +- maximum-speed: limit the maximum connection speed to "full-speed". > +- tpl-support: TPL (Targeted Peripheral List) feature for targeted hosts > +- fsl,usbmisc: (FSL only) phandler of non-core register device, with one > + argument that indicate usb controller index > +- disable-over-current: (FSL only) disable over current detect > +- external-vbus-divider: (FSL only) enables off-chip resistor divider for Vbus > > Example: > > diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-zevio.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-zevio.txt > deleted file mode 100644 > index abbcb2a..0000000 > --- a/Documentation/devicetree/bindings/usb/ci-hdrc-zevio.txt > +++ /dev/null > @@ -1,17 +0,0 @@ > -* LSI Zevio USB OTG Controller > - > -Required properties: > -- compatible: Should be "lsi,zevio-usb" > -- reg: Should contain registers location and length > -- interrupts: Should contain controller interrupt > - > -Optional properties: > -- vbus-supply: regulator for vbus > - > -Examples: > - usb0: usb@b0000000 { > - reg = <0xb0000000 0x1000>; > - compatible = "lsi,zevio-usb"; > - interrupts = <8>; > - vbus-supply = <&vbus_reg>; > - }; > -- > 2.1.0 > Acked-by:Peter Chen -- Best Regards, Peter Chen -- 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/