Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: rt1711h: Add connector bindings

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
CC: ShuFan Lee <shufan_lee@richtek.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
Cc: Yu Chen <chenyu56@huawei.com>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jun Li <lijun.kernel@gmail.com>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Cc: linux-usb@vger.kernel.org
Cc: devicetree@vger.kernel.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Link: https://lore.kernel.org/r/20191108005657.31464-1-john.stultz@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

John Stultz and committed by
Greg Kroah-Hartman
c368a411 ec5f8dfd

+29
+29
Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
··· 6 6 - interrupts : <a b> where a is the interrupt number and b represents an 7 7 encoding of the sense and level information for the interrupt. 8 8 9 + Required sub-node: 10 + - connector: The "usb-c-connector" attached to the tcpci chip, the bindings 11 + of connector node are specified in 12 + Documentation/devicetree/bindings/connector/usb-connector.txt 13 + 9 14 Example : 10 15 rt1711h@4e { 11 16 compatible = "richtek,rt1711h"; 12 17 reg = <0x4e>; 13 18 interrupt-parent = <&gpio26>; 14 19 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 20 + 21 + usb_con: connector { 22 + compatible = "usb-c-connector"; 23 + label = "USB-C"; 24 + data-role = "dual"; 25 + power-role = "dual"; 26 + try-power-role = "sink"; 27 + source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; 28 + sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) 29 + PDO_VAR(5000, 12000, 2000)>; 30 + op-sink-microwatt = <10000000>; 31 + 32 + ports { 33 + #address-cells = <1>; 34 + #size-cells = <0>; 35 + 36 + port@1 { 37 + reg = <1>; 38 + usb_con_ss: endpoint { 39 + remote-endpoint = <&usb3_data_ss>; 40 + }; 41 + }; 42 + }; 43 + }; 15 44 };