1*1eca51f5SBenjamin Bara# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2*1eca51f5SBenjamin Bara%YAML 1.2
3*1eca51f5SBenjamin Bara---
4*1eca51f5SBenjamin Bara$id: http://devicetree.org/schemas/usb/cypress,hx3.yaml#
5*1eca51f5SBenjamin Bara$schema: http://devicetree.org/meta-schemas/core.yaml#
6*1eca51f5SBenjamin Bara
7*1eca51f5SBenjamin Baratitle: Cypress HX3 USB 3.0 hub controller family
8*1eca51f5SBenjamin Bara
9*1eca51f5SBenjamin Baramaintainers:
10*1eca51f5SBenjamin Bara  - Benjamin Bara <benjamin.bara@skidata.com>
11*1eca51f5SBenjamin Bara
12*1eca51f5SBenjamin BaraallOf:
13*1eca51f5SBenjamin Bara  - $ref: usb-device.yaml#
14*1eca51f5SBenjamin Bara
15*1eca51f5SBenjamin Baraproperties:
16*1eca51f5SBenjamin Bara  compatible:
17*1eca51f5SBenjamin Bara    enum:
18*1eca51f5SBenjamin Bara      - usb4b4,6504
19*1eca51f5SBenjamin Bara      - usb4b4,6506
20*1eca51f5SBenjamin Bara
21*1eca51f5SBenjamin Bara  reg: true
22*1eca51f5SBenjamin Bara
23*1eca51f5SBenjamin Bara  reset-gpios:
24*1eca51f5SBenjamin Bara    items:
25*1eca51f5SBenjamin Bara      - description: GPIO specifier for RESETN pin.
26*1eca51f5SBenjamin Bara
27*1eca51f5SBenjamin Bara  vdd-supply:
28*1eca51f5SBenjamin Bara    description:
29*1eca51f5SBenjamin Bara      1V2 power supply (VDD_EFUSE, AVDD12, DVDD12).
30*1eca51f5SBenjamin Bara
31*1eca51f5SBenjamin Bara  vdd2-supply:
32*1eca51f5SBenjamin Bara    description:
33*1eca51f5SBenjamin Bara      3V3 power supply (AVDD33, VDD_IO).
34*1eca51f5SBenjamin Bara
35*1eca51f5SBenjamin Bara  peer-hub:
36*1eca51f5SBenjamin Bara    $ref: /schemas/types.yaml#/definitions/phandle
37*1eca51f5SBenjamin Bara    description:
38*1eca51f5SBenjamin Bara      phandle to the peer hub on the controller.
39*1eca51f5SBenjamin Bara
40*1eca51f5SBenjamin Bararequired:
41*1eca51f5SBenjamin Bara  - compatible
42*1eca51f5SBenjamin Bara  - reg
43*1eca51f5SBenjamin Bara  - peer-hub
44*1eca51f5SBenjamin Bara  - vdd-supply
45*1eca51f5SBenjamin Bara  - vdd2-supply
46*1eca51f5SBenjamin Bara
47*1eca51f5SBenjamin BaraadditionalProperties: false
48*1eca51f5SBenjamin Bara
49*1eca51f5SBenjamin Baraexamples:
50*1eca51f5SBenjamin Bara  - |
51*1eca51f5SBenjamin Bara    #include <dt-bindings/gpio/gpio.h>
52*1eca51f5SBenjamin Bara
53*1eca51f5SBenjamin Bara    usb {
54*1eca51f5SBenjamin Bara        dr_mode = "host";
55*1eca51f5SBenjamin Bara        #address-cells = <1>;
56*1eca51f5SBenjamin Bara        #size-cells = <0>;
57*1eca51f5SBenjamin Bara
58*1eca51f5SBenjamin Bara        /* 2.0 hub on port 1 */
59*1eca51f5SBenjamin Bara        hub_2_0: hub@1 {
60*1eca51f5SBenjamin Bara          compatible = "usb4b4,6504";
61*1eca51f5SBenjamin Bara          reg = <1>;
62*1eca51f5SBenjamin Bara          peer-hub = <&hub_3_0>;
63*1eca51f5SBenjamin Bara          reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
64*1eca51f5SBenjamin Bara          vdd-supply = <&reg_1v2_usb>;
65*1eca51f5SBenjamin Bara          vdd2-supply = <&reg_3v3_usb>;
66*1eca51f5SBenjamin Bara        };
67*1eca51f5SBenjamin Bara
68*1eca51f5SBenjamin Bara        /* 3.0 hub on port 2 */
69*1eca51f5SBenjamin Bara        hub_3_0: hub@2 {
70*1eca51f5SBenjamin Bara          compatible = "usb4b4,6506";
71*1eca51f5SBenjamin Bara          reg = <2>;
72*1eca51f5SBenjamin Bara          peer-hub = <&hub_2_0>;
73*1eca51f5SBenjamin Bara          reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
74*1eca51f5SBenjamin Bara          vdd-supply = <&reg_1v2_usb>;
75*1eca51f5SBenjamin Bara          vdd2-supply = <&reg_3v3_usb>;
76*1eca51f5SBenjamin Bara        };
77*1eca51f5SBenjamin Bara    };
78