← Documents Documentation/devicetree/bindings/usb/microchip,usb2514.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Microchip USB2514 Hub Controller

USB2514 계열 product ID, reset·전원 조건과 hard-wired Ethernet child를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

microchip,usb2514.yaml:1-90

USB2514 계열 product ID, reset·전원 조건과 hard-wired Ethernet child를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, interrupt, clock, PHY, supply, 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/microchip,usb2514.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Microchip USB2514 Hub Controller
8
9 maintainers:
10 - Fabio Estevam <festevam@gmail.com>
11
12 properties:
13 compatible:
14 oneOf:
15 - enum:
16 - usb424,2412
17 - usb424,2417
18 - usb424,2514
19 - usb424,2517
20 - items:
21 - enum:
22 - usb424,2512
23 - usb424,2513
24 - const: usb424,2514
25
26 reg: true
27
28 reset-gpios:
29 description: GPIO connected to the RESET_N pin.
30
31 vdd-supply:
32 description: 3.3V power supply.
33
34 vdda-supply:
35 description: 3.3V analog power supply.
36
37 clocks:
38 description: External 24MHz clock connected to the CLKIN pin.
39 maxItems: 1
40
41 required:
42 - compatible
43 - reg
44
45 patternProperties:
46 "^.*@[0-9a-f]{1,2}$":
47 description: The hard wired USB devices
48 type: object
49 $ref: /schemas/usb/usb-device.yaml
50 additionalProperties: true
51
52 allOf:
53 - $ref: usb-device.yaml#
54 - if:
55 not:
56 properties:
57 compatible:
58 contains:
59 const: usb424,2514
60 then:
61 properties:
62 vdda-supply: false
63
64 unevaluatedProperties: false
65
66 examples:
67 - |
68 #include <dt-bindings/clock/imx6qdl-clock.h>
69 #include <dt-bindings/gpio/gpio.h>
70
71 usb {
72 #address-cells = <1>;
73 #size-cells = <0>;
74
75 usb-hub@1 {
76 compatible = "usb424,2514";
77 reg = <1>;
78 clocks = <&clks IMX6QDL_CLK_CKO>;
79 reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
80 vdd-supply = <&reg_3v3_hub>;
81 vdda-supply = <&reg_3v3a_hub>;
82 #address-cells = <1>;
83 #size-cells = <0>;
84
85 ethernet@1 {
86 compatible = "usbb95,772b";
87 reg = <1>;
88 };
89 };
90 };
91

3. 한국어 전문 번역

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

Microchip USB2514 hub controller

1-11

GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 schema는 Microchip USB2514 hub controller 계열을 정의합니다. 관리자는 Fabio Estevam입니다.

Product compatible, reset와 전원

12-40

직접 지원하는 USB product ID는 `usb424,2412`, `usb424,2417`, `usb424,2514`, `usb424,2517`입니다. `usb424,2512`와 `usb424,2513`은 `usb424,2514` fallback을 함께 지정합니다.

`reset-gpios`는 active-low RESET_N pin에 연결됩니다. `vdd-supply`와 `vdda-supply`는 각각 3.3 V digital·analog 전원이고, 외부 24 MHz clock은 CLKIN pin에 연결되며 하나만 허용됩니다.

properties:
  compatible:
    oneOf:
      - enum:
          - usb424,2412
          - usb424,2417
          - usb424,2514
          - usb424,2517
      - items:
          - enum:
              - usb424,2512
              - usb424,2513
          - const: usb424,2514

  reg: true

  reset-gpios:
    description: GPIO connected to the RESET_N pin.

  vdd-supply:
    description: 3.3V power supply.

  vdda-supply:
    description: 3.3V analog power supply.

  clocks:
    description: External 24MHz clock connected to the CLKIN pin.
    maxItems: 1

Hard-wired child와 VDDA 조건

41-65

`compatible`과 `reg`가 필수입니다. 한두 자리 16진 unit address를 가진 child는 hard-wired USB device이며 `usb-device.yaml`을 따릅니다.

공통 USB device schema를 상속합니다. compatible 목록에 `usb424,2514`가 포함되지 않는 product에서는 `vdda-supply`를 허용하지 않습니다. 따라서 직접 2514와 2512·2513 fallback 조합에서만 analog supply를 쓸 수 있습니다. 평가되지 않은 추가 속성은 허용하지 않습니다.

required:
  - compatible
  - reg

patternProperties:
  "^.*@[0-9a-f]{1,2}$":
    description: The hard wired USB devices
    type: object
    $ref: /schemas/usb/usb-device.yaml
    additionalProperties: true

allOf:
  - $ref: usb-device.yaml#
  - if:
      not:
        properties:
          compatible:
            contains:
              const: usb424,2514
    then:
      properties:
        vdda-supply: false

unevaluatedProperties: false

Hub와 hard-wired Ethernet child

66-90

예제 `usb-hub@1`은 port 1의 USB2514 hub로, i.MX6 clock, active-low GPIO 12 reset, 3.3 V digital·analog regulator를 사용합니다.

hub 아래 `ethernet@1`은 product `usbb95,772b`인 hard-wired USB Ethernet device를 port 1에 연결합니다.

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

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

        usb-hub@1 {
            compatible = "usb424,2514";
            reg = <1>;
            clocks = <&clks IMX6QDL_CLK_CKO>;
            reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
            vdd-supply = <&reg_3v3_hub>;
            vdda-supply = <&reg_3v3a_hub>;
            #address-cells = <1>;
            #size-cells = <0>;

            ethernet@1 {
                compatible = "usbb95,772b";
                reg = <1>;
            };
        };
    };