From: Srinath Mannam <srinath.mannam@broadcom.com>
To: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Kishon Vijay Abraham I <kishon@ti.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com,
Srinath Mannam <srinath.mannam@broadcom.com>
Subject: [PATCH 1/2] dt-bindings: phy: Add stingray usb phy documentation
Date: Fri, 7 Jul 2017 18:37:04 +0530 [thread overview]
Message-ID: <1499432825-15820-2-git-send-email-srinath.mannam@broadcom.com> (raw)
In-Reply-To: <1499432825-15820-1-git-send-email-srinath.mannam@broadcom.com>
Add DT binding document for stingray usb phy driver.
Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
---
.../bindings/phy/brcm,stingray-usb-phy.txt | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt
diff --git a/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt b/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt
new file mode 100644
index 0000000..22ff1db
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt
@@ -0,0 +1,72 @@
+BROADCOM STINGRAY USB PHY
+
+Required properties:
+ - compatible : should be one of the listed compatibles
+ - "brcm,sr-u3h-u2drd-phy"
+ - "brcm,sr-u3drd-phy"
+ - reg: offset and length of the PHY blocks registers
+ two base address and length should be passed.
+ - reg-names: should be from "drdu3","usb3h", "drdu2"
+ "drdu3" for compatible string "brcm,sr-u3drd-phy"
+ "usb3h" and "drdu2" for compatible string "brcm,sr-u3h-u2drd-phy"
+ - 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 port number
+ port numbers of sr-u3h-u2drd-phy should be as
+ - USB3H super speed port is 0
+ - DRDU2 is 1
+ - USB3H high speed port is 2
+ port numbers of sr-u3drd-phy should be as
+ - DRDU3 super speed port is 0
+ - DRDU3 high speed port is 1
+ - phy-cells: generic PHY binding; must be 1
+ The first argument of phy-cell represents the PHY mode in the requested node
+ as either host mode or device mode.
+ for host mode is 1 and device mode is 2.
+
+Refer to phy/phy-bindings.txt for the generic PHY binding properties
+
+Example:
+ usbphy0: usb-phy@68500000 {
+ compatible = "brcm,sr-u3drd-phy";
+ reg = <0x68500000 0x100>;
+ reg-names = "drdu3";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ usb0_phy0: phy@0 {
+ reg = <0>;
+ #phy-cells = <1>;
+ };
+ usb0_phy1: phy@1 {
+ reg = <1>;
+ #phy-cells = <1>;
+ };
+ };
+
+ usbphy1: usb-phy@68520000 {
+ compatible = "brcm,sr-u3h-u2drd-phy";
+ reg = <0x68510000 0x100>,
+ <0x68520000 0x100>;
+ reg-names = "usb3h", "drdu2";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ usb1_phy0: phy@0 {
+ reg = <0>;
+ #phy-cells = <1>;
+ };
+ usb1_phy1: phy@1 {
+ reg = <1>;
+ #phy-cells = <1>;
+ };
+ usb1_phy2: phy@2 {
+ reg = <2>;
+ #phy-cells = <1>;
+ };
+ };
--
2.7.4
next prev parent reply other threads:[~2017-07-07 13:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 13:07 [PATCH 0/2] Add stingray usb phy driver Srinath Mannam
2017-07-07 13:07 ` Srinath Mannam [this message]
[not found] ` <1499432825-15820-2-git-send-email-srinath.mannam-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2017-07-10 15:25 ` [PATCH 1/2] dt-bindings: phy: Add stingray usb phy documentation Rob Herring
2018-08-14 1:54 ` [1/2] " Jayachandran C
2018-08-14 3:13 ` Srinath Mannam
2017-07-07 13:07 ` [PATCH 2/2] phy: Add stingray usb phy driver Srinath Mannam
[not found] ` <1499432825-15820-3-git-send-email-srinath.mannam-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2017-07-11 6:31 ` Kishon Vijay Abraham I
2017-07-11 14:26 ` Srinath Mannam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1499432825-15820-2-git-send-email-srinath.mannam@broadcom.com \
--to=srinath.mannam@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).