/linux/arch/powerpc/platforms/83xx/ |
H A D | usb_834x.c | 26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 50 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg() 51 if (dr_mode && !strcmp(dr_mode, "otg")) { in mpc834x_usb_cfg()
|
H A D | usb_831x.c | 30 const void *dr_mode; in mpc831x_usb_cfg() local 113 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc831x_usb_cfg() 114 if (dr_mode && !strcmp(dr_mode, "otg")) in mpc831x_usb_cfg()
|
/linux/drivers/usb/dwc2/ |
H A D | platform.c | 30 * Check the dr_mode against the module configuration and hardware 33 * The hardware, module, and dr_mode, can each be set to host, device, 35 * value of dr_mode if possible. 38 * HW MOD dr_mode dr_mode 50 * OTG OTG any : dr_mode 56 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() 58 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode() 60 mode = hsotg->dr_mode; in dwc2_get_dr_mode() 83 if (mode != hsotg->dr_mode) { in dwc2_get_dr_mode() [all …]
|
H A D | drd.c | 38 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_ovr_init() 92 /* Skip session not in line with dr_mode */ in dwc2_drd_role_sw_set() 93 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 94 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set() 159 if (!already && hsotg->dr_mode == USB_DR_MODE_OTG) in dwc2_drd_role_sw_set()
|
/linux/drivers/usb/phy/ |
H A D | phy-am335x-control.h | 7 enum usb_dr_mode dr_mode, bool on); 12 enum usb_dr_mode dr_mode, bool on) in phy_ctrl_power() argument 14 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on); in phy_ctrl_power()
|
/linux/drivers/usb/cdns3/ |
H A D | drd.c | 134 if (cdns->dr_mode == USB_DR_MODE_HOST) in cdns_is_host() 144 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) in cdns_is_device() 146 else if (cdns->dr_mode == USB_DR_MODE_OTG) in cdns_is_device() 318 switch (cdns->dr_mode) { in cdns_drd_update_mode() 330 cdns->dr_mode); in cdns_drd_update_mode() 360 if (cdns->dr_mode != USB_DR_MODE_OTG) in cdns_drd_irq() 457 /* Update dr_mode according to STRAP configuration. */ in cdns_drd_init() 458 cdns->dr_mode = USB_DR_MODE_OTG; in cdns_drd_init() 465 cdns->dr_mode = USB_DR_MODE_HOST; in cdns_drd_init() 471 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_drd_init()
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | amlogic,meson-g12a-usb-ctrl.yaml | 72 dr_mode: true 99 - dr_mode 211 dr_mode = "otg"; 223 dr_mode = "peripheral"; 233 dr_mode = "host";
|
H A D | dwc3-st.txt | 36 NB: The dr_mode property described in [1] is NOT optional for this driver, as the default value 37 is "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host" 62 dr_mode = "host";
|
H A D | starfive,jh7110-usb.yaml | 28 dr_mode: 78 - dr_mode 103 dr_mode = "host";
|
H A D | nxp,isp1760.yaml | 44 dr_mode: 64 dr_mode = "host";
|
H A D | faraday,fotg210.yaml | 47 dr_mode: true 77 dr_mode = "host";
|
H A D | ux500-usb.txt | 7 - dr_mode : Dual-role; either host mode "host", peripheral mode "peripheral" 23 dr_mode = "otg";
|
H A D | usb-drd.yaml | 23 dr_mode: 75 dr_mode = "otg";
|
H A D | genesys,gl850g.yaml | 78 dr_mode = "host"; 92 dr_mode = "host";
|
H A D | mediatek,mtu3.yaml | 110 dr_mode: 262 dr_mode = "otg"; 295 dr_mode = "otg"; 331 dr_mode = "otg";
|
H A D | mediatek,musb.yaml | 55 dr_mode: 100 dr_mode = "otg";
|
H A D | da8xx-usb.txt | 15 - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". 56 dr_mode = "host";
|
H A D | am33xx-usb.txt | 38 - dr_mode: Should be one of "host", "peripheral" or "otg". 110 dr_mode = "otg" 156 dr_mode = "host"
|
/linux/drivers/usb/host/ |
H A D | fsl-mph-dr-of.c | 20 char *dr_mode; /* controller mode */ member 27 .dr_mode = "host", 32 .dr_mode = "otg", 37 .dr_mode = "peripheral", 48 prop = of_get_property(np, "dr_mode", NULL); in get_dr_mode_data() 51 if (!strcmp(prop, dr_mode_data[i].dr_mode)) in get_dr_mode_data() 55 pr_warn("%pOF: Invalid 'dr_mode' property, fallback to host mode\n", in get_dr_mode_data()
|
/linux/arch/arm64/boot/dts/renesas/ |
H A D | rz-smarc-common.dtsi | 96 dr_mode = "otg"; 105 dr_mode = "otg"; 124 dr_mode = "otg";
|
/linux/drivers/phy/amlogic/ |
H A D | phy-meson8b-usb2.c | 125 enum usb_dr_mode dr_mode; member 184 if (priv->dr_mode == USB_DR_MODE_HOST) { in phy_meson8b_usb2_power_on() 212 if (priv->dr_mode == USB_DR_MODE_HOST) in phy_meson8b_usb2_power_off() 269 priv->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); in phy_meson8b_usb2_probe() 270 if (priv->dr_mode == USB_DR_MODE_UNKNOWN) { in phy_meson8b_usb2_probe()
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8064-cm-qs600.dts | 222 dr_mode = "otg"; 227 dr_mode = "host"; 232 dr_mode = "host";
|
/linux/arch/arm/boot/dts/xilinx/ |
H A D | zynq-cc108.dts | 106 dr_mode = "host"; 112 dr_mode = "host";
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | marvell,armada-cp110-utmi-phy.yaml | 106 dr_mode = "host"; 114 dr_mode = "peripheral";
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ull-engicam-microgea-gtw.dts | 87 dr_mode = "otg"; 92 dr_mode = "host";
|