Debian Codegraph @

Documentation/devicetree/bindings/usb/wch,ch334.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/wch,ch334.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: WCH CH334/CH335 USB 2.0 Hub Controller
8
9 maintainers:
10 - Chaoyi Chen <[email protected]>
11
12 allOf:
13 - $ref: usb-hub.yaml#
14
15 properties:
16 compatible:
17 enum:
18 - usb1a86,8091
19
20 reg: true
21
22 reset-gpios:
23 description: GPIO controlling the RESET# pin.
24
25 vdd33-supply:
26 description:
27 The regulator that provides 3.3V core power to the hub.
28
29 v5-supply:
30 description:
31 The regulator that provides 3.3V or 5V power to the hub.
32
33 ports:
34 $ref: /schemas/graph.yaml#/properties/ports
35
36 patternProperties:
37 '^port@':
38 $ref: /schemas/graph.yaml#/properties/port
39
40 properties:
41 reg:
42 minimum: 1
43 maximum: 4
44
45 required:
46 - compatible
47 - reg
48
49 additionalProperties: false
50
51 examples:
52 - |
53 #include <dt-bindings/gpio/gpio.h>
54 usb {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 hub: hub@1 {
59 compatible = "usb1a86,8091";
60 reg = <1>;
61 reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
62 v5-supply = <&vcc_3v3>;
63 vdd33-supply = <&vcc_3v3>;
64 };
65 };