| 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# |
| 6 |
|
| 7 |
title: Maxim TCPCI Type-C PD controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Badhri Jagan Sridharan <[email protected]> |
| 11 |
|
| 12 |
description: Maxim TCPCI Type-C PD controller |
| 13 |
|
| 14 |
properties: |
| 15 |
compatible: |
| 16 |
oneOf: |
| 17 |
- enum: |
| 18 |
- maxim,max33359 |
| 19 |
- items: |
| 20 |
- const: maxim,max77759-tcpci |
| 21 |
- const: maxim,max33359 |
| 22 |
|
| 23 |
reg: |
| 24 |
maxItems: 1 |
| 25 |
|
| 26 |
interrupts: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
connector: |
| 30 |
type: object |
| 31 |
$ref: ../connector/usb-connector.yaml# |
| 32 |
description: |
| 33 |
Properties for usb c connector. |
| 34 |
|
| 35 |
required: |
| 36 |
- compatible |
| 37 |
- reg |
| 38 |
- interrupts |
| 39 |
- connector |
| 40 |
|
| 41 |
additionalProperties: false |
| 42 |
|
| 43 |
examples: |
| 44 |
- | |
| 45 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 46 |
#include <dt-bindings/usb/pd.h> |
| 47 |
i2c { |
| 48 |
#address-cells = <1>; |
| 49 |
#size-cells = <0>; |
| 50 |
|
| 51 |
maxtcpc@25 { |
| 52 |
compatible = "maxim,max33359"; |
| 53 |
reg = <0x25>; |
| 54 |
interrupt-parent = <&gpa8>; |
| 55 |
interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 56 |
|
| 57 |
connector { |
| 58 |
compatible = "usb-c-connector"; |
| 59 |
label = "USB-C"; |
| 60 |
data-role = "dual"; |
| 61 |
power-role = "dual"; |
| 62 |
try-power-role = "sink"; |
| 63 |
self-powered; |
| 64 |
op-sink-microwatt = <2600000>; |
| 65 |
new-source-frs-typec-current = <FRS_5V_1P5A>; |
| 66 |
source-pdos = <PDO_FIXED(5000, 900, |
| 67 |
PDO_FIXED_SUSPEND | |
| 68 |
PDO_FIXED_USB_COMM | |
| 69 |
PDO_FIXED_DATA_SWAP | |
| 70 |
PDO_FIXED_DUAL_ROLE)>; |
| 71 |
sink-pdos = <PDO_FIXED(5000, 3000, |
| 72 |
PDO_FIXED_USB_COMM | |
| 73 |
PDO_FIXED_DATA_SWAP | |
| 74 |
PDO_FIXED_DUAL_ROLE) |
| 75 |
PDO_FIXED(9000, 2000, 0)>; |
| 76 |
sink-bc12-completion-time-ms = <500>; |
| 77 |
pd-revision = /bits/ 8 <0x03 0x01 0x01 0x08>; |
| 78 |
}; |
| 79 |
}; |
| 80 |
}; |
| 81 |
... |