From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH next v7 02/10] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD
Date: Fri, 18 Sep 2020 17:10:05 +0800 [thread overview]
Message-ID: <1600420213-25974-3-git-send-email-chunfeng.yun@mediatek.com> (raw)
In-Reply-To: <1600420213-25974-1-git-send-email-chunfeng.yun@mediatek.com>
Add dt-binding for MediaTek USB3 DRD Driver
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v5~v7: no changes
v4:
Add support host mode, introduce some new properties and subnode
v2~v3: no changes
---
doc/device-tree-bindings/usb/mediatek,mtu3.txt | 79 ++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/mediatek,mtu3.txt
diff --git a/doc/device-tree-bindings/usb/mediatek,mtu3.txt b/doc/device-tree-bindings/usb/mediatek,mtu3.txt
new file mode 100644
index 0000000..ab877bf
--- /dev/null
+++ b/doc/device-tree-bindings/usb/mediatek,mtu3.txt
@@ -0,0 +1,79 @@
+The device node for Mediatek USB3 DRD controller
+
+Required properties:
+ - compatible : should be "mediatek,<soc-model>-mtu3", "mediatek,mtu3",
+ soc-model is the name of SoC, such as mt8512 etc,
+ when using "mediatek,mtu3" compatible string, you need SoC specific
+ ones in addition, one of:
+ - "mediatek,mt8512-mtu3"
+ - reg : specifies physical base address and size of the registers
+ - reg-names: should be
+ - "ippc" : IP Port Control
+ - power-domains : a phandle to USB power domain node to control USB's MTCMOS
+ - clocks : a list of phandle + clock-specifier pairs, one for each
+ entry in clock-names
+ - clock-names : must contain "sys_ck" for clock of controller,
+ the following clocks are optional:
+ "ref_ck", "mcu_ck", "dma_ck" and "xhci_ck";
+ - phys : list of all the USB PHYs on this HCD
+ - #address-cells, #size-cells : used for sub-nodes with 'reg' property
+ - ranges : allows valid 1:1 translation between child's address space and
+ parent's address space
+
+Optional properties:
+ - vusb33-supply : regulator of USB AVDD3.3v
+ - vbus-supply : regulator of VBUS 5v, needed when supports host mode.
+
+Sub-nodes:
+Required properties:
+ - compatible : should be "mediatek,ssusb"
+ - reg : specifies physical base address and size of the registers
+ - reg-names: should be
+ - "mac" : SSUSB MAC, include xHCI and device
+ - interrupts : interrupt used by xHCI or device
+ - dr_mode : should be one of "host" or "peripheral",
+ see : usb/generic.txt
+
+Optional properties:
+ - pinctrl-names : a pinctrl state named "default" is optional
+ - pinctrl-0 : pin control group
+ See: pinctrl/pinctrl-bindings.txt
+
+ - device mode:
+ - maximum-speed : valid arguments are "full-speed", "high-speed",
+ "super-speed" and "super-speed-plus",
+ see: usb/generic.txt
+ - mediatek,force-vbus : force vbus as valid by SW
+
+ - host mode (dr_mode is "host"):
+ - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
+ bit1 for u3port1, ... etc;
+
+Example:
+usb3: usb at 11213e00 {
+ compatible = "mediatek,mt8512-mtu3", "mediatek,mtu3";
+ reg = <0x11213e00 0x0100>;
+ reg-names = "ippc";
+ phys = <&u2port0 PHY_TYPE_USB2>, <&u2port1 PHY_TYPE_USB2>;
+ power-domains = <&scpsys MT8512_POWER_DOMAIN_USB>;
+ clocks = <&infracfg CLK_INFRA_USB_SYS>,
+ <&topckgen CLK_TOP_SSUSB_TOP_CK_EN>,
+ <&infracfg CLK_INFRA_ICUSB>;
+ clock-names = "sys_ck", "ref_ck", "mcu_ck";
+ vusb33-supply = <reg_3p3v>;
+ vbus-supply = <&usb_p0_vbus>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+ status = "disabled";
+
+ ssusb: usb at 11210000 {
+ compatible = "mediatek,ssusb";
+ reg = <0x11210000 0x3e00>;
+ interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_LOW>;
+ reg-names = "mac";
+ dr_mode = "peripheral";
+ maximum-speed = "high-speed";
+ status = "disabled";
+ };
+};
--
1.9.1
next prev parent reply other threads:[~2020-09-18 9:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 9:10 [PATCH next v7 00/10] Add support MediaTek USB3 DRD driver Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 01/10] dt-binding: usb: add bindings for some common properties Chunfeng Yun
2020-10-13 14:15 ` Bin Meng
2020-09-18 9:10 ` Chunfeng Yun [this message]
2020-10-13 14:18 ` [PATCH next v7 02/10] dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD Bin Meng
2020-10-14 2:46 ` Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 03/10] usb: add USB_SPEED_SUPER_PLUS Chunfeng Yun
2020-10-13 14:19 ` Bin Meng
2020-10-14 2:50 ` Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 04/10] usb: common: add define of usb_speed_string() Chunfeng Yun
2020-10-13 14:21 ` Bin Meng
2020-09-18 9:10 ` [PATCH next v7 05/10] usb: add MediaTek USB3 DRD driver Chunfeng Yun
2020-10-13 14:26 ` Bin Meng
2020-10-14 3:15 ` Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 06/10] usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller Chunfeng Yun
2020-10-13 14:28 ` Bin Meng
2020-09-18 9:10 ` [PATCH next v7 07/10] arm: dts: mt8512: add usb related nodes Chunfeng Yun
2020-10-13 14:32 ` Bin Meng
2020-09-18 9:10 ` [PATCH next v7 08/10] configs: mt8512: enable fastboot Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 09/10] configs: mt8512: add USB host related configs Chunfeng Yun
2020-10-13 14:34 ` Bin Meng
2020-10-14 3:40 ` Chunfeng Yun
2020-09-18 9:10 ` [PATCH next v7 10/10] MAINTAINERS: add USB driver to ARM MEDIATEK Chunfeng Yun
2020-10-13 14:35 ` Bin Meng
2020-09-28 2:01 ` [PATCH next v7 00/10] Add support MediaTek USB3 DRD driver Chunfeng Yun
2020-09-28 2:12 ` Marek Vasut
2020-09-28 2:20 ` Chunfeng Yun
2020-10-13 7:26 ` Chunfeng Yun
2020-10-13 10:27 ` Bin Meng
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=1600420213-25974-3-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.