요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright (c) 2020 Facebook Inc.
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/aspeed,ast2600-udc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: ASPEED USB 2.0 Device Controller
maintainers:
- Neal Liu <neal_liu@aspeedtech.com>
description: |+
The ASPEED USB 2.0 Device Controller implements 1 control endpoint and
4 generic endpoints for AST260x.
Supports independent DMA channel for each generic endpoint.
Supports 32/256 stages descriptor mode for all generic endpoints.
properties:
compatible:
enum:
- aspeed,ast2600-udc
reg:
maxItems: 1
clocks:
maxItems: 1
interrupts:
maxItems: 1
required:
- compatible
- reg
- clocks
- interrupts
additionalProperties: false
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>;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
ASPEED USB 2.0 device controller
1-19GPL-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>;
};
요약과 해설
aspeed,ast2600-udc.yaml:1-52AST2600 USB device controller의 endpoint·DMA 기능, 필수 resource와 pinctrl 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, endpoint, source path와 원문 줄 좌표를 원형대로 보존합니다.