Commit 0b44e4ec authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Greg Kroah-Hartman

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1626340078-29111-4-git-send-email-chunfeng.yun@mediatek.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88302047
...@@ -116,6 +116,10 @@ properties: ...@@ -116,6 +116,10 @@ properties:
description: Support role switch. description: Support role switch.
type: boolean type: boolean
role-switch-default-mode:
enum: [host, peripheral]
default: host
connector: connector:
$ref: /connector/usb-connector.yaml# $ref: /connector/usb-connector.yaml#
description: description:
...@@ -184,6 +188,7 @@ patternProperties: ...@@ -184,6 +188,7 @@ patternProperties:
dependencies: dependencies:
connector: [ 'usb-role-switch' ] connector: [ 'usb-role-switch' ]
port: [ 'usb-role-switch' ] port: [ 'usb-role-switch' ]
role-switch-default-mode: [ 'usb-role-switch' ]
wakeup-source: [ 'mediatek,syscon-wakeup' ] wakeup-source: [ 'mediatek,syscon-wakeup' ]
required: required:
...@@ -288,6 +293,7 @@ examples: ...@@ -288,6 +293,7 @@ examples:
wakeup-source; wakeup-source;
dr_mode = "otg"; dr_mode = "otg";
usb-role-switch; usb-role-switch;
role-switch-default-mode = "host";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
ranges; ranges;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment