← Documents Documentation/devicetree/bindings/usb/aspeed,ast2600-udc.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

ASPEED USB 2.0 Device Controller

AST2600 USB device controller의 endpoint·DMA 기능, 필수 resource와 pinctrl 예제를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

aspeed,ast2600-udc.yaml:1-52

AST2600 USB device controller의 endpoint·DMA 기능, 필수 resource와 pinctrl 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, endpoint, source path와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2020 Facebook Inc.
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/usb/aspeed,ast2600-udc.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: ASPEED USB 2.0 Device Controller
9
10 maintainers:
11 - Neal Liu <neal_liu@aspeedtech.com>
12
13 description: |+
14 The ASPEED USB 2.0 Device Controller implements 1 control endpoint and
15 4 generic endpoints for AST260x.
16
17 Supports independent DMA channel for each generic endpoint.
18 Supports 32/256 stages descriptor mode for all generic endpoints.
19
20 properties:
21 compatible:
22 enum:
23 - aspeed,ast2600-udc
24
25 reg:
26 maxItems: 1
27
28 clocks:
29 maxItems: 1
30
31 interrupts:
32 maxItems: 1
33
34 required:
35 - compatible
36 - reg
37 - clocks
38 - interrupts
39
40 additionalProperties: false
41
42 examples:
43 - |
44 #include <dt-bindings/clock/aspeed-clock.h>
45 udc: usb@1e6a2000 {
46 compatible = "aspeed,ast2600-udc";
47 reg = <0x1e6a2000 0x300>;
48 interrupts = <9>;
49 clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>;
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_usb2bd_default>;
52 };
53

3. 한국어 전문 번역

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

ASPEED USB 2.0 device controller

1-19

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 schema는 ASPEED USB 2.0 Device Controller를 정의합니다. Copyright는 2020 Facebook Inc.이고 관리자는 Neal Liu입니다.

AST260x controller는 control endpoint 1개와 generic endpoint 4개를 구현합니다. 각 generic endpoint에는 독립 DMA channel이 있고, 모든 generic endpoint가 32-stage 또는 256-stage descriptor mode를 지원합니다.

필수 register, clock와 interrupt

20-41

`compatible`은 `aspeed,ast2600-udc`입니다. `reg`, `clocks`, `interrupts`는 각각 최대 한 항목이며 세 항목과 `compatible`이 모두 필수입니다. 정의되지 않은 추가 속성은 허용하지 않습니다.

properties:
  compatible:
    enum:
      - aspeed,ast2600-udc

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - interrupts

additionalProperties: false

AST2600 UDC 예제

42-52

예제 `udc: usb@1e6a2000`은 0x300-byte register 영역, interrupt 9, `ASPEED_CLK_GATE_USBPORT2CLK` clock을 사용합니다. 기본 pinctrl state는 `pinctrl_usb2bd_default`입니다.

examples:
  - |
    #include <dt-bindings/clock/aspeed-clock.h>
    udc: usb@1e6a2000 {
        compatible = "aspeed,ast2600-udc";
        reg = <0x1e6a2000 0x300>;
        interrupts = <9>;
        clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usb2bd_default>;
    };