mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 02:54:10 +07:00
431a30b7d4
Convert the usb-connector.txt bindings file to YAML format. This allows it to be used in dt_bindings_check verification. This patch was born out of a patch series for the addition of a Type C connector class port driver[1]. An attempt has been made to maintain the same documentation text and example structure as was in the .txt file, but wherever needed modifications have been made to satisfy dt_bindings_check. Also, update all references to usb-connector.txt to now use usb-connector.yaml. [1]: https://lkml.org/lkml/2020/2/19/1232 Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-by: Benson Leung <bleung@chromium.org> Signed-off-by: Rob Herring <robh@kernel.org>
39 lines
827 B
Plaintext
39 lines
827 B
Plaintext
TI HD3SS3220 TypeC DRP Port Controller.
|
|
|
|
Required properties:
|
|
- compatible: Must be "ti,hd3ss3220".
|
|
- reg: I2C slave address, must be 0x47 or 0x67 based on ADDR pin.
|
|
- interrupts: An interrupt specifier.
|
|
|
|
Required sub-node:
|
|
- connector: The "usb-c-connector" attached to the hd3ss3220 chip. The
|
|
bindings of the connector node are specified in:
|
|
|
|
Documentation/devicetree/bindings/connector/usb-connector.yaml
|
|
|
|
Example:
|
|
hd3ss3220@47 {
|
|
compatible = "ti,hd3ss3220";
|
|
reg = <0x47>;
|
|
interrupt-parent = <&gpio6>;
|
|
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
connector {
|
|
compatible = "usb-c-connector";
|
|
label = "USB-C";
|
|
data-role = "dual";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
hd3ss3220_ep: endpoint {
|
|
remote-endpoint = <&usb3_role_switch>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|