← Documents Documentation/devicetree/bindings/usb/fsl,ls1028a.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / USB

Freescale Layerscape SuperSpeed DWC3 Controller

LS1028A DWC3 controller의 schema 선택, register·interrupt 제약과 예제를 설명합니다.

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

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

1. 요약·해설

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

요약과 해설

fsl,ls1028a.yaml:1-52

LS1028A DWC3 controller의 schema 선택, register·interrupt 제약과 예제를 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, compatible, register, clock, interrupt, PHY, power, source path와 원문 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/usb/fsl,ls1028a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale layerscape SuperSpeed DWC3 USB SoC controller
8
9 maintainers:
10 - Frank Li <[email protected]>
11
12 select:
13 properties:
14 compatible:
15 contains:
16 enum:
17 - fsl,ls1028a-dwc3
18 required:
19 - compatible
20
21 properties:
22 compatible:
23 items:
24 - enum:
25 - fsl,ls1028a-dwc3
26 - const: snps,dwc3
27
28 reg:
29 maxItems: 1
30
31 interrupts:
32 maxItems: 1
33
34 unevaluatedProperties: false
35
36 required:
37 - compatible
38 - reg
39 - interrupts
40
41 allOf:
42 - $ref: snps,dwc3.yaml#
43
44 examples:
45 - |
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47
48 usb@fe800000 {
49 compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
50 reg = <0xfe800000 0x100000>;
51 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
52 };
53

3. 한국어 전문 번역

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

Layerscape SuperSpeed DWC3 controller

1-11

GPL-2.0 또는 BSD-2-Clause로 배포되는 이 schema는 Freescale Layerscape SuperSpeed DWC3 USB SoC controller를 정의합니다. 관리자는 Frank Li입니다.

Schema 선택과 controller resource

12-34

node의 `compatible` 목록에 `fsl,ls1028a-dwc3`가 들어 있으면 이 schema를 선택하고 `compatible`을 필수로 요구합니다.

compatible은 `fsl,ls1028a-dwc3`, `snps,dwc3` 순서입니다. register 영역과 interrupt는 각각 최대 하나이며 평가되지 않은 추가 속성을 허용하지 않습니다.

select:
  properties:
    compatible:
      contains:
        enum:
          - fsl,ls1028a-dwc3
  required:
    - compatible

properties:
  compatible:
    items:
      - enum:
          - fsl,ls1028a-dwc3
      - const: snps,dwc3

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

unevaluatedProperties: false

필수 속성과 공통 DWC3 schema

35-43

필수 속성은 `compatible`, `reg`, `interrupts`입니다. 나머지 controller 정의는 `snps,dwc3.yaml`을 상속합니다.


required:
  - compatible
  - reg
  - interrupts

allOf:
  - $ref: snps,dwc3.yaml#

LS1028A DWC3 예제

44-52

예제 `usb@fe800000`은 LS1028A compatible과 generic DWC3 fallback, 0x100000-byte register 영역, level-high GIC SPI 105를 사용합니다.

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    usb@fe800000 {
        compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
        reg = <0xfe800000 0x100000>;
        interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
    };