* [RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings
@ 2019-10-03 3:22 John Stultz
2019-10-15 19:20 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: John Stultz @ 2019-10-03 3:22 UTC (permalink / raw)
To: lkml
Cc: John Stultz, ShuFan Lee, Greg Kroah-Hartman, Rob Herring,
Mark Rutland, linux-usb, devicetree
Add connector binding documentation for Richtek RT1711H Type-C
chip driver
It was noted by Rob Herring that the rt1711h binding docs
doesn't include the connector binding.
Thus this patch adds such documentation following the details
in Documentation/devicetree/bindings/usb/typec-tcpci.txt
CC: ShuFan Lee <shufan_lee@richtek.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-usb@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
.../bindings/usb/richtek,rt1711h.txt | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
index d4cf53c071d9..e3fc57e605ed 100644
--- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
+++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
@@ -6,10 +6,39 @@ Required properties:
- 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.txt
+
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>;
+ };
+ };
+ };
+ };
};
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings
2019-10-03 3:22 [RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings John Stultz
@ 2019-10-15 19:20 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2019-10-15 19:20 UTC (permalink / raw)
To: John Stultz
Cc: lkml, John Stultz, ShuFan Lee, Greg Kroah-Hartman, Mark Rutland,
linux-usb, devicetree
On Thu, 3 Oct 2019 03:22:32 +0000, John Stultz wrote:
> Add connector binding documentation for Richtek RT1711H Type-C
> chip driver
>
> It was noted by Rob Herring that the rt1711h binding docs
> doesn't include the connector binding.
>
> Thus this patch adds such documentation following the details
> in Documentation/devicetree/bindings/usb/typec-tcpci.txt
>
> CC: ShuFan Lee <shufan_lee@richtek.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: linux-usb@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Signed-off-by: John Stultz <john.stultz@linaro.org>
> ---
> .../bindings/usb/richtek,rt1711h.txt | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-15 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 3:22 [RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings John Stultz
2019-10-15 19:20 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).