Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/usb/ti,tps6598x.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller DT bindings
0008 
0009 maintainers:
0010   - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
0011 
0012 description: |
0013   Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
0014 
0015   A variant of this controller known as Apple CD321x or Apple ACE is also
0016   present on hardware with Apple SoCs such as the M1.
0017 
0018 properties:
0019   compatible:
0020     enum:
0021       - ti,tps6598x
0022       - apple,cd321x
0023   reg:
0024     maxItems: 1
0025 
0026   interrupts:
0027     maxItems: 1
0028 
0029   interrupt-names:
0030     items:
0031       - const: irq
0032 
0033 required:
0034   - compatible
0035   - reg
0036   - interrupts
0037   - interrupt-names
0038 
0039 additionalProperties: true
0040 
0041 examples:
0042   - |
0043     #include <dt-bindings/interrupt-controller/irq.h>
0044     i2c0 {
0045         #address-cells = <1>;
0046         #size-cells = <0>;
0047 
0048         tps6598x: tps6598x@38 {
0049             compatible = "ti,tps6598x";
0050             reg = <0x38>;
0051 
0052             interrupt-parent = <&msmgpio>;
0053             interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
0054             interrupt-names = "irq";
0055 
0056             pinctrl-names = "default";
0057             pinctrl-0 = <&typec_pins>;
0058 
0059             typec_con: connector {
0060                 compatible = "usb-c-connector";
0061                 label = "USB-C";
0062                 port {
0063                     typec_ep: endpoint {
0064                         remote-endpoint = <&otg_ep>;
0065                     };
0066                 };
0067             };
0068         };
0069     };
0070 ...