From 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 13 May 2024 10:30:14 +0000
Subject: [PATCH] modify sin led gpio

---
 kernel/Documentation/devicetree/bindings/usb/etek,et7303.yaml |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/kernel/Documentation/devicetree/bindings/usb/etek,et7303.yaml b/kernel/Documentation/devicetree/bindings/usb/etek,et7303.yaml
index 272661a..6e2d64f 100644
--- a/kernel/Documentation/devicetree/bindings/usb/etek,et7303.yaml
+++ b/kernel/Documentation/devicetree/bindings/usb/etek,et7303.yaml
@@ -19,9 +19,19 @@
   interrupts:
     maxItems: 1
 
+  ports:
+    type: object
+    properties:
+      port@0:
+        type: object
+        description: TCPC connected to USB controller to support dual-role switch.
+
+    required:
+      - port@0
+
   connector:
     type: object
-    $ref: ../connector/usb-connector.txt#
+    $ref: ../connector/usb-connector.yaml#
     description:
       Properties for usb c connector that attached to the tcpci chip.
 
@@ -47,7 +57,20 @@
         vbus-supply = <&vcc5v0_typec>;
         status = "okay";
 
+        ports {
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          port@0 {
+            reg = <0>;
+            usbc0_role_sw: endpoint@0 {
+              remote-endpoint = <&dwc3_0_role_switch>;
+            };
+          };
+        };
+
         usb_con: connector {
+          compatible = "usb-c-connector";
           label = "USB-C";
           data-role = "dual";
           power-role = "dual";
@@ -55,6 +78,18 @@
           op-sink-microwatt = <1000000>;
           sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
           source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+
+          ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            port@0 {
+              reg = <0>;
+              usbc0_orien_sw: endpoint {
+                remote-endpoint = <&usbdp_phy0_orientation_switch>;
+              };
+            };
+          };
         };
       };
     };

--
Gitblit v1.6.2