← Documents Documentation/devicetree/bindings/usb/vialab,vl817.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

VIA Labs VL817 USB 3.1 Hub Controller

VL817의 USB 2.0·3.1 peer hub, regulator와 reset 구성을 설명합니다.

Source pathDocumentation/devicetree/bindings/usb/vialab,vl817.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

vialab,vl817.yaml:1-70

VL817의 USB 2.0·3.1 peer hub, regulator와 reset 구성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, property, symbol, phandle, example, source path와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

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

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

VIA Labs VL817 USB 3.1 hub

1-14

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 VIA Labs VL817 USB 3.1 hub controller를 정의하고 공통 `usb-device.yaml`을 상속합니다. 관리자는 Anand Moon입니다.

dual-speed peer hub와 전원

15-43

`compatible`은 USB 2.0 hub용 `usb2109,2817` 또는 USB 3.1 hub용 `usb2109,817`입니다. `reg`는 USB port address를 나타냅니다.

`reset-gpios`는 RESET# pin을 제어하는 GPIO 하나이고 `vdd-supply`는 hub 전원 regulator phandle입니다. `peer-hub`는 같은 controller에 있는 반대 속도 hub의 phandle입니다. compatible, reg, VDD supply, peer hub가 필수이며 추가 속성은 허용하지 않습니다.

properties:
  compatible:
    enum:
      - usb2109,2817
      - usb2109,817

  reg: true

  reset-gpios:
    maxItems: 1
    description:
      GPIO controlling the RESET# pin.

  vdd-supply:
    description:
      phandle to the regulator that provides power to the hub.

  peer-hub:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle to the peer hub on the controller.

required:
  - compatible
  - reg
  - vdd-supply
  - peer-hub

additionalProperties: false

USB 2.0·3.1 peer hub 예제

44-70

예제 controller의 port 1에는 USB 2.0 hub, port 4에는 USB 3.1 hub가 있으며 두 node는 서로를 `peer-hub`로 참조합니다. 두 hub는 같은 5V regulator와 active-low reset GPIO를 공유합니다.


examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    usb {
        #address-cells = <1>;
        #size-cells = <0>;

        /* 2.0 hub on port 1 */
        hub_2_0: hub@1 {
            compatible = "usb2109,2817";
            reg = <1>;
            vdd-supply = <&vcc_5v>;
            peer-hub = <&hub_3_0>;
            reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
        };

        /* 3.1 hub on port 4 */
        hub_3_0: hub@2 {
            compatible = "usb2109,817";
            reg = <2>;
            vdd-supply = <&vcc_5v>;
            peer-hub = <&hub_2_0>;
            reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
        };
    };