Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: musb: Add support for MediaTek musb controller

This adds support for MediaTek musb controller in
host, peripheral and otg mode.

Signed-off-by: Min Guo <min.guo@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200115132547.364-20-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Min Guo and committed by
Greg Kroah-Hartman
8d817d79 b7962fb4

+57
+57
Documentation/devicetree/bindings/usb/mediatek,musb.txt
··· 1 + MediaTek musb DRD/OTG controller 2 + ------------------------------------------- 3 + 4 + Required properties: 5 + - compatible : should be one of: 6 + "mediatek,mt2701-musb" 7 + ... 8 + followed by "mediatek,mtk-musb" 9 + - reg : specifies physical base address and size of 10 + the registers 11 + - interrupts : interrupt used by musb controller 12 + - interrupt-names : must be "mc" 13 + - phys : PHY specifier for the OTG phy 14 + - dr_mode : should be one of "host", "peripheral" or "otg", 15 + refer to usb/generic.txt 16 + - clocks : a list of phandle + clock-specifier pairs, one for 17 + each entry in clock-names 18 + - clock-names : must contain "main", "mcu", "univpll" 19 + for clocks of controller 20 + 21 + Optional properties: 22 + - power-domains : a phandle to USB power domain node to control USB's 23 + MTCMOS 24 + 25 + Required child nodes: 26 + usb connector node as defined in bindings/connector/usb-connector.txt 27 + Optional properties: 28 + - id-gpios : input GPIO for USB ID pin. 29 + - vbus-gpios : input GPIO for USB VBUS pin. 30 + - vbus-supply : reference to the VBUS regulator, needed when supports 31 + dual-role mode 32 + - usb-role-switch : use USB Role Switch to support dual-role switch, see 33 + usb/generic.txt. 34 + 35 + Example: 36 + 37 + usb2: usb@11200000 { 38 + compatible = "mediatek,mt2701-musb", 39 + "mediatek,mtk-musb"; 40 + reg = <0 0x11200000 0 0x1000>; 41 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 42 + interrupt-names = "mc"; 43 + phys = <&u2port2 PHY_TYPE_USB2>; 44 + dr_mode = "otg"; 45 + clocks = <&pericfg CLK_PERI_USB0>, 46 + <&pericfg CLK_PERI_USB0_MCU>, 47 + <&pericfg CLK_PERI_USB_SLV>; 48 + clock-names = "main","mcu","univpll"; 49 + power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 50 + usb-role-switch; 51 + connector{ 52 + compatible = "gpio-usb-b-connector", "usb-b-connector"; 53 + type = "micro"; 54 + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; 55 + vbus-supply = <&usb_vbus>; 56 + }; 57 + };