Received: by 10.223.164.202 with SMTP id h10csp2846903wrb; Sun, 12 Nov 2017 20:24:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMbNsUgil0Qkv9fGqLIokiSbpYb0jvIDpHYxqvKMz89YkNEtIqrWHPEPTTogS9UUFfZrVhDV X-Received: by 10.99.110.197 with SMTP id j188mr7389477pgc.34.1510547081092; Sun, 12 Nov 2017 20:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510547081; cv=none; d=google.com; s=arc-20160816; b=wPEy08Ag7tWjV6Sk3nMWo/TKUnz9jGi2tSOlgm6I+61QhuXY7NK7iX/8V9Uak1jmkj oxh0gAGVFmVgPYFfu8WBOQoPpN7dxVTlTID07oz89Ie8KsZ9AhuK/5XPqIHR47ZjW6Z1 sK2ea9TxwDBQDVDMukfhsjxuuFg8fjljuJ4KIBxB9akWKhTtLt2kxyt4qmHQB90yRIti 2K1adwycdJX+83Qg0v+B6bnJ6Z2DiQA01c7mBWX+LGmIN7kMiPscr2IMZDtge3oMvCvC j/Ut5sUDZU5pHAXhPkDA2rDuU3VNTWT6anKF4N9cMdY0IFBT9O5jEqU4r9zdvHc9PXcZ EtPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dj8ZttCDAYSMjXLhfxPR82oxPLNzlFAUyBwpv1tkbhA=; b=Egm0C2uzBtJKoCthBUs/1pTy2aFGqHSnTod7dWZ8LDDiKhalm4iB1wTEn/YuAy0YXK Ro9OpimZzpvN0rPPK8ohR7FzPIfjXb0sIJ0J/oYPf22iz9j5sLcLHdXqnr6I6ZavWMOn lprvj494sCFiRWDaYXJOJgdS53I1F0rA2z4gGwX4F9onK6SD3ySqRSWOUM4DRZFVsr9O bI284QLieftAMUlGsjMQ+0j6xMEJLuvo+Xd4SEzV4wGfNIFVDj9CVFfgKUwaM52UYFK9 UOiSAkOCOlYnTH20UkzVfFCp2FjI+ZMxV7zZS9TwF/g+cVT/omzOh2YdGuRSLsHeix0G kfiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=VEAdL3yQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si13544393plk.410.2017.11.12.20.24.28; Sun, 12 Nov 2017 20:24:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=VEAdL3yQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbdKMEXt (ORCPT + 87 others); Sun, 12 Nov 2017 23:23:49 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:52086 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352AbdKMEXq (ORCPT ); Sun, 12 Nov 2017 23:23:46 -0500 Received: by mail-it0-f68.google.com with SMTP id x28so2129179ita.0 for ; Sun, 12 Nov 2017 20:23:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dj8ZttCDAYSMjXLhfxPR82oxPLNzlFAUyBwpv1tkbhA=; b=VEAdL3yQpTmx/iHux+7BKrfP2R0sWnfdYhD07v1g2YZmCTbozEI4W3lYJG6aikBJdw X1P5HOfdX97Y02ouaiuIKqF22f3aufRNfFlKuRnEaUQ4vLjbkx2iOBLYH1rNwwyTPT46 PkJux/d3IIECsBD6BeFTqI0WfrzzetyyIi78o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dj8ZttCDAYSMjXLhfxPR82oxPLNzlFAUyBwpv1tkbhA=; b=cujBOWG2ml+0Xa9Qekcx5R3aJju3odh0kFgANYloGCMEVZKxOLLvLoSBdhHRVSOSQ1 De07mRnHbTAsDdr3JQUhbxcHwBBgijoqn0rndXW8QHkoAP2oWSKUvPv12vYbzPMJnTmW otFLmaKQEmXnq+GmN1FiMcJQ4vj39kV57m4BoKNV7fEGeQyfxjnE7I1jF9/s2L2eQrnK UiNmXIXBpsjVu9QwD6/KkFZF9ZpnZrYgfnHGLRqpNBEWZxMlD52uoYBHHFU1PZNBs1J7 fJsonVzlRxxeITwKVxfu842WyCLLF+Lm/GfpDamkWCqN2OoNHXI6Xg0UpnN+WLFgTmsB ILlw== X-Gm-Message-State: AJaThX62GmYUl234zY5tneT2+VXOEg1adeuPhJ1kak56ZAJMzTT8QIjK HIXO2p6l3qFErryn022vBVgclIgqoOfaRlSHysXcmQ== X-Received: by 10.36.26.206 with SMTP id 197mr8982276iti.88.1510547025702; Sun, 12 Nov 2017 20:23:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.152.14 with HTTP; Sun, 12 Nov 2017 20:23:45 -0800 (PST) In-Reply-To: <20171110214439.rlt5de2c6e6k246d@rob-hp-laptop> References: <1510127203-5815-1-git-send-email-raveendra.padasalagi@broadcom.com> <1510127203-5815-2-git-send-email-raveendra.padasalagi@broadcom.com> <20171110214439.rlt5de2c6e6k246d@rob-hp-laptop> From: Raveendra Padasalagi Date: Mon, 13 Nov 2017 09:53:45 +0530 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: phy: Add Cygnus usb phy binding To: Rob Herring Cc: Mark Rutland , Kishon Vijay Abraham I , Russell King , Scott Branden , Ray Jui , Srinath Mannam , Vikram Prakash , Jon Mason , Florian Fainelli , Yoshihiro Shimoda , Raviteja Garimella , Rafal Milecki , Arnd Bergmann , Viresh Kumar , Jaehoon Chung , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Nov 11, 2017 at 3:14 AM, Rob Herring wrote: > On Wed, Nov 08, 2017 at 01:16:41PM +0530, Raveendra Padasalagi wrote: >> Add devicetree binding document for broadcom's >> Cygnus SoC specific usb phy controller driver. >> >> Signed-off-by: Raveendra Padasalagi >> --- >> .../bindings/phy/brcm,cygnus-usb-phy.txt | 106 +++++++++++++++++++++ >> 1 file changed, 106 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/phy/brcm,cygnus-usb-phy.txt >> >> diff --git a/Documentation/devicetree/bindings/phy/brcm,cygnus-usb-phy.txt b/Documentation/devicetree/bindings/phy/brcm,cygnus-usb-phy.txt >> new file mode 100644 >> index 0000000..bbc4b94 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/phy/brcm,cygnus-usb-phy.txt >> @@ -0,0 +1,106 @@ >> +BROADCOM CYGNUS USB PHY >> + >> +Required Properties: >> +- compatible: brcm,cygnus-usb-phy >> +- reg : the register start address and length for >> + crmu_usbphy_aon_ctrl, >> + cdru usb phy control, >> + usb host idm registers, >> + usb device idm registers. >> +- reg-names: a list of the names corresponding to the previous register ranges >> + Should contain >> + "crmu-usbphy-aon-ctrl", >> + "cdru-usbphy", >> + "usb2h-idm", >> + "usb2d-idm". >> +- address-cells: should be 1 >> +- size-cells: should be 0 >> + >> +Sub-nodes: >> + Each port's PHY should be represented as a sub-node. >> + >> +Sub-nodes required properties: >> +- reg: the PHY number >> +- #phy-cells must be 1 >> + The node that uses the phy must provide 1 integer argument specifying >> + port number. >> + >> +Optional Properties: >> +- vbus-p#-supply : The regulator for vbus out control for the host > > Is this a literal # or something else? Yes, this is a literal. It's assumed # will replace numeric 0-2 for each of the ports. In the example it's not shown as the regulators specified in vbus-p#-supply are board specific. >> + functionality enabled ports. >> +- vbus-gpios: vbus gpio binding >> + This is mandatory for port 2, as port 2 is used as dual role phy. >> + Based on the vbus and id values device or host role is determined >> + for phy 2. > > These optional properties don't match with the example. vbus-gpios is placed by mistake here in the documentation, this is no more required. I will remove it in the next version of the patch. >> + >> +- extcon: extcon phandle >> + This is mandatory for port 2, as port 2 is used as dual role phy. >> + extcon should be phandle to external usb gpio module which provide >> + device or host role notifications based on the ID and VBUS gpio's state. >> + >> + >> +Refer to phy/phy-bindings.txt for the generic PHY binding properties >> + >> +NOTE: port 0 and port 1 are host only and port 2 is dual role port. >> + >> +Example of phy : >> + usbphy: usb-phy@0301c028 { >> + compatible = "brcm,cygnus-usb-phy"; >> + reg = <0x0301c028 0x4>, >> + <0x0301d1b4 0x5c>, >> + <0x18115000 0xa00>, >> + <0x18111000 0xa00>; >> + reg-names = "crmu-usbphy-aon-ctrl", "cdru-usbphy", >> + "usb2h-idm", "usb2d-idm"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + usbphy0: usb-phy@0 { >> + reg = <0>; >> + #phy-cells = <1>; >> + }; >> + >> + usbphy1: usb-phy@1 { >> + reg = <1>; >> + #phy-cells = <1>; >> + }; >> + >> + usbphy2: usb-phy@2 { >> + reg = <2>; >> + #phy-cells = <1>; >> + extcon = <&extcon_usb>; >> + }; >> + }; >> + >> + extcon_usb: extcon_usb { >> + compatible = "linux,extcon-usb-gpio"; >> + vbus-gpio = <&gpio_asiu 121 0>; >> + id-gpio = <&gpio_asiu 122 0>; >> + status = "okay"; >> + }; >> + >> + >> +Example of node using the phy: >> + >> + /* This nodes declares all three ports, port 0 >> + and port 1 are host and port 2 is device or host */ >> + >> + ehci0: usb@18048000 { >> + compatible = "generic-ehci"; >> + reg = <0x18048000 0x100>; >> + interrupts = ; >> + phys = <&usbphy0 0 &usbphy1 1 &usbphy2 2>; >> + phy-names = "usbp0","usbp1","usbp2"; >> + status = "okay"; > > Don't show status in examples. Ok, Thanks. I will update it in the next version of the patch. >> + }; >> + >> + /* This node declares port 2 phy >> + and configures it for device */ >> + >> + usbd_udc_dwc1: usb@1804c000 { >> + compatible = "iproc-udc"; >> + reg = <0x1804c000 0x2000>; >> + interrupts = ; >> + phys = <&usbphy2 2>; >> + phy-names = "usbdrd"; >> + }; >> -- >> 1.9.1 >> From 1583717106965159909@xxx Fri Nov 10 21:45:29 +0000 2017 X-GM-THRID: 1583483661749820872 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread