0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/usb/maxim,max33359.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: Maxim TCPCI Type-C PD controller DT bindings
0008
0009 maintainers:
0010 - Badhri Jagan Sridharan <badhri@google.com>
0011
0012 description: Maxim TCPCI Type-C PD controller
0013
0014 properties:
0015 compatible:
0016 enum:
0017 - maxim,max33359
0018
0019 reg:
0020 maxItems: 1
0021
0022 interrupts:
0023 maxItems: 1
0024
0025 connector:
0026 type: object
0027 $ref: ../connector/usb-connector.yaml#
0028 description:
0029 Properties for usb c connector.
0030
0031 required:
0032 - compatible
0033 - reg
0034 - interrupts
0035 - connector
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/interrupt-controller/irq.h>
0042 #include <dt-bindings/usb/pd.h>
0043 i2c0 {
0044 #address-cells = <1>;
0045 #size-cells = <0>;
0046
0047 maxtcpc@25 {
0048 compatible = "maxim,max33359";
0049 reg = <0x25>;
0050 interrupt-parent = <&gpa8>;
0051 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0052
0053 connector {
0054 compatible = "usb-c-connector";
0055 label = "USB-C";
0056 data-role = "dual";
0057 power-role = "dual";
0058 try-power-role = "sink";
0059 self-powered;
0060 op-sink-microwatt = <2600000>;
0061 new-source-frs-typec-current = <FRS_5V_1P5A>;
0062 source-pdos = <PDO_FIXED(5000, 900,
0063 PDO_FIXED_SUSPEND |
0064 PDO_FIXED_USB_COMM |
0065 PDO_FIXED_DATA_SWAP |
0066 PDO_FIXED_DUAL_ROLE)>;
0067 sink-pdos = <PDO_FIXED(5000, 3000,
0068 PDO_FIXED_USB_COMM |
0069 PDO_FIXED_DATA_SWAP |
0070 PDO_FIXED_DUAL_ROLE)
0071 PDO_FIXED(9000, 2000, 0)>;
0072 };
0073 };
0074 };
0075 ...