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

dt-bindings: usb: mtu3: add support property role-switch-default-mode

Add support optional property of role-switch-default-mode,
used to set default mode while usb role is USB_ROLE_NONE when use
usb-role-switch to switch mode.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1626340078-29111-4-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chunfeng Yun and committed by
Greg Kroah-Hartman
0b44e4ec 88302047

+6
+6
Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
··· 116 116 description: Support role switch. 117 117 type: boolean 118 118 119 + role-switch-default-mode: 120 + enum: [host, peripheral] 121 + default: host 122 + 119 123 connector: 120 124 $ref: /connector/usb-connector.yaml# 121 125 description: ··· 188 184 dependencies: 189 185 connector: [ 'usb-role-switch' ] 190 186 port: [ 'usb-role-switch' ] 187 + role-switch-default-mode: [ 'usb-role-switch' ] 191 188 wakeup-source: [ 'mediatek,syscon-wakeup' ] 192 189 193 190 required: ··· 293 288 wakeup-source; 294 289 dr_mode = "otg"; 295 290 usb-role-switch; 291 + role-switch-default-mode = "host"; 296 292 #address-cells = <1>; 297 293 #size-cells = <1>; 298 294 ranges;