xref: /freebsd/sys/contrib/device-tree/Bindings/usb/vialab,vl817.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/vialab,vl817.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Via labs VL817 USB 3.1 hub controller
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Anand Moon <linux.amoon@gmail.com>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel VadotallOf:
13cb7aa33aSEmmanuel Vadot  - $ref: usb-device.yaml#
14cb7aa33aSEmmanuel Vadot
15cb7aa33aSEmmanuel Vadotproperties:
16cb7aa33aSEmmanuel Vadot  compatible:
17cb7aa33aSEmmanuel Vadot    enum:
18cb7aa33aSEmmanuel Vadot      - usb2109,2817
19cb7aa33aSEmmanuel Vadot      - usb2109,817
20cb7aa33aSEmmanuel Vadot
21cb7aa33aSEmmanuel Vadot  reg: true
22cb7aa33aSEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  reset-gpios:
24cb7aa33aSEmmanuel Vadot    maxItems: 1
25cb7aa33aSEmmanuel Vadot    description:
26cb7aa33aSEmmanuel Vadot      GPIO controlling the RESET# pin.
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  vdd-supply:
29cb7aa33aSEmmanuel Vadot    description:
30cb7aa33aSEmmanuel Vadot      phandle to the regulator that provides power to the hub.
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel Vadot  peer-hub:
33cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
34cb7aa33aSEmmanuel Vadot    description:
35cb7aa33aSEmmanuel Vadot      phandle to the peer hub on the controller.
36cb7aa33aSEmmanuel Vadot
37cb7aa33aSEmmanuel Vadotrequired:
38cb7aa33aSEmmanuel Vadot  - compatible
39cb7aa33aSEmmanuel Vadot  - reg
40cb7aa33aSEmmanuel Vadot  - vdd-supply
41cb7aa33aSEmmanuel Vadot  - peer-hub
42cb7aa33aSEmmanuel Vadot
43cb7aa33aSEmmanuel VadotadditionalProperties: false
44cb7aa33aSEmmanuel Vadot
45cb7aa33aSEmmanuel Vadotexamples:
46cb7aa33aSEmmanuel Vadot  - |
47cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
48cb7aa33aSEmmanuel Vadot
49cb7aa33aSEmmanuel Vadot    usb {
50cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
51cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
52cb7aa33aSEmmanuel Vadot
53cb7aa33aSEmmanuel Vadot        /* 2.0 hub on port 1 */
54cb7aa33aSEmmanuel Vadot        hub_2_0: hub@1 {
55cb7aa33aSEmmanuel Vadot            compatible = "usb2109,2817";
56cb7aa33aSEmmanuel Vadot            reg = <1>;
57cb7aa33aSEmmanuel Vadot            vdd-supply = <&vcc_5v>;
58cb7aa33aSEmmanuel Vadot            peer-hub = <&hub_3_0>;
59cb7aa33aSEmmanuel Vadot            reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
60cb7aa33aSEmmanuel Vadot        };
61cb7aa33aSEmmanuel Vadot
62cb7aa33aSEmmanuel Vadot        /* 3.1 hub on port 4 */
63cb7aa33aSEmmanuel Vadot        hub_3_0: hub@2 {
64cb7aa33aSEmmanuel Vadot            compatible = "usb2109,817";
65cb7aa33aSEmmanuel Vadot            reg = <2>;
66cb7aa33aSEmmanuel Vadot            vdd-supply = <&vcc_5v>;
67cb7aa33aSEmmanuel Vadot            peer-hub = <&hub_2_0>;
68cb7aa33aSEmmanuel Vadot            reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69cb7aa33aSEmmanuel Vadot        };
70cb7aa33aSEmmanuel Vadot    };
71