lkml.org 
[lkml]   [2020]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/3] ARM: dts: stm32: enable usb-role-switch on USB OTG on stm32mp15xx-dkx
    Date
    Now that USB OTG driver supports usb role switch by overriding PHY input
    signals (A-Valid, B-Valid and Vbus-Valid), enable it on stm32mp15xx-dkx.
    dr_mode needn't to be forced to Peripheral anymore, it is set to OTG in
    SoC device tree.
    USB role (USB_ROLE_NONE, USB_ROLE_DEVICE, USB_ROLE_HOST) will be provided
    by STUSB1600 Type-C controller driver.

    This patch depends on "Add STUSB160x Type-C port controller support"
    series, which is under review.

    Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
    ---
    arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
    index d946e0a02f5c..ab31db801eec 100644
    --- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
    +++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
    @@ -595,9 +595,9 @@
    };

    &usbotg_hs {
    - dr_mode = "peripheral";
    phys = <&usbphyc_port1 0>;
    phy-names = "usb2-phy";
    + usb-role-switch;
    status = "okay";
    };

    --
    2.17.1
    \
     
     \ /
      Last update: 2020-06-16 16:08    [W:4.116 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site