| .. | .. |
|---|
| 19 | 19 | interrupts: |
|---|
| 20 | 20 | maxItems: 1 |
|---|
| 21 | 21 | |
|---|
| 22 | + ports: |
|---|
| 23 | + type: object |
|---|
| 24 | + properties: |
|---|
| 25 | + port@0: |
|---|
| 26 | + type: object |
|---|
| 27 | + description: TCPC connected to USB controller to support dual-role switch. |
|---|
| 28 | + |
|---|
| 29 | + required: |
|---|
| 30 | + - port@0 |
|---|
| 31 | + |
|---|
| 22 | 32 | connector: |
|---|
| 23 | 33 | type: object |
|---|
| 24 | | - $ref: ../connector/usb-connector.txt# |
|---|
| 34 | + $ref: ../connector/usb-connector.yaml# |
|---|
| 25 | 35 | description: |
|---|
| 26 | 36 | Properties for usb c connector that attached to the tcpci chip. |
|---|
| 27 | 37 | |
|---|
| .. | .. |
|---|
| 47 | 57 | vbus-supply = <&vcc5v0_typec>; |
|---|
| 48 | 58 | status = "okay"; |
|---|
| 49 | 59 | |
|---|
| 60 | + ports { |
|---|
| 61 | + #address-cells = <1>; |
|---|
| 62 | + #size-cells = <0>; |
|---|
| 63 | + |
|---|
| 64 | + port@0 { |
|---|
| 65 | + reg = <0>; |
|---|
| 66 | + usbc0_role_sw: endpoint@0 { |
|---|
| 67 | + remote-endpoint = <&dwc3_0_role_switch>; |
|---|
| 68 | + }; |
|---|
| 69 | + }; |
|---|
| 70 | + }; |
|---|
| 71 | + |
|---|
| 50 | 72 | usb_con: connector { |
|---|
| 73 | + compatible = "usb-c-connector"; |
|---|
| 51 | 74 | label = "USB-C"; |
|---|
| 52 | 75 | data-role = "dual"; |
|---|
| 53 | 76 | power-role = "dual"; |
|---|
| .. | .. |
|---|
| 55 | 78 | op-sink-microwatt = <1000000>; |
|---|
| 56 | 79 | sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; |
|---|
| 57 | 80 | source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
|---|
| 81 | + |
|---|
| 82 | + ports { |
|---|
| 83 | + #address-cells = <1>; |
|---|
| 84 | + #size-cells = <0>; |
|---|
| 85 | + |
|---|
| 86 | + port@0 { |
|---|
| 87 | + reg = <0>; |
|---|
| 88 | + usbc0_orien_sw: endpoint { |
|---|
| 89 | + remote-endpoint = <&usbdp_phy0_orientation_switch>; |
|---|
| 90 | + }; |
|---|
| 91 | + }; |
|---|
| 92 | + }; |
|---|
| 58 | 93 | }; |
|---|
| 59 | 94 | }; |
|---|
| 60 | 95 | }; |
|---|