All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH v6 01/10] dt-binding: usb: add bindings for some common properties
Date: Mon, 14 Sep 2020 17:43:42 +0800	[thread overview]
Message-ID: <1600076631-5928-2-git-send-email-chunfeng.yun@mediatek.com> (raw)
In-Reply-To: <1600076631-5928-1-git-send-email-chunfeng.yun@mediatek.com>

Add bindings for common properties, include maximum-speed,
dr_mode and phy_type

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v2~v6: no changes
---
 doc/device-tree-bindings/usb/generic.txt | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 doc/device-tree-bindings/usb/generic.txt

diff --git a/doc/device-tree-bindings/usb/generic.txt b/doc/device-tree-bindings/usb/generic.txt
new file mode 100644
index 0000000..a02a198
--- /dev/null
+++ b/doc/device-tree-bindings/usb/generic.txt
@@ -0,0 +1,31 @@
+Generic USB Properties
+
+Optional properties:
+ - maximum-speed: tells USB controllers we want to work up to a certain
+			speed. Valid arguments are "super-speed-plus",
+			"super-speed", "high-speed", "full-speed" and
+			"low-speed". In case this isn't passed via DT, USB
+			controllers should default to their maximum HW
+			capability.
+ - dr_mode: tells Dual-Role USB controllers that we want to work on a
+			particular mode. Valid arguments are "host",
+			"peripheral" and "otg". In case this attribute isn't
+			passed via DT, USB DRD controllers should default to
+			OTG.
+ - phy_type: tells USB controllers that we want to configure the core to support
+			a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is
+			selected. Valid arguments are "utmi" and "utmi_wide".
+			In case this isn't passed via DT, USB controllers should
+			default to HW capability.
+
+This is an attribute to a USB controller such as:
+
+dwc3 at 4a030000 {
+	compatible = "synopsys,dwc3";
+	reg = <0x4a030000 0xcfff>;
+	interrupts = <0 92 4>
+	usb-phy = <&usb2_phy>, <&usb3,phy>;
+	maximum-speed = "super-speed";
+	dr_mode = "otg";
+	phy_type = "utmi_wide";
+};
-- 
1.9.1

  reply	other threads:[~2020-09-14  9:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14  9:43 [PATCH v6 00/10] Add support MediaTek USB3 DRD driver Chunfeng Yun
2020-09-14  9:43 ` Chunfeng Yun [this message]
2020-09-14  9:43 ` [PATCH v6 02/10] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 03/10] usb: add USB_SPEED_SUPER_PLUS Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 04/10] usb: common: add define of usb_speed_string() Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 05/10] usb: add MediaTek USB3 DRD driver Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 06/10] usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 07/10] arm: dts: mt8512: add usb related nodes Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 08/10] configs: mt8512: enable fastboot Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 09/10] configs: mt8512: add USB host related configs Chunfeng Yun
2020-09-14  9:43 ` [PATCH v6 10/10] MAINTAINERS: add USB driver to ARM MEDIATEK Chunfeng Yun

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=1600076631-5928-2-git-send-email-chunfeng.yun@mediatek.com \
    --to=chunfeng.yun@mediatek.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.