[PATCH 2/2] dt-bindings: usb: ti,tps6598x: add dt binding doc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Document the tps6598x driver

Signed-off-by: Angus Ainslie <angus@xxxxxxxx>
---
 .../devicetree/bindings/usb/ti,tps6598x.yaml  | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml

diff --git a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
new file mode 100644
index 000000000000..925db38aaf84
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/ti,tps6598x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI tps6598x driver
+
+maintainers:
+  -
+
+properties:
+  $nodename:
+    pattern: '^usb-pd@.*'
+
+  compatible:
+    oneOf:
+      - enum:
+        - ti,tps6598x
+      - items:
+        - const: ti,tps6598x
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  connector:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    typec_pd: usb-pd@3f {
+      compatible = "ti,tps6598x";
+      reg = <0x3f>;
+      pinctrl-names = "default";
+      pinctrl-0 = <&pinctrl_typec>, <&pinctrl_tcpc>;
+      interrupt-parent = <&gpio1>;
+      interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+
+      connector {
+        compatible = "usb-c-connector";
+        label = "USB-C";
+        data-role = "dual";
+
+        ports {
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          port@0 {
+            reg = <0>;
+
+            usb_con_hs: endpoint {
+              remote-endpoint = <&typec_hs>;
+            };
+          };
+
+          port@1 {
+            reg = <1>;
+
+            usb_con_ss: endpoint {
+              remote-endpoint = <&typec_ss>;
+            };
+          };
+        };
+      };
+    };
-- 
2.25.1




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux