xref: /linux/Documentation/devicetree/bindings/usb/cypress,hx3.yaml (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
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
7title: Cypress HX3 USB 3.0 hub controller family
8
9maintainers:
10  - Benjamin Bara <benjamin.bara@skidata.com>
11
12allOf:
13  - $ref: usb-device.yaml#
14
15properties:
16  compatible:
17    enum:
18      - usb4b4,6504
19      - usb4b4,6506
20
21  reg: true
22
23  reset-gpios:
24    items:
25      - description: GPIO specifier for RESETN pin.
26
27  vdd-supply:
28    description:
29      1V2 power supply (VDD_EFUSE, AVDD12, DVDD12).
30
31  vdd2-supply:
32    description:
33      3V3 power supply (AVDD33, VDD_IO).
34
35  peer-hub:
36    $ref: /schemas/types.yaml#/definitions/phandle
37    description:
38      phandle to the peer hub on the controller.
39
40required:
41  - compatible
42  - reg
43  - peer-hub
44  - vdd-supply
45  - vdd2-supply
46
47additionalProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52
53    usb {
54        dr_mode = "host";
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        /* 2.0 hub on port 1 */
59        hub_2_0: hub@1 {
60          compatible = "usb4b4,6504";
61          reg = <1>;
62          peer-hub = <&hub_3_0>;
63          reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
64          vdd-supply = <&reg_1v2_usb>;
65          vdd2-supply = <&reg_3v3_usb>;
66        };
67
68        /* 3.0 hub on port 2 */
69        hub_3_0: hub@2 {
70          compatible = "usb4b4,6506";
71          reg = <2>;
72          peer-hub = <&hub_2_0>;
73          reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
74          vdd-supply = <&reg_1v2_usb>;
75          vdd2-supply = <&reg_3v3_usb>;
76        };
77    };
78