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