← Documents Documentation/devicetree/bindings/usb/usb-xhci.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Generic USB xHCI Controller

일반 xHCI controller의 LPM, port quirk와 interrupter 속성을 설명합니다.

Source pathDocumentation/devicetree/bindings/usb/usb-xhci.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약과 해설

usb-xhci.yaml:1-48

일반 xHCI controller의 LPM, port quirk와 interrupter 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, property, enum, phandle, example, source path와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/usb/usb-xhci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Generic USB xHCI Controller
8
9 maintainers:
10 - Mathias Nyman <[email protected]>
11
12 allOf:
13 - $ref: usb-hcd.yaml#
14
15 properties:
16 usb2-lpm-disable:
17 description: Indicates if we don't want to enable USB2 HW LPM
18 type: boolean
19
20 usb3-lpm-capable:
21 description: Determines if platform is USB3 LPM capable
22 type: boolean
23
24 quirk-broken-port-ped:
25 description: Set if the controller has broken port disable mechanism
26 type: boolean
27
28 imod-interval-ns:
29 description: Interrupt moderation interval
30 default: 5000
31
32 num-hc-interrupters:
33 description: Maximum number of interrupters to allocate
34 $ref: /schemas/types.yaml#/definitions/uint16
35 minimum: 1
36 maximum: 1024
37
38 additionalProperties: true
39
40 examples:
41 - |
42 usb@f0930000 {
43 compatible = "generic-xhci";
44 reg = <0xf0930000 0x8c8>;
45 interrupts = <0x0 0x4e 0x0>;
46 usb2-lpm-disable;
47 usb3-lpm-capable;
48 };
49

3. 한국어 전문 번역

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

Generic USB xHCI controller

1-14

GPL-2.0으로 배포되는 이 스키마는 일반 USB xHCI controller를 정의하며 공통 `usb-hcd.yaml`을 상속합니다. 관리자는 Mathias Nyman입니다.

LPM, port quirk와 interrupter

15-38

`usb2-lpm-disable`은 USB 2.0 hardware Link Power Management를 활성화하지 않도록 하고, `usb3-lpm-capable`은 platform이 USB 3.0 LPM을 지원함을 나타냅니다. `quirk-broken-port-ped`는 controller의 port disable mechanism이 고장 난 경우 설정합니다.

`imod-interval-ns`는 interrupt moderation interval이며 기본값은 5000ns입니다. `num-hc-interrupters`는 할당할 interrupter의 최대 수로, 16-bit 정수 1~1024 범위입니다. controller별 추가 속성은 허용합니다.

properties:
  usb2-lpm-disable:
    description: Indicates if we don't want to enable USB2 HW LPM
    type: boolean

  usb3-lpm-capable:
    description: Determines if platform is USB3 LPM capable
    type: boolean

  quirk-broken-port-ped:
    description: Set if the controller has broken port disable mechanism
    type: boolean

  imod-interval-ns:
    description: Interrupt moderation interval
    default: 5000

  num-hc-interrupters:
    description: Maximum number of interrupters to allocate
    $ref: /schemas/types.yaml#/definitions/uint16
    minimum: 1
    maximum: 1024

additionalProperties: true

USB 2.0·3.0 LPM 예제

39-48

예제 `generic-xhci` controller는 register와 interrupt를 지정하고 USB 2.0 LPM은 비활성화하는 한편 USB 3.0 LPM capability는 활성화합니다.


examples:
  - |
    usb@f0930000 {
      compatible = "generic-xhci";
      reg = <0xf0930000 0x8c8>;
      interrupts = <0x0 0x4e 0x0>;
      usb2-lpm-disable;
      usb3-lpm-capable;
    };