| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: ITE IT5202 Type-C USB Alternate Mode Passive MUX |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- AngeloGioacchino Del Regno <[email protected]> |
| 11 |
- Tianping Fang <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
const: ite,it5205 |
| 16 |
|
| 17 |
reg: |
| 18 |
maxItems: 1 |
| 19 |
|
| 20 |
vcc-supply: |
| 21 |
description: Power supply for VCC pin (3.3V) |
| 22 |
|
| 23 |
mode-switch: |
| 24 |
description: Flag the port as possible handle of altmode switching |
| 25 |
type: boolean |
| 26 |
|
| 27 |
orientation-switch: |
| 28 |
description: Flag the port as possible handler of orientation switching |
| 29 |
type: boolean |
| 30 |
|
| 31 |
ite,ovp-enable: |
| 32 |
description: Enable Over Voltage Protection functionality |
| 33 |
type: boolean |
| 34 |
|
| 35 |
port: |
| 36 |
$ref: /schemas/graph.yaml#/properties/port |
| 37 |
description: |
| 38 |
A port node to link the IT5205 to a TypeC controller for the purpose of |
| 39 |
handling altmode muxing and orientation switching. |
| 40 |
|
| 41 |
required: |
| 42 |
- compatible |
| 43 |
- reg |
| 44 |
- orientation-switch |
| 45 |
- port |
| 46 |
|
| 47 |
additionalProperties: false |
| 48 |
|
| 49 |
examples: |
| 50 |
- | |
| 51 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 52 |
i2c { |
| 53 |
#address-cells = <1>; |
| 54 |
#size-cells = <0>; |
| 55 |
|
| 56 |
typec-mux@48 { |
| 57 |
compatible = "ite,it5205"; |
| 58 |
reg = <0x48>; |
| 59 |
|
| 60 |
mode-switch; |
| 61 |
orientation-switch; |
| 62 |
|
| 63 |
vcc-supply = <&mt6359_vibr_ldo_reg>; |
| 64 |
|
| 65 |
port { |
| 66 |
it5205_usbss_sbu: endpoint { |
| 67 |
remote-endpoint = <&typec_controller>; |
| 68 |
}; |
| 69 |
}; |
| 70 |
}; |
| 71 |
}; |
| 72 |
... |