Debian Codegraph @

Documentation/devicetree/bindings/usb/cypress,hx3.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/usb/cypress,hx3.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Cypress HX3 USB 3.0 hub controller family
8
9 maintainers:
10 - Benjamin Bara <[email protected]>
11
12 allOf:
13 - $ref: usb-device.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - enum:
19 - usb4b4,6504
20 - usb4b4,6506
21 - items:
22 - enum:
23 - usb4b4,6500
24 - usb4b4,6508
25 - const: usb4b4,6504
26 - items:
27 - enum:
28 - usb4b4,6502
29 - usb4b4,6503
30 - usb4b4,6507
31 - usb4b4,650a
32 - const: usb4b4,6506
33
34 reg: true
35
36 reset-gpios:
37 items:
38 - description: GPIO specifier for RESETN pin.
39
40 vdd-supply:
41 description:
42 1V2 power supply (VDD_EFUSE, AVDD12, DVDD12).
43
44 vdd2-supply:
45 description:
46 3V3 power supply (AVDD33, VDD_IO).
47
48 peer-hub:
49 $ref: /schemas/types.yaml#/definitions/phandle
50 description:
51 phandle to the peer hub on the controller.
52
53 required:
54 - compatible
55 - reg
56 - peer-hub
57 - vdd-supply
58 - vdd2-supply
59
60 additionalProperties: false
61
62 examples:
63 - |
64 #include <dt-bindings/gpio/gpio.h>
65
66 usb {
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 /* 2.0 hub on port 1 */
71 hub_2_0: hub@1 {
72 compatible = "usb4b4,6504";
73 reg = <1>;
74 peer-hub = <&hub_3_0>;
75 reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
76 vdd-supply = <&reg_1v2_usb>;
77 vdd2-supply = <&reg_3v3_usb>;
78 };
79
80 /* 3.0 hub on port 2 */
81 hub_3_0: hub@2 {
82 compatible = "usb4b4,6506";
83 reg = <2>;
84 peer-hub = <&hub_2_0>;
85 reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
86 vdd-supply = <&reg_1v2_usb>;
87 vdd2-supply = <&reg_3v3_usb>;
88 };
89 };