On 31/01/2020 04:43, Avaneesh Kumar Dwivedi wrote:OK
Documentation for Embedded USB Debugger (EUD) device tree bindings.
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@xxxxxxxxxxxxxx>
Signed-off-by: Prakruthi Deepak Heragu <pheragu@xxxxxxxxxxxxxx>
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@xxxxxxxxxxxxxx>
---
 .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt
new file mode 100644
index 0000000..57476ce
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt
@@ -0,0 +1,43 @@
+* Qualcomm Technologies Inc Embedded USB Debugger (EUD)
+
+The EUD (Embedded USB Debugger) is a mini-USB hub implemented
+on chip to support the USB-based debug and trace capabilities.
on chip to support USB-based debug and trace capabilities.
Ok
+missing space
+Required properties:
+
+ - compatible:Â Should be "qcom,msm-eud"
+ - interrupts:Â Interrupt number
+ - reg: Should be address and size of EUD register space
+
+EUD notifies clients for VBUS attach/detach and charger enable/disable
+events. The link between event consumer(i.e.USB controller for vbus
consumer (i.e.
OK
+attach/detach event) and EUD is established via a directed graph. EUDThe EUD acts
+act
Directed graph is to show VBUS and charger events flow.
as an output link and clients of EUD as input link of this directed
+graph. Events flows through the directed graph only during debug mode.
Probably this is a very obvious question but, you mean debug and trace events or do you mean VBUS/charger events?
--
+
+An example for EUD device node:
+
+ÂÂÂ eud: qcom,msm-eud@88e0000 {
+ÂÂÂÂÂÂÂ compatible = "qcom,msm-eud";
+ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
+ÂÂÂÂÂÂÂ reg = <0x88e0000 0x4000>;
+ÂÂÂÂÂÂÂ usb_con: connector {
+ÂÂÂÂÂÂÂÂÂÂÂ compatible = "usb-c-connector";
+ÂÂÂÂÂÂÂÂÂÂÂ label = "USB-C";
+ÂÂÂÂÂÂÂÂÂÂÂ port {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ eud_usb_output: endpoint {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ remote-endpoint = <&eud_usb3_input>;
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ };
+ÂÂÂÂÂÂÂÂÂÂÂ };
+ÂÂÂÂÂÂÂ };
+ÂÂÂ };
+
+An example for EUD client:
+
+ÂÂÂ usb3 {
+ÂÂÂÂÂÂÂ port {
+ÂÂÂÂÂÂÂÂÂÂÂ eud_usb3_input: endpoint {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ remote-endpoint = <&eud_usb_output>;
+ÂÂÂÂÂÂÂÂÂÂÂ };
+ÂÂÂÂÂÂÂ };
+ÂÂÂ };