dt-bindings: connector: add properties for typec
PATCH v3 1/12 dt-bindings: connector: add properties for typec
Quoted 26 lines · Li Jun
Add bingdings supported by current typec driver, so user can pass all those properties via dt.
Signed-off-by Li Jun <[email protected]>---
Change for v3:
- port-type change to be power-type which only for power.
- add data-type for data capability.
- preferred-role change to try-power-role(bool property need 2, and user may add both at the same time, so still use one property but rename it to be try-power-role).
- Separate basic typec and power delivery properties.
- keep the max-sink-mv/ma/mw, and op-mw, because the counterpart driver code is to be back[1], to be discussed if we need those 4 setting for long term.[1] https://www.spinics.net/lists/linux-usb/msg166366.html
.../bindings/connector/usb-connector.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+)Documentation/devicetree/bindings/connector/usb-connector.txt +0
-0
Documentation/devicetree/bindings/connector/usb-connector.txt Optional properties: · line 24
Quoted 10 lines
Documentation/devicetree/bindings/connector/usb-connector.txt +7
-0@@ -15,6 +15,35 @@ Optional properties: - type: size of the connector, should be specified in case of USB-A, USB-B non-fullsize connectors: "mini", "micro". +Optional properties for usb-c-connector: +- power-type: should be one of "source", "sink" or "dual"(DRP) if typec + connector has power support. +- try-power-role: preferred power role if "dual"(DRP) can support Try.SNK + or Try.SRC, should be "sink" for Try.SNK or "source" for Try.SRC. +- data-type: should be one of "host", "device", "dual"(DRD) if typec + connector supports USB data.
Why not "power-role" and "data-role" instead of "power-type" and "data-type"?
Thanks,