Received: by 10.223.164.202 with SMTP id h10csp1195964wrb; Tue, 7 Nov 2017 23:54:58 -0800 (PST) X-Google-Smtp-Source: ABhQp+R6Lw4laAZPfAvb8JEXaI+JAx9O5aePZDi2HSLGLEWBc8rlGe9n+I09woRyCgCPXJ9eIXNr X-Received: by 10.101.65.129 with SMTP id a1mr1487733pgq.203.1510127698564; Tue, 07 Nov 2017 23:54:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510127698; cv=none; d=google.com; s=arc-20160816; b=OjZQWaMh1/tRTi2pit7d6cCI7h5ePGtseerv4Ds/mc+aYMfZWJmz2KQkPWLtd6TvQO CLc4HK8C9Jjb3jOszDPVjj2ai4TwbAIyHMzZJYeD/ywucckXA1iT/4KXyKqs/r5Mksnd qnjOA19owFosrOcqbBiDyPEvN3TdbkKYpGj4S3BE8OfzxIIxylZ7mPWekg3ogJWIvsBL 5ZXSKTjo5WDgv+6Gjula7EGJ/UytUDy0cDuu+5gIXgqIUvbs/CeszBLYFmw0V7vaG1D8 1hObWBavsefVFitOgIkuY5RLXur7d+7YDA3wtXImPkFYSewoN+CUiAc741O5qWSjMbM+ pwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6Z+5vgvBamJrTQoOZeXgzLxS4saq+rIFL7ptZnxESGI=; b=x2kxRx3IGVHF/X0pIWIJuYzYHkARJhOddoBlLHYEXgKMbm+ngMf5fASMdbVHccvp+U 81wYhRKhxAqcspT81icwEd+7goOHS9dsb5xCzreqTUOBjMVBEAAAp5g05i6drodMFywd u6MP+/qWwfbzzip8A0hiQol1H/Qf4+ThThHYEC5dXtl8LG3TbqBErujJkBXKv/VqI92X QM9cX6CToqTEsZlU2bmKYoyIO+fzUe1mj5v14QQxCyjG6nZn22nbokVcHNveotGhxBrd Am68LQMBPScLm1ok7sPhebC+mZxUzqje08nDOUMsPeZg039IpMGT7P4bMqdDwFoJ/ZYf 4gKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Tc0K1m81; 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 f4si3211612plr.1.2017.11.07.23.54.46; Tue, 07 Nov 2017 23:54:58 -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=Tc0K1m81; 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 S1751390AbdKHHrL (ORCPT + 89 others); Wed, 8 Nov 2017 02:47:11 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:45046 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbdKHHrI (ORCPT ); Wed, 8 Nov 2017 02:47:08 -0500 Received: by mail-qt0-f194.google.com with SMTP id 8so2251156qtv.1 for ; Tue, 07 Nov 2017 23:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6Z+5vgvBamJrTQoOZeXgzLxS4saq+rIFL7ptZnxESGI=; b=Tc0K1m81+GfrOeDwbiUE/tPUKCYLxtBYTDgrMswA6O7o8K/BzbU+cYbaZjmLuAA78P pUwvPNz2LWcOLWVKlCwjcTIloL/lv34HDeugSykQLNhLcqIFHqVX0Da/Oh6mvzkM3IFY 7gMYbAVdmpoLEiG+4G6hgRwn+zWfOql989HMs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6Z+5vgvBamJrTQoOZeXgzLxS4saq+rIFL7ptZnxESGI=; b=H3x4xdQlmIwR16q2pkExTJvdjaEvp5hu09/DIeTO1SqK5LmhY/LWbbDxeQNdub+3JZ Y9lxE8iup5oOdY5uaihkwH2MOnEloZ70w9LrcD7kiS+yhe6BZRkmeJqrRIIlzxA7bOS2 8bWgAzenBYc+zsuUfro89Ma6ZVuq06igPzRD5TgavBiW1m/mck5R15JAjV15bm09b3uL pL1+F+LG7T0HzvveT01HdBKhuZ+Q6gmWiBUY8JCCUCJ8342CbIBQPJRx8B/Dl0xpXCbV qITLag64Re0ZIhHSUyn7gr/wtFyErkEfUztlShe1ZB9bpZTwWO7+HmW2tUtvwH+LYxmF KA0w== X-Gm-Message-State: AJaThX70vGcShiSLsZaIBdIdQ+1ORJYzSjR6K4J+EBdOdT+wsnQ8mmoS EDfTdUhCM/n2wv3qmDuiLsNpXA== X-Received: by 10.200.20.13 with SMTP id k13mr2027634qtj.261.1510127227738; Tue, 07 Nov 2017 23:47:07 -0800 (PST) Received: from rpadasal-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id n76sm2225977qkn.85.2017.11.07.23.47.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Nov 2017 23:47:07 -0800 (PST) From: Raveendra Padasalagi To: Rob Herring , 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Raveendra Padasalagi Subject: [PATCH v2 1/3] dt-bindings: phy: Add Cygnus usb phy binding Date: Wed, 8 Nov 2017 13:16:41 +0530 Message-Id: <1510127203-5815-2-git-send-email-raveendra.padasalagi@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510127203-5815-1-git-send-email-raveendra.padasalagi@broadcom.com> References: <1510127203-5815-1-git-send-email-raveendra.padasalagi@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + 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. + +- 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"; + }; + + /* 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 1583946642295809745@xxx Mon Nov 13 10:33:51 +0000 2017 X-GM-THRID: 1583946642295809745 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread