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>
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
Richtek RT1711H TypeC PD Controller.
|
|
|
|
Required properties:
|
|
- compatible : Must be "richtek,rt1711h".
|
|
- reg : Must be 0x4e, it's slave address of RT1711H.
|
|
- interrupts : <a b> where a is the interrupt number and b represents an
|
|
encoding of the sense and level information for the interrupt.
|
|
|
|
Required sub-node:
|
|
- connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|
|
of connector node are specified in
|
|
Documentation/devicetree/bindings/connector/usb-connector.yaml
|
|
|
|
Example :
|
|
rt1711h@4e {
|
|
compatible = "richtek,rt1711h";
|
|
reg = <0x4e>;
|
|
interrupt-parent = <&gpio26>;
|
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
usb_con: connector {
|
|
compatible = "usb-c-connector";
|
|
label = "USB-C";
|
|
data-role = "dual";
|
|
power-role = "dual";
|
|
try-power-role = "sink";
|
|
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
|
|
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
|
|
PDO_VAR(5000, 12000, 2000)>;
|
|
op-sink-microwatt = <10000000>;
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
usb_con_ss: endpoint {
|
|
remote-endpoint = <&usb3_data_ss>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|