Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / usb / maxim,max33359.yaml
blob93a19eda610b975a2be7502f2aafa37ca3755a44
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: "http://devicetree.org/schemas/usb/maxim,max33359.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Maxim TCPCI Type-C PD controller DT bindings
9 maintainers:
10   - Badhri Jagan Sridharan <badhri@google.com>
12 description: Maxim TCPCI Type-C PD controller
14 properties:
15   compatible:
16     enum:
17       - maxim,max33359
19   reg:
20     maxItems: 1
22   interrupts:
23     maxItems: 1
25   connector:
26     type: object
27     $ref: ../connector/usb-connector.yaml#
28     description:
29       Properties for usb c connector.
31 required:
32   - compatible
33   - reg
34   - interrupts
35   - connector
37 additionalProperties: false
39 examples:
40   - |
41     #include <dt-bindings/interrupt-controller/irq.h>
42     #include <dt-bindings/usb/pd.h>
43     i2c0 {
44         #address-cells = <1>;
45         #size-cells = <0>;
47         maxtcpc@25 {
48             compatible = "maxim,max33359";
49             reg = <0x25>;
50             interrupt-parent = <&gpa8>;
51             interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
53             connector {
54                 compatible = "usb-c-connector";
55                 label = "USB-C";
56                 data-role = "dual";
57                 power-role = "dual";
58                 try-power-role = "sink";
59                 self-powered;
60                 op-sink-microwatt = <2600000>;
61                 new-source-frs-typec-current = <FRS_5V_1P5A>;
62                 source-pdos = <PDO_FIXED(5000, 900,
63                                          PDO_FIXED_SUSPEND |
64                                          PDO_FIXED_USB_COMM |
65                                          PDO_FIXED_DATA_SWAP |
66                                          PDO_FIXED_DUAL_ROLE)>;
67                 sink-pdos = <PDO_FIXED(5000, 3000,
68                                        PDO_FIXED_USB_COMM |
69                                        PDO_FIXED_DATA_SWAP |
70                                        PDO_FIXED_DUAL_ROLE)
71                                        PDO_FIXED(9000, 2000, 0)>;
72             };
73         };
74     };
75 ...